Debian Codegraph @

integration-tests/TestApp/app/src/main/res/layout/two_way.xml

raw
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
15 <layout xmlns:android="http://schemas.android.com/apk/res/android">
16 <data>
17 <variable name="obj" type="android.databinding.testapp.vo.TwoWayBindingObject"/>
18 </data>
19 <LinearLayout
20 android:orientation="vertical"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent">
23 <CalendarView
24 android:id="@+id/calendarView"
25 android:layout_width="wrap_content"
26 android:layout_height="wrap_content"
27 android:date="@={obj.date}"
28 />
29 <ListView
30 android:id="@+id/listView"
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:selectedItemPosition="@={obj.selectedItemPosition}"
34 android:adapter="@{obj.adapter}"
35 />
36 <CheckBox
37 android:id="@+id/checkBox"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:checked="@={obj.checked}"
41 android:text="Check Box"
42 />
43 <NumberPicker
44 android:id="@+id/numberPicker"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:value="@={obj.number}"
48 android:minValue="@{1}"
49 android:maxValue="@{100}"
50 />
51 <RatingBar
52 android:id="@+id/ratingBar"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:rating="@={obj.rating}"
56 android:numStars="5"
57 />
58 <SeekBar
59 android:id="@+id/seekBar"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:max="100"
63 android:progress="@={obj.progress}"
64 />
65 <TabHost
66 android:id="@android:id/tabhost"
67 android:layout_width="match_parent"
68 android:layout_height="match_parent"
69 android:currentTab="@={obj.currentTab}">
70 <LinearLayout
71 android:orientation="vertical"
72 android:layout_width="match_parent"
73 android:layout_height="match_parent">
74 <TabWidget
75 android:id="@android:id/tabs"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"/>
78 <FrameLayout
79 android:id="@android:id/tabcontent"
80 android:layout_width="match_parent"
81 android:layout_height="match_parent">
82 <View
83 android:id="@+id/foo"
84 android:layout_width="10dp"
85 android:layout_height="10dp"/>
86 <View
87 android:id="@+id/bar"
88 android:layout_width="10dp"
89 android:layout_height="10dp"/>
90 </FrameLayout>
91 </LinearLayout>
92 </TabHost>
93 <EditText
94 android:id="@+id/textView"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:text="@={obj.text}"
98 />
99 <TimePicker
100 android:id="@+id/timePicker"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:hour="@={obj.hour}"
104 android:minute="@={obj.minute}"
105 />
106 <DatePicker
107 android:id="@+id/datePicker"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:year="@={obj.year}"
111 android:month="@={obj.month}"
112 android:day="@={obj.day}"/>
113 <DatePicker
114 android:id="@+id/expressions1"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:year="@={obj.year * @integer/oneThousand}"
118 android:month="@={11 - obj.month}"
119 android:day="@={obj.day + 1}"/>
120 <DatePicker
121 android:id="@+id/expressions2"
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:year="@={obj.year / @integer/oneThousand}"
125 android:month="@={@bool/alwaysTrue ? obj.month : obj.day}"
126 android:day="@={@bool/alwaysFalse ? obj.month : obj.day}"/>
127 <DatePicker
128 android:id="@+id/expressions3"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
131 android:year="@={obj.list[@integer/one]}"
132 android:month="@={obj.map[`two`]}"
133 android:day="@={obj.array[1]}"/>
134 <DatePicker
135 android:id="@+id/expressions4"
136 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"
138 android:year="@={(int)(100000f/obj.year)}"
139 android:month="@={1 + (obj.month / 2)}"
140 android:day="@={true ? obj.day : obj.month}"/>
141 <CheckBox
142 android:id="@+id/checkBox2"
143 android:checked="@{!checkBox.checked}"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"/>
146 <CheckBox
147 android:id="@+id/checkBox3"
148 android:layout_width="wrap_content"
149 android:layout_height="wrap_content"/>
150 <CheckBox
151 android:id="@+id/checkBox4"
152 android:checked="@{!checkBox3.checked}"
153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"/>
155 <include
156 android:id="@+id/included"
157 layout="@layout/two_way_included"
158 android:obj="@{obj}"
159 android:text="@={obj.text}"/>
160 <EditText
161 android:id="@+id/editText1"
162 android:text="@={obj.editText}"
163 android:bufferType="editable"
164 android:onTextChanged="@{obj::textChanged1}"
165 android:layout_width="wrap_content"
166 android:layout_height="wrap_content"/>
167 <EditText
168 android:id="@+id/editText2"
169 android:text="@={obj.editText}"
170 android:bufferType="editable"
171 android:onTextChanged="@{obj::textChanged2}"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"/>
174 <EditText
175 android:id="@+id/convertBool"
176 android:text="@={`` + obj.booleanField}"
177 android:inputType="number"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"/>
180 <EditText
181 android:id="@+id/convertByte"
182 android:text="@={`` + obj.byteField}"
183 android:inputType="number"
184 android:layout_width="wrap_content"
185 android:layout_height="wrap_content"/>
186 <EditText
187 android:id="@+id/convertShort"
188 android:text="@={`` + obj.shortField}"
189 android:inputType="number"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"/>
192 <EditText
193 android:id="@+id/convertInt"
194 android:text="@={`` + obj.intField}"
195 android:inputType="number"
196 android:layout_width="wrap_content"
197 android:layout_height="wrap_content"/>
198 <EditText
199 android:id="@+id/convertLong"
200 android:text="@={`` + obj.longField}"
201 android:inputType="number"
202 android:layout_width="wrap_content"
203 android:layout_height="wrap_content"/>
204 <EditText
205 android:id="@+id/convertFloat"
206 android:text="@={`` + obj.floatField}"
207 android:inputType="numberDecimal"
208 android:layout_width="wrap_content"
209 android:layout_height="wrap_content"/>
210 <EditText
211 android:id="@+id/convertDouble"
212 android:text="@={`` + obj.doubleField}"
213 android:inputType="numberDecimal"
214 android:layout_width="wrap_content"
215 android:layout_height="wrap_content"/>
216 <EditText
217 android:id="@+id/convertChar"
218 android:text="@={`` + obj.charField}"
219 android:inputType="number"
220 android:layout_width="wrap_content"
221 android:layout_height="wrap_content"/>
222 <EditText
223 android:id="@+id/toField"
224 android:text="@={obj.textField}"
225 android:layout_width="wrap_content"
226 android:layout_height="wrap_content"/>
227 <EditText
228 android:id="@+id/toStaticField"
229 android:text="@={android.databinding.testapp.vo.TwoWayBindingObject.staticField}"
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"/>
232 </LinearLayout>
233 </layout>