Android Databinding in 2xml files

Viewed 19

How can I bind 2xml files using databinding? how to provide data in textview of paymentbillingelement using viewmodel setValue property??

<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">

    <data>
            <variable
                name="PaymentFragmentView"
                type="com.hughesnet.sa.viewModels.PaymentFragmentViewModel" />
    </data>

         <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <include layout="@layout/payment_billing_element" />    

      </LinearLayout>
        </androidx.core.widget.NestedScrollView>



    
1 Answers
Related