multi_arg_adapter_test.xml revision e9b33bac04bb1ce1444d7f1744fcec1ecd3a57da
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2015 The Android Open Source Project
3  ~ Licensed under the Apache License, Version 2.0 (the "License");
4  ~ you may not use this file except in compliance with the License.
5  ~ You may obtain a copy of the License at
6  ~      http://www.apache.org/licenses/LICENSE-2.0
7  ~ Unless required by applicable law or agreed to in writing, software
8  ~ distributed under the License is distributed on an "AS IS" BASIS,
9  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10  ~ See the License for the specific language governing permissions and
11  ~ limitations under the License.
12  -->
13
14<layout xmlns:android="http://schemas.android.com/apk/res/android"
15    xmlns:bind="http://schemas.android.com/apk/res-auto">
16
17    <data>
18
19        <variable
20            name="obj1"
21            type="android.databinding.testapp.adapter.MultiArgTestAdapter.MultiBindingClass1" />
22
23        <variable
24            name="obj2"
25            type="android.databinding.testapp.adapter.MultiArgTestAdapter.MultiBindingClass2" />
26
27        <variable
28            name="obj3"
29            type="android.databinding.testapp.adapter.MultiArgTestAdapter.MultiBindingClass1" />
30
31        <variable
32            name="obj4"
33            type="android.databinding.testapp.adapter.MultiArgTestAdapter.MultiBindingClass2" />
34    </data>
35
36    <LinearLayout
37        android:orientation="vertical"
38        android:layout_width="match_parent"
39        android:layout_height="match_parent">
40
41        <TextView
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:id="@+id/merged"
45            android:class1="@{obj1}"
46            android:class2="@{obj2}" />
47
48        <TextView
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:id="@+id/view3"
52            android:class1="@{obj3}" />
53
54        <TextView
55            android:layout_width="wrap_content"
56            android:layout_height="wrap_content"
57            android:id="@+id/view4"
58            android:class2="@{obj4}" />
59
60        <TextView
61            android:layout_width="wrap_content"
62            android:layout_height="wrap_content"
63            android:id="@+id/view2"
64            android:class2="@{obj2}" />
65    </LinearLayout>
66</layout>