blob: 512184fc810c0f6fa36921551b69a8e9a65d54d4 [file] [log] [blame]
The Android Open Source Projectf8057102009-03-15 16:47:16 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
cci20f1f732011-01-08 21:23:05 +080018 android:layout_width="match_parent"
Fabrice Di Meglio94c94372012-03-05 16:13:37 -080019 android:layout_height="match_parent"
20 android:id="@+id/layout_textviewtest">
21
cci20f1f732011-01-08 21:23:05 +080022 <ScrollView android:layout_width="match_parent"
23 android:layout_height="match_parent">
Fabrice Di Meglio94c94372012-03-05 16:13:37 -080024
cci20f1f732011-01-08 21:23:05 +080025 <LinearLayout android:orientation="vertical"
26 android:layout_width="match_parent"
27 android:layout_height="match_parent">
Fabrice Di Meglio94c94372012-03-05 16:13:37 -080028
cci20f1f732011-01-08 21:23:05 +080029 <TextView android:id="@+id/textview_textAttr"
30 android:text="@string/text_view_hello"
31 android:textColor="@drawable/black"
32 android:textColorHighlight="@drawable/yellow"
33 android:textColorHint="@drawable/red"
34 android:textColorLink="@drawable/blue"
35 android:textScaleX="1.2"
Peter Eliasson11935192012-04-23 13:40:18 +020036 android:typeface="normal"
cci20f1f732011-01-08 21:23:05 +080037 android:textSize="20px"
38 android:textStyle="normal"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"/>
41
42 <TextView android:id="@+id/textview_password"
43 android:password="true"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"/>
46
47 <TextView android:id="@+id/textview_singleLine"
48 android:singleLine="true"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"/>
51
52 <TextView android:id="@+id/textview_text"
53 android:text="@string/text_view_hello"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"/>
Fabrice Di Megliofb0961a2011-09-29 16:06:44 -070056
57 <TextView android:id="@+id/textview_text_two_lines"
58 android:text="@string/text_view_hello_two_lines"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"/>
Fabrice Di Meglio41f21592011-10-03 17:00:19 -070061
62 <android.widget.cts.MockTextView
63 android:id="@+id/mock_textview_left"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:requiresFadingEdge="horizontal"
67 android:singleLine="true"
68 android:text="@string/long_text"
69 android:gravity="left"
70 />
71
72 <android.widget.cts.MockTextView
73 android:id="@+id/mock_textview_right"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:requiresFadingEdge="horizontal"
77 android:singleLine="true"
78 android:text="@string/long_text"
79 android:gravity="right"
80 />
81
82 <android.widget.cts.MockTextView
83 android:id="@+id/mock_textview_center"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:requiresFadingEdge="horizontal"
87 android:singleLine="true"
88 android:text="@string/long_text"
89 android:gravity="center"
90 />
cci20f1f732011-01-08 21:23:05 +080091 </LinearLayout>
Fabrice Di Meglio94c94372012-03-05 16:13:37 -080092
cci20f1f732011-01-08 21:23:05 +080093 </ScrollView>
Fabrice Di Meglio94c94372012-03-05 16:13:37 -080094
95 <TextView android:id="@+id/textview_rtl"
96 android:layout_height="wrap_content"
97 android:layout_width="wrap_content"/>
98
The Android Open Source Projectf8057102009-03-15 16:47:16 -070099</LinearLayout>