diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-07-24 11:11:02 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-07-24 11:11:02 -0700 |
commit | 85d28a00043e5985b11f517031d7b2317ac19e10 (patch) | |
tree | 7b4ae3d15192046d84e7de3ff047e8fe21948aff /core/tests/coretests | |
parent | b6a45cb92892f9080b7a2f131b4386fd1167efbb (diff) | |
parent | aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 (diff) | |
download | frameworks_base-85d28a00043e5985b11f517031d7b2317ac19e10.zip frameworks_base-85d28a00043e5985b11f517031d7b2317ac19e10.tar.gz frameworks_base-85d28a00043e5985b11f517031d7b2317ac19e10.tar.bz2 |
Merge "Replace left/right with start/end for Gravity / LayoutParams / Padding"
Diffstat (limited to 'core/tests/coretests')
-rw-r--r-- | core/tests/coretests/src/android/util/ListItemFactory.java | 2 | ||||
-rw-r--r-- | core/tests/coretests/src/android/widget/focus/VerticalFocusSearch.java | 2 |
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)); |