aboutsummaryrefslogtreecommitdiff
path: root/res/layout/menu_card_action.xml
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2017-10-03 10:16:37 -0700
committerNick Chalko <nchalko@google.com>2017-10-04 13:48:13 +0000
commit6ebde20b03db4c0d57f67acaac11832b610b966b (patch)
treed31e2adc1f9cce4f27ca07d30bee921032e33a3c /res/layout/menu_card_action.xml
parentee027a576ddebaf1ae739219be01b0240b15f80c (diff)
downloadTV-6ebde20b03db4c0d57f67acaac11832b610b966b.tar.gz
Sync to match Live Channels 1.15(ncis)oreo-mr1-dev
aka ub-tv-dev at a73a150bb7d0d1ce867ef980c6ac8411899d40ad Bug: 64021596 Change-Id: I7c544fd15e2c58784f8babc31877ad0dfeebb4c0 (cherry picked from commit 633eb826b8c97731dfc5ef12c7bf78a63734275d)
Diffstat (limited to 'res/layout/menu_card_action.xml')
-rw-r--r--res/layout/menu_card_action.xml57
1 files changed, 25 insertions, 32 deletions
diff --git a/res/layout/menu_card_action.xml b/res/layout/menu_card_action.xml
index f17c5b6a..e8114b52 100644
--- a/res/layout/menu_card_action.xml
+++ b/res/layout/menu_card_action.xml
@@ -19,50 +19,43 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/action_card_width"
android:layout_height="@dimen/action_card_height"
- android:orientation="vertical"
android:focusable="true"
android:background="@drawable/action_card_background">
- <LinearLayout
- android:orientation="vertical"
+ <TextView
+ android:id="@+id/action_card_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="@dimen/action_card_padding"
- android:clipChildren="false"
- android:clipToPadding="false"
- android:layout_gravity="top">
+ android:layout_alignParentTop="true"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp"
+ android:layout_marginTop="6dp"
+ android:fontFamily="@string/condensed_font"
+ android:maxLines="1"
+ android:textColor="@color/action_card_label_color"
+ android:textSize="@dimen/action_card_label_font_size" />
- <TextView
- android:id="@+id/action_card_label"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="-6dp"
- android:singleLine="true"
- android:fontFamily="@string/condensed_font"
- android:textColor="@color/action_card_label_color"
- android:textSize="@dimen/action_card_label_font_size" />
-
- <TextView
- android:id="@+id/action_card_state"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="4dp"
- android:singleLine="true"
- android:fontFamily="@string/condensed_font"
- android:textColor="@color/action_card_state_color"
- android:textSize="@dimen/action_card_state_font_size" />
-
- </LinearLayout>
+ <TextView
+ android:id="@+id/action_card_state"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/action_card_label"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="12dp"
+ android:paddingTop="4dp"
+ android:fontFamily="@string/condensed_font"
+ android:maxLines="1"
+ android:textColor="@color/action_card_state_color"
+ android:textSize="@dimen/action_card_state_font_size" />
<ImageView
android:id="@+id/action_card_icon"
android:layout_width="@dimen/action_card_icon_width"
android:layout_height="@dimen/action_card_icon_height"
android:layout_margin="@dimen/action_card_icon_padding"
- android:layout_gravity="end|bottom"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentEnd="true"
android:contentDescription="@null"
- android:scaleType="fitCenter"
- android:src="@drawable/ic_tvoption_aspect"
- android:duplicateParentState="true" />
+ android:scaleType="fitCenter" />
</com.android.tv.menu.ActionCardView>