aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJose Lima <joselima@google.com>2015-02-17 16:11:09 -0800
committerJose Lima <joselima@google.com>2015-02-17 16:20:12 -0800
commitb600888619d6ec0c5a3bed7eb55ab34804a0ce90 (patch)
tree30c0019eb2ff3dce7a6c3135b514767fcc5d416f /apps
parent593ee3bcc482781c4c23394332669d80969ecde1 (diff)
downloadsample-b600888619d6ec0c5a3bed7eb55ab34804a0ce90.tar.gz
Fix launcher widget alignemnt
Bug: 19414724 Change-Id: I8edd2789d0beb36e1b72e6d972e1d3c2a93d3c9b
Diffstat (limited to 'apps')
-rw-r--r--apps/LeanbackWidget/res/layout/clock_widget.xml3
-rw-r--r--apps/LeanbackWidget/res/values/dimens.xml1
2 files changed, 3 insertions, 1 deletions
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>