Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2015 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License.
     16   -->
     17 
     18 <com.android.tv.menu.ActionCardView
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="@dimen/action_card_width"
     21     android:layout_height="@dimen/action_card_height"
     22     android:focusable="true"
     23     android:background="@drawable/action_card_background">
     24 
     25     <TextView
     26         android:id="@+id/action_card_label"
     27         android:layout_width="match_parent"
     28         android:layout_height="wrap_content"
     29         android:layout_alignParentTop="true"
     30         android:layout_marginStart="12dp"
     31         android:layout_marginEnd="12dp"
     32         android:layout_marginTop="6dp"
     33         android:fontFamily="@string/condensed_font"
     34         android:maxLines="1"
     35         android:textColor="@color/action_card_label_color"
     36         android:textSize="@dimen/action_card_label_font_size" />
     37 
     38     <TextView
     39         android:id="@+id/action_card_state"
     40         android:layout_width="match_parent"
     41         android:layout_height="wrap_content"
     42         android:layout_below="@id/action_card_label"
     43         android:layout_marginStart="12dp"
     44         android:layout_marginEnd="12dp"
     45         android:paddingTop="4dp"
     46         android:fontFamily="@string/condensed_font"
     47         android:maxLines="1"
     48         android:textColor="@color/action_card_state_color"
     49         android:textSize="@dimen/action_card_state_font_size" />
     50 
     51     <ImageView
     52         android:id="@+id/action_card_icon"
     53         android:layout_width="@dimen/action_card_icon_width"
     54         android:layout_height="@dimen/action_card_icon_height"
     55         android:layout_margin="@dimen/action_card_icon_padding"
     56         android:layout_alignParentBottom="true"
     57         android:layout_alignParentEnd="true"
     58         android:contentDescription="@null"
     59         android:scaleType="fitCenter" />
     60 
     61 </com.android.tv.menu.ActionCardView>
     62