aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>