Loading tools/data-binding/TestApp/src/androidTest/java/com/android/databinding/testapp/BindToFinalObservableFieldTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -34,8 +34,6 @@ public class BindToFinalObservableFieldTest extends BaseDataBinderTest<BindToFin mBinder.rebindDirty(); final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view); assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString()); final TextView textView2 = (TextView) mBinder.getRoot().findViewById(R.id.text_view2); assertEquals(getActivity().getResources().getString(R.string.app_name), textView2.getText().toString()); } Loading tools/data-binding/TestApp/src/main/res/layout/bind_to_final_observable.xml +1 −4 Original line number Diff line number Diff line Loading @@ -19,8 +19,5 @@ <variable name="obj" type="com.android.databinding.testapp.vo.PublicFinalWithObservableTestVo"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_view" android:text="@{obj.myField}"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_view2" android:text="@{obj.myFinalVo.val}"/> </LinearLayout> No newline at end of file Loading
tools/data-binding/TestApp/src/androidTest/java/com/android/databinding/testapp/BindToFinalObservableFieldTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -34,8 +34,6 @@ public class BindToFinalObservableFieldTest extends BaseDataBinderTest<BindToFin mBinder.rebindDirty(); final TextView textView = (TextView) mBinder.getRoot().findViewById(R.id.text_view); assertEquals(getActivity().getResources().getString(R.string.app_name), textView.getText().toString()); final TextView textView2 = (TextView) mBinder.getRoot().findViewById(R.id.text_view2); assertEquals(getActivity().getResources().getString(R.string.app_name), textView2.getText().toString()); } Loading
tools/data-binding/TestApp/src/main/res/layout/bind_to_final_observable.xml +1 −4 Original line number Diff line number Diff line Loading @@ -19,8 +19,5 @@ <variable name="obj" type="com.android.databinding.testapp.vo.PublicFinalWithObservableTestVo"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_view" android:text="@{obj.myField}"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_view2" android:text="@{obj.myFinalVo.val}"/> </LinearLayout> No newline at end of file