• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2015 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="vertical" >
22
23    <TextView
24            android:id="@+id/text_small"
25            android:layout_width="match_parent"
26            android:layout_height="wrap_content"
27            android:layout_marginTop="10dp"
28            android:text="Small"
29            android:textAppearance="?android:attr/textAppearanceSmall" />
30    <TextView
31            android:id="@+id/text_medium"
32            android:layout_width="match_parent"
33            android:layout_height="wrap_content"
34            android:layout_marginTop="10dp"
35            android:text="Medium"
36            android:textAppearance="?android:attr/textAppearanceMedium" />
37    <TextView
38            android:id="@+id/text_large"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_marginTop="10dp"
42            android:text="Large"
43            android:textAppearance="?android:attr/textAppearanceLarge" />
44
45    <!-- The TextView must have an id to maintain selection on device rotation. -->
46    <TextView
47        android:id="@+id/text_selectable"
48        android:layout_width="match_parent"
49        android:layout_height="wrap_content"
50        android:layout_marginTop="10dp"
51        android:text="Selectable"
52        android:textAppearance="?android:attr/textAppearanceLarge"
53        android:textIsSelectable="true" />
54
55    <TextView
56            android:id="@+id/text_invisible"
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:layout_marginTop="10dp"
60            android:text="Invisibible"
61            android:textAppearance="?android:attr/textAppearanceLarge"
62            android:visibility="invisible" />
63
64    <TextView
65            android:id="@+id/text_background_color"
66            android:layout_width="match_parent"
67            android:layout_height="wrap_content"
68            android:layout_marginTop="10dp"
69            android:text="View background color"
70            android:textAppearance="?android:attr/textAppearanceLarge"
71            android:background="#ff00ff00" />
72
73</LinearLayout>
74