summaryrefslogtreecommitdiffstats
path: root/tests/BiDiTests/res
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2011-08-24 18:26:14 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2011-08-25 18:43:37 -0700
commit7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73 (patch)
tree044c603b00cf5c90ee2f85d8f5884e58976d40f1 /tests/BiDiTests/res
parenta646145c335ba821f01d9e4f8be2583eb9fd7266 (diff)
downloadframeworks_base-7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73.zip
frameworks_base-7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73.tar.gz
frameworks_base-7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73.tar.bz2
Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL
- force TextView to LOCALE text heuristic when in "password" mode - remove TEXT_LAYOUT_DIRECTION_UNKNOWN_DO_NOT_USE - LocaleUtils.getLayoutDirectionFromLocale() returns "LTR" is locale is NULL or ROOT Change-Id: I182c46aaf2d73c8b18967fffa230bfabec91ed06
Diffstat (limited to 'tests/BiDiTests/res')
-rw-r--r--tests/BiDiTests/res/layout/basic.xml11
-rw-r--r--tests/BiDiTests/res/values/strings.xml1
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/BiDiTests/res/layout/basic.xml b/tests/BiDiTests/res/layout/basic.xml
index 8a27213..f503658 100644
--- a/tests/BiDiTests/res/layout/basic.xml
+++ b/tests/BiDiTests/res/layout/basic.xml
@@ -27,11 +27,18 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
- <Button android:id="@+id/button"
+ <TextView android:id="@+id/textview_password_default"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
- android:text="@string/button_text"
android:textSize="32dip"
+ android:text="@string/textview_password_default_text"
+ />
+
+ <EditText android:id="@+id/edittext_password_default"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:textSize="32dip"
+ android:password="true"
/>
<TextView android:id="@+id/textview_default"
diff --git a/tests/BiDiTests/res/values/strings.xml b/tests/BiDiTests/res/values/strings.xml
index b0809da..b1f5e50 100644
--- a/tests/BiDiTests/res/values/strings.xml
+++ b/tests/BiDiTests/res/values/strings.xml
@@ -28,6 +28,7 @@
<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="textview_default_text">This is a text for a default TextView</string>
+ <string name="textview_password_default_text">This is a text for a password TextView</string>
<string name="edittext_text">mmmmmmmmmmmmmmmmmmmmmmmm</string>
<string name="normal_text">Normal String</string>
<string name="normal_long_text">mmmmmmmmmmmmmmmmmmmmmmmm</string>