summaryrefslogtreecommitdiffstats
path: root/core/tests/coretests/res
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2011-07-01 15:09:24 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2011-07-11 10:39:29 -0700
commit7f86c806ada21fc7a3feefd89d6fcb4282b0af40 (patch)
tree1080490b7c1cc0c572448ec411acf630c165f656 /core/tests/coretests/res
parentf81673d7670cb1978933a1599de7a2cb39f58b38 (diff)
downloadframeworks_base-7f86c806ada21fc7a3feefd89d6fcb4282b0af40.zip
frameworks_base-7f86c806ada21fc7a3feefd89d6fcb4282b0af40.tar.gz
frameworks_base-7f86c806ada21fc7a3feefd89d6fcb4282b0af40.tar.bz2
Fix View reset of layoutDirection and textDirection
- do it in onDetachedFromWindow() - make naming consistent too - update unit tests Change-Id: I320fcdbf75166bae793c4409e7344608b696667f
Diffstat (limited to 'core/tests/coretests/res')
-rw-r--r--core/tests/coretests/res/layout/textview_test.xml27
-rw-r--r--core/tests/coretests/res/values/strings.xml2
2 files changed, 29 insertions, 0 deletions
diff --git a/core/tests/coretests/res/layout/textview_test.xml b/core/tests/coretests/res/layout/textview_test.xml
new file mode 100644
index 0000000..f0c7b9e
--- /dev/null
+++ b/core/tests/coretests/res/layout/textview_test.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/textviewtest_layout"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <TextView android:id="@+id/textviewtest_textview"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:text="@string/textview_hebrew_text"/>
+
+</LinearLayout> \ No newline at end of file
diff --git a/core/tests/coretests/res/values/strings.xml b/core/tests/coretests/res/values/strings.xml
index f51b08e..71f3520 100644
--- a/core/tests/coretests/res/values/strings.xml
+++ b/core/tests/coretests/res/values/strings.xml
@@ -129,4 +129,6 @@
<string name="button8">Button8</string>
<string name="button9">Button9</string>
+ <string name="textview_hebrew_text">&#x05DD;&#x05DE;ab?!</string>
+
</resources>