| 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 |
<import type="android.databinding.testapp.vo.ViewBindingObject"/> |
| 17 |
<variable name="obj" type="ViewBindingObject"/> |
| 18 |
</data> |
| 19 |
<LinearLayout |
| 20 |
android:orientation="vertical" |
| 21 |
android:layout_width="match_parent" |
| 22 |
android:layout_height="match_parent" |
| 23 |
> |
| 24 |
<View |
| 25 |
android:id="@+id/padding" |
| 26 |
android:layout_width="10dp" |
| 27 |
android:layout_height="10dp" |
| 28 |
android:padding="@{obj.padding}" |
| 29 |
/> |
| 30 |
<View |
| 31 |
android:id="@+id/paddingFloat" |
| 32 |
android:layout_width="10dp" |
| 33 |
android:layout_height="10dp" |
| 34 |
android:padding="@{@dimen/testPadding}" |
| 35 |
/> |
| 36 |
<View |
| 37 |
android:id="@+id/paddingStartEnd" |
| 38 |
android:layout_width="10dp" |
| 39 |
android:layout_height="10dp" |
| 40 |
android:paddingEnd="@{obj.paddingEnd}" |
| 41 |
android:paddingStart="@{obj.paddingStart}" |
| 42 |
/> |
| 43 |
<View |
| 44 |
android:id="@+id/paddingStartEndFloat" |
| 45 |
android:layout_width="10dp" |
| 46 |
android:layout_height="10dp" |
| 47 |
android:paddingTop="@{@dimen/testPadding}" |
| 48 |
android:paddingBottom="@{@dimen/testPadding}" |
| 49 |
android:paddingEnd="@{@dimen/testPadding}" |
| 50 |
android:paddingStart="@{@dimen/testPadding}" |
| 51 |
/> |
| 52 |
<View |
| 53 |
android:id="@+id/paddingTopBottom" |
| 54 |
android:layout_width="10dp" |
| 55 |
android:layout_height="10dp" |
| 56 |
android:paddingBottom="@{obj.paddingBottom}" |
| 57 |
android:paddingTop="@{obj.paddingTop}" |
| 58 |
/> |
| 59 |
<View |
| 60 |
android:id="@+id/paddingLeftRight" |
| 61 |
android:layout_width="10dp" |
| 62 |
android:layout_height="10dp" |
| 63 |
android:paddingLeft="@{obj.paddingLeft}" |
| 64 |
android:paddingRight="@{obj.paddingRight}" |
| 65 |
/> |
| 66 |
<View |
| 67 |
android:id="@+id/paddingLeftRightFloat" |
| 68 |
android:layout_width="10dp" |
| 69 |
android:layout_height="10dp" |
| 70 |
android:paddingTop="@{@dimen/testPadding}" |
| 71 |
android:paddingBottom="@{@dimen/testPadding}" |
| 72 |
android:paddingLeft="@{@dimen/testPadding}" |
| 73 |
android:paddingRight="@{@dimen/testPadding}" |
| 74 |
/> |
| 75 |
<View |
| 76 |
android:id="@+id/backgroundTint" |
| 77 |
android:backgroundTint="@{obj.backgroundTint}" |
| 78 |
android:layout_width="10dp" |
| 79 |
android:layout_height="10dp"/> |
| 80 |
<View |
| 81 |
android:id="@+id/fadeScrollbars" |
| 82 |
android:fadeScrollbars="@{obj.fadeScrollbars}" |
| 83 |
android:layout_width="10dp" |
| 84 |
android:layout_height="10dp"/> |
| 85 |
<View |
| 86 |
android:id="@+id/nextFocus" |
| 87 |
android:nextFocusForward="@{obj.nextFocusForward}" |
| 88 |
android:nextFocusLeft="@{obj.nextFocusLeft}" |
| 89 |
android:nextFocusRight="@{obj.nextFocusRight}" |
| 90 |
android:nextFocusUp="@{obj.nextFocusUp}" |
| 91 |
android:nextFocusDown="@{obj.nextFocusDown}" |
| 92 |
android:layout_width="10dp" |
| 93 |
android:layout_height="10dp"/> |
| 94 |
<View |
| 95 |
android:id="@+id/requiresFadingEdge" |
| 96 |
android:requiresFadingEdge="@{obj.requiresFadingEdge}" |
| 97 |
android:layout_width="10dp" |
| 98 |
android:layout_height="10dp"/> |
| 99 |
<View |
| 100 |
android:id="@+id/scrollbar" |
| 101 |
android:scrollbarDefaultDelayBeforeFade="@{obj.scrollbarDefaultDelayBeforeFade}" |
| 102 |
android:scrollbarFadeDuration="@{obj.scrollbarFadeDuration}" |
| 103 |
android:scrollbarSize="@{obj.scrollbarSize}" |
| 104 |
android:scrollbarStyle="@{obj.scrollbarStyle}" |
| 105 |
android:layout_width="10dp" |
| 106 |
android:layout_height="10dp"/> |
| 107 |
<View |
| 108 |
android:id="@+id/transformPivot" |
| 109 |
android:transformPivotX="@{obj.transformPivotX}" |
| 110 |
android:transformPivotY="@{obj.transformPivotY}" |
| 111 |
android:layout_width="10dp" |
| 112 |
android:layout_height="10dp"/> |
| 113 |
|
| 114 |
<View |
| 115 |
android:id="@+id/backgroundDrawable" |
| 116 |
android:layout_width="10dp" |
| 117 |
android:layout_height="10dp" |
| 118 |
android:background="@{@drawable/ic_launcher}"/> |
| 119 |
<View |
| 120 |
android:id="@+id/backgroundWithTheme" |
| 121 |
android:layout_width="10dp" |
| 122 |
android:layout_height="10dp" |
| 123 |
android:background="@{@drawable/circle}"/> |
| 124 |
</LinearLayout> |
| 125 |
</layout> |