observable_field_test.xml revision d37b47419005587c52ca4c099432327b7f06478d
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 The Android Open Source Project
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~      http://www.apache.org/licenses/LICENSE-2.0
8  ~ Unless required by applicable law or agreed to in writing, software
9  ~ distributed under the License is distributed on an "AS IS" BASIS,
10  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  ~ See the License for the specific language governing permissions and
12  ~ limitations under the License.
13  -->
14<layout xmlns:android="http://schemas.android.com/apk/res/android">
15    <data>
16        <variable name="obj" type="android.databinding.testapp.vo.ObservableFieldBindingObject"/>
17    </data>
18    <LinearLayout
19            android:orientation="vertical"
20            android:layout_width="match_parent"
21            android:layout_height="match_parent">
22        <TextView
23                android:id="@+id/bField"
24                android:layout_width="wrap_content"
25                android:layout_height="wrap_content"
26                android:text="@{`` + obj.bField}"/>
27        <TextView
28                android:id="@+id/tField"
29                android:layout_width="wrap_content"
30                android:layout_height="wrap_content"
31                android:text="@{`` + obj.tField}"/>
32        <TextView
33                android:id="@+id/sField"
34                android:layout_width="wrap_content"
35                android:layout_height="wrap_content"
36                android:text="@{`` + obj.sField}"/>
37        <TextView
38                android:id="@+id/cField"
39                android:layout_width="wrap_content"
40                android:layout_height="wrap_content"
41                android:text="@{`` + obj.cField}"/>
42        <TextView
43                android:id="@+id/iField"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:text="@{`` + obj.iField}"/>
47        <TextView
48                android:id="@+id/lField"
49                android:layout_width="wrap_content"
50                android:layout_height="wrap_content"
51                android:text="@{`` + obj.lField}"/>
52        <TextView
53                android:id="@+id/fField"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:text="@{`` + obj.fField}"/>
57        <TextView
58                android:id="@+id/dField"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:text="@{`` + obj.dField}"/>
62        <TextView
63                android:id="@+id/oField"
64                android:layout_width="wrap_content"
65                android:layout_height="wrap_content"
66                android:text="@{obj.oField}"/>
67
68        <TextView
69            android:id="@+id/pFieldx"
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            android:text='@{""+obj.pField.x}'/>
73
74        <TextView
75            android:id="@+id/pFieldy"
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:text="@{obj.pField.y}"/>
79    </LinearLayout>
80</layout>