aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJi-Hwan Lee <jihwan@google.com>2014-07-01 05:31:01 +0900
committerJi-Hwan Lee <jihwan@google.com>2014-07-01 05:37:32 +0900
commit20f49edc1b98e40f578eef3238f0311db48fe677 (patch)
tree136b99d390156ac2e0cf0a6b748d36baeffde540 /res
parent0876c00c1eaf1ff68855f4b706c37eea616e3309 (diff)
downloadTV-20f49edc1b98e40f578eef3238f0311db48fe677.tar.gz
Adjust program description font size per UX request
Also, - Handle wrong bottom spacing when channel number is long and program description is missing. - Adjust font top spacing pixel-wise, based on more accurate test result. Bug: 15913387 Change-Id: Ie58f713db2fa742ebc9ba82cecc09f019ba3d856
Diffstat (limited to 'res')
-rw-r--r--res/layout/channel_banner.xml10
-rw-r--r--res/values/dimens.xml10
2 files changed, 10 insertions, 10 deletions
diff --git a/res/layout/channel_banner.xml b/res/layout/channel_banner.xml
index 46ca186c..da1e8845 100644
--- a/res/layout/channel_banner.xml
+++ b/res/layout/channel_banner.xml
@@ -25,7 +25,6 @@
android:paddingTop="16dp"
android:paddingLeft="16dp"
android:paddingRight="32dp"
- android:paddingBottom="12dp"
android:clipToPadding="false"
android:elevation="8dp"
android:background="@drawable/channel_banner_tile_border">
@@ -36,7 +35,6 @@
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="@dimen/channel_banner_title_large_margin_top"
- android:layout_marginBottom="-10.5sp"
android:textColor="#EEEEEE"
android:fontFamily="sans-serif-thin"
android:textSize="@dimen/channel_banner_title_large_text_size" />
@@ -65,6 +63,7 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="@dimen/channel_banner_anchor_one_line_y"
+ android:layout_marginBottom="16dp"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/channel_text" />
@@ -139,11 +138,12 @@
android:layout_height="wrap_content"
android:layout_toRightOf="@id/channel_text"
android:layout_below="@id/anchor"
- android:layout_marginTop="9dp"
+ android:layout_marginTop="-5dp"
+ android:layout_marginBottom="12.5dp"
android:maxLines="3"
- android:lineSpacingExtra="3.5sp"
+ android:lineSpacingExtra="4sp"
android:ellipsize="end"
android:textColor="#80EEEEEE"
- android:textSize="14sp" />
+ android:textSize="12sp" />
</com.android.tv.ui.ChannelBannerView>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index c878f427..a3e7f95f 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -76,13 +76,13 @@
<dimen name="channel_banner_title_large_text_size">54sp</dimen>
<dimen name="channel_banner_title_medium_text_size">44sp</dimen>
<dimen name="channel_banner_title_small_text_size">34sp</dimen>
- <dimen name="channel_banner_title_large_margin_top">-18sp</dimen>
- <dimen name="channel_banner_title_medium_margin_top">-15sp</dimen>
- <dimen name="channel_banner_title_small_margin_top">-11sp</dimen>
+ <dimen name="channel_banner_title_large_margin_top">-19sp</dimen>
+ <dimen name="channel_banner_title_medium_margin_top">-15.5sp</dimen>
+ <dimen name="channel_banner_title_small_margin_top">-11.5sp</dimen>
<dimen name="channel_banner_program_large_text_size">28sp</dimen>
<dimen name="channel_banner_program_medium_text_size">20sp</dimen>
- <dimen name="channel_banner_program_large_margin_top">-9sp</dimen>
- <dimen name="channel_banner_program_medium_margin_top">-6.5sp</dimen>
+ <dimen name="channel_banner_program_large_margin_top">-10sp</dimen>
+ <dimen name="channel_banner_program_medium_margin_top">-7sp</dimen>
<dimen name="channel_banner_anchor_one_line_y">44dp</dimen>
<dimen name="channel_banner_anchor_two_line_y">64dp</dimen>
<dimen name="channel_name_max_width">100dp</dimen>