The Android Open Source Project | f805710 | 2009-03-15 16:47:16 -0700 | [diff] [blame] | 1 | <?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" |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
Fabrice Di Meglio | 94c9437 | 2012-03-05 16:13:37 -0800 | [diff] [blame] | 19 | android:layout_height="match_parent" |
| 20 | android:id="@+id/layout_textviewtest"> |
| 21 | |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 22 | <ScrollView android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent"> |
Fabrice Di Meglio | 94c9437 | 2012-03-05 16:13:37 -0800 | [diff] [blame] | 24 | |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 25 | <LinearLayout android:orientation="vertical" |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="match_parent"> |
Fabrice Di Meglio | 94c9437 | 2012-03-05 16:13:37 -0800 | [diff] [blame] | 28 | |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 29 | <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 Eliasson | 1193519 | 2012-04-23 13:40:18 +0200 | [diff] [blame] | 36 | android:typeface="normal" |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 37 | 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 Meglio | fb0961a | 2011-09-29 16:06:44 -0700 | [diff] [blame] | 56 | |
| 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 Meglio | 41f2159 | 2011-10-03 17:00:19 -0700 | [diff] [blame] | 61 | |
| 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 | /> |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 91 | </LinearLayout> |
Fabrice Di Meglio | 94c9437 | 2012-03-05 16:13:37 -0800 | [diff] [blame] | 92 | |
cci | 20f1f73 | 2011-01-08 21:23:05 +0800 | [diff] [blame] | 93 | </ScrollView> |
Fabrice Di Meglio | 94c9437 | 2012-03-05 16:13:37 -0800 | [diff] [blame] | 94 | |
| 95 | <TextView android:id="@+id/textview_rtl" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:layout_width="wrap_content"/> |
| 98 | |
The Android Open Source Project | f805710 | 2009-03-15 16:47:16 -0700 | [diff] [blame] | 99 | </LinearLayout> |