1<!-- 2 ~ Copyright (C) 2017 The Android Open Source Project 3 ~ 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 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 > 22 <TextView 23 android:id="@+id/t1" 24 android:paddingTop="4dp" 25 android:paddingBottom="8dp" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:focusable="true" 29 android:focusableInTouchMode="true" 30 android:text="Line 1" /> 31 <TextView 32 android:id="@+id/t2" 33 android:paddingTop="4dp" 34 android:paddingBottom="8dp" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:focusable="true" 38 android:focusableInTouchMode="true" 39 android:layout_below="@id/t1" 40 android:text="Line 2" /> 41 42</RelativeLayout> 43