I am learning how to develop using MVVM. I created a small example as shown below in the code. my question is about xmlns: in some tutorials they used xmlns:bind while in other xmlns:tools was used.
please let me know th edifference and when to be used.
xml
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bind="http://schemas.android.com/tools">
<data>
<!-- the class the behaves as Viewmodel and contains the @Bindable Object-->
<variable
name="vm1"
type="com.example.amrbakri.mvvm_02.LoginViewModel1" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/actMain_LoginViewModel1_tv_results"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"
android:text="@{vm1.result}"
/>
</LinearLayout>
</layout>