summaryrefslogtreecommitdiffstats
path: root/core/tests/coretests
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-07-19 19:21:26 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2012-07-19 19:21:26 -0700
commitaac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 (patch)
treeaba6b8d3317aca0319e2bc447686dc5532914f11 /core/tests/coretests
parent9a1aa4c4a42f0d7674c762fa70d23ffdd86b1054 (diff)
downloadframeworks_base-aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17.zip
frameworks_base-aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17.tar.gz
frameworks_base-aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17.tar.bz2
Replace left/right with start/end for Gravity / LayoutParams / Padding
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
Diffstat (limited to 'core/tests/coretests')
-rw-r--r--core/tests/coretests/src/android/util/ListItemFactory.java2
-rw-r--r--core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/util/ListItemFactory.java b/core/tests/coretests/src/android/util/ListItemFactory.java
index e8a498d..3f48dcc 100644
--- a/core/tests/coretests/src/android/util/ListItemFactory.java
+++ b/core/tests/coretests/src/android/util/ListItemFactory.java
@@ -247,7 +247,7 @@ public class ListItemFactory {
TextView t1 = new TextView(context);
t1.setHeight(desiredHeight);
t1.setText(text);
- t1.setGravity(Gravity.LEFT | Gravity.CENTER_VERTICAL);
+ t1.setGravity(Gravity.START | Gravity.CENTER_VERTICAL);
final ViewGroup.LayoutParams lp1 = new LinearLayout.LayoutParams(
0,
ViewGroup.LayoutParams.WRAP_CONTENT, 1.0f);
diff --git a/core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java b/core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java
index deb9e67..4a809e0 100644
--- a/core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java
+++ b/core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java
@@ -66,7 +66,7 @@ public class VerticalFocusSearch extends Activity {
mLayout = new LinearLayout(this);
mLayout.setOrientation(LinearLayout.VERTICAL);
- mLayout.setHorizontalGravity(Gravity.LEFT);
+ mLayout.setHorizontalGravity(Gravity.START);
mLayout.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));