aboutsummaryrefslogtreecommitdiff
path: root/res/layout/menu_card_action.xml
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2017-05-10 19:12:56 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-10 19:12:56 +0000
commit95c15c9733ec09088b49981559f477778204d04a (patch)
tree14d9836ff9283690321c166560ee3450792236ad /res/layout/menu_card_action.xml
parent62bd372111825762150957fa82a0a95f6acbf9d8 (diff)
parentc11f019e2f3b2e9a4edb0bd2687c149a30c209a0 (diff)
downloadTV-95c15c9733ec09088b49981559f477778204d04a.tar.gz
Sync to ub-tv-dev at lost+ hash 550cbec17259717c5453f6be1eb05736ba10ef1d am: 0550a7221b
am: c11f019e2f Change-Id: I4645f478a402648d74c1d103f87959cd71c57ae5
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>