text_view_adapter_test.xml revision 99d74030fe5856572bd4b569bc04d2a11258f202
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.TextViewBindingObject"/> 17 </data> 18 <LinearLayout 19 android:orientation="vertical" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 23 android:id="@+id/numericText" 24 android:numeric="@{obj.numeric}" 25 /> 26 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 27 android:id="@+id/textDrawableNormal" 28 android:drawableBottom="@{obj.drawableBottom}" 29 android:drawableLeft="@{obj.drawableLeft}" 30 android:drawableRight="@{obj.drawableRight}" 31 android:drawableTop="@{obj.drawableTop}" 32 /> 33 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 34 android:id="@+id/textDrawableStartEnd" 35 android:drawableStart="@{obj.drawableStart}" 36 android:drawableEnd="@{obj.drawableEnd}" 37 /> 38 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 39 android:id="@+id/textView" 40 android:autoLink="@{obj.autoLink}" 41 android:drawablePadding="@{obj.drawablePadding}" 42 android:scrollHorizontally="@{obj.scrollHorizontally}" 43 android:textColorHighlight="@{obj.textColorHighlight}" 44 android:textColorHint="@{obj.textColorHint}" 45 android:textColorLink="@{obj.textColorLink}" 46 android:autoText="@{obj.autoText}" 47 android:capitalize="@{obj.capitalize}" 48 android:imeActionLabel="@{obj.imeActionLabel}" 49 android:imeActionId="@{obj.imeActionId}" 50 android:lineSpacingExtra="@{obj.lineSpacingExtra}" 51 android:lineSpacingMultiplier="@{obj.lineSpacingMultiplier}" 52 android:maxLength="@{obj.maxLength}" 53 android:shadowColor="@{obj.shadowColor}" 54 android:shadowDx="@{obj.shadowDx}" 55 android:shadowDy="@{obj.shadowDy}" 56 android:shadowRadius="@{obj.shadowRadius}" 57 android:textSize="@{obj.textSize}" 58 /> 59 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 60 android:id="@+id/textAllCaps" 61 android:textAllCaps="@{obj.textAllCaps}" 62 /> 63 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 64 android:id="@+id/textBufferType" 65 android:bufferType="@{obj.bufferType}" 66 /> 67 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 68 android:id="@+id/textInputType" 69 android:inputType="@{obj.inputType}" 70 /> 71 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 72 android:id="@+id/textDigits" 73 android:digits="@{obj.digits}" 74 /> 75 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 76 android:id="@+id/textPhoneNumber" 77 android:phoneNumber="@{obj.phoneNumber}" 78 /> 79 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 80 android:id="@+id/textInputMethod" 81 android:inputMethod="@{obj.inputMethod}" 82 /> 83 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 84 android:id="@+id/textWithTheme" 85 android:textColor="@{@colorStateList/text_colors}" 86 /> 87 <TextView android:layout_width="match_parent" android:layout_height="match_parent" 88 android:id="@+id/textWithColor" 89 android:textColor="@{@android:color/holo_blue_bright}" 90 /> 91 </LinearLayout> 92</layout>