[英]Android Databinding in 2xml files
How can I bind 2xml files using databinding?如何使用数据绑定绑定 2xml 文件? how to provide data in textview of paymentbillingelement using viewmodel setValue property??
如何使用viewmodel setValue属性在paymentbillingelement的textview中提供数据?
<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>
Please refer this there is already answered your question.请参考这里已经回答了你的问题。 please have a look
请看一看
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.