diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-05 15:04:12 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-05 15:04:12 -0700 |
commit | fd0b623c33393ba3144c5375380ea076469b67f9 (patch) | |
tree | e30c91c7ad91ae8a1e974ffd133b8e23097d3903 /tests | |
parent | 6850c7aff5b08225ab1793dd721a795cb4192f6f (diff) | |
download | frameworks_base-fd0b623c33393ba3144c5375380ea076469b67f9.zip frameworks_base-fd0b623c33393ba3144c5375380ea076469b67f9.tar.gz frameworks_base-fd0b623c33393ba3144c5375380ea076469b67f9.tar.bz2 |
Update BiDi unit tests
- update basic layout for having LTR and RTL TextView
Change-Id: Ic4cc6c27d431fe69bb62c55cd76a46ea6e241b4d
Diffstat (limited to 'tests')
-rw-r--r-- | tests/BiDiTests/res/layout/basic.xml | 21 | ||||
-rw-r--r-- | tests/BiDiTests/res/values/strings.xml | 2 |
2 files changed, 20 insertions, 3 deletions
diff --git a/tests/BiDiTests/res/layout/basic.xml b/tests/BiDiTests/res/layout/basic.xml index ed91c49..18f193e 100644 --- a/tests/BiDiTests/res/layout/basic.xml +++ b/tests/BiDiTests/res/layout/basic.xml @@ -34,17 +34,32 @@ android:textSize="32dip" /> - <TextView android:id="@+id/textview" + <TextView android:id="@+id/textview_ltr" android:layout_height="wrap_content" android:layout_width="wrap_content" android:textSize="32dip" - android:text="@string/textview_text" + android:text="@string/textview_ltr_text" /> - <EditText android:id="@+id/edittext" + <EditText android:id="@+id/edittext_ltr" android:layout_height="wrap_content" android:layout_width="match_parent" android:textSize="32dip" + android:textDirection="ltr" + /> + + <TextView android:id="@+id/textview_rtl" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textSize="32dip" + android:text="@string/textview_rtl_text" + /> + + <EditText android:id="@+id/edittext_rtl" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:textSize="32dip" + android:textDirection="rtl" /> </LinearLayout> diff --git a/tests/BiDiTests/res/values/strings.xml b/tests/BiDiTests/res/values/strings.xml index 1f6be7f..f4ce0f7 100644 --- a/tests/BiDiTests/res/values/strings.xml +++ b/tests/BiDiTests/res/values/strings.xml @@ -25,6 +25,8 @@ <string name="button_requestlayout_text">Request Layout</string> <string name="button_alert_dialog_text">AlertDialog</string> <string name="textview_text">This is a text for a TextView</string> + <string name="textview_ltr_text">This is a text for a LTR TextView</string> + <string name="textview_rtl_text">This is a text for a RTL TextView</string> <string name="edittext_text">mmmmmmmmmmmmmmmmmmmmmmmm</string> <string name="normal_text">Normal String</string> <string name="normal_long_text">mmmmmmmmmmmmmmmmmmmmmmmm</string> |