commit | 6a9816fafdb2b78bbb8a1f9f9509ead0a8fcd12c | [log] [tgz] |
---|---|---|
author | Jose Lima <joselima@google.com> | Tue Feb 17 16:11:09 2015 -0800 |
committer | The Android Automerger <android-build@google.com> | Wed Feb 18 20:56:45 2015 -0800 |
tree | 30c0019eb2ff3dce7a6c3135b514767fcc5d416f | |
parent | d4f7545017ad3fc2388863cbb3684afccc56ddce [diff] |
Fix launcher widget alignemnt Bug: 19414724 Change-Id: I8edd2789d0beb36e1b72e6d972e1d3c2a93d3c9b
diff --git a/apps/LeanbackWidget/res/layout/clock_widget.xml b/apps/LeanbackWidget/res/layout/clock_widget.xml index 1ad5328..3ceb63e 100644 --- a/apps/LeanbackWidget/res/layout/clock_widget.xml +++ b/apps/LeanbackWidget/res/layout/clock_widget.xml
@@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent" > + android:layout_height="match_parent" + android:layout_marginTop="@dimen/widget_top_margin" > <TextClock android:id="@+id/clock"
diff --git a/apps/LeanbackWidget/res/values/dimens.xml b/apps/LeanbackWidget/res/values/dimens.xml index fc54e72..fe1728f 100644 --- a/apps/LeanbackWidget/res/values/dimens.xml +++ b/apps/LeanbackWidget/res/values/dimens.xml
@@ -3,4 +3,5 @@ <dimen name="clock_text_size">36sp</dimen> <dimen name="clock_width">106dp</dimen> <dimen name="connectivity_status_size">32dp</dimen> + <dimen name="widget_top_margin">1dp</dimen> </resources>