aboutsummaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/activity_dvr_playback.xml6
-rw-r--r--res/layout/activity_dvr_schedules.xml1
-rw-r--r--res/layout/activity_tv.xml22
-rw-r--r--res/layout/block_screen.xml11
-rw-r--r--res/layout/dvr_details_description.xml3
-rw-r--r--res/layout/dvr_main.xml2
-rw-r--r--res/layout/dvr_play.xml28
-rw-r--r--res/layout/dvr_recording_card_view.xml37
-rw-r--r--res/layout/dvr_schedules_item.xml12
-rw-r--r--res/layout/guided_action_editable.xml41
-rw-r--r--res/layout/input_banner.xml2
-rw-r--r--res/layout/list_item_dvr_history.xml59
-rw-r--r--res/layout/menu_card_action.xml57
-rw-r--r--res/layout/menu_card_app_link.xml7
-rw-r--r--res/layout/menu_card_channel.xml7
-rw-r--r--res/layout/menu_card_dvr.xml16
-rw-r--r--res/layout/menu_card_guide.xml16
-rw-r--r--res/layout/menu_card_setup.xml16
-rw-r--r--res/layout/menu_card_text.xml1
-rw-r--r--res/layout/option_container.xml2
-rw-r--r--res/layout/option_fragment.xml1
-rw-r--r--res/layout/option_item_action.xml15
-rw-r--r--res/layout/option_item_channel_check.xml1
-rw-r--r--res/layout/option_item_channel_lock.xml1
-rw-r--r--res/layout/option_item_check_box.xml1
-rw-r--r--res/layout/option_item_common.xml2
-rw-r--r--res/layout/option_item_radio_button.xml1
-rw-r--r--res/layout/option_item_switch.xml1
-rw-r--r--res/layout/play_controls_contents.xml218
-rw-r--r--res/layout/select_input_item.xml2
-rw-r--r--res/layout/tunable_tv_view.xml14
31 files changed, 304 insertions, 299 deletions
diff --git a/res/layout/activity_dvr_playback.xml b/res/layout/activity_dvr_playback.xml
index 204001c7..02641d84 100644
--- a/res/layout/activity_dvr_playback.xml
+++ b/res/layout/activity_dvr_playback.xml
@@ -34,7 +34,11 @@
</FrameLayout>
<fragment android:id="@+id/dvr_playback_controls_fragment"
- android:name="com.android.tv.dvr.ui.DvrPlaybackOverlayFragment"
+ android:name="com.android.tv.dvr.ui.playback.DvrPlaybackOverlayFragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ <FrameLayout android:id="@+id/dvr_playback_side_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
diff --git a/res/layout/activity_dvr_schedules.xml b/res/layout/activity_dvr_schedules.xml
index 61e1f2a6..43b22866 100644
--- a/res/layout/activity_dvr_schedules.xml
+++ b/res/layout/activity_dvr_schedules.xml
@@ -16,6 +16,7 @@
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/dvr_schedules"
android:layout_width="match_parent"
android:layout_height="match_parent">
diff --git a/res/layout/activity_tv.xml b/res/layout/activity_tv.xml
index f766ae00..b6a0a3a3 100644
--- a/res/layout/activity_tv.xml
+++ b/res/layout/activity_tv.xml
@@ -23,33 +23,11 @@
android:foreground="@android:color/transparent"
android:keepScreenOn="true">
- <com.android.tv.ui.AppLayerTvView android:id="@+id/main_tv_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="start|center_vertical" />
-
<com.android.tv.ui.TunableTvView android:id="@+id/main_tunable_tv_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start|center_vertical" />
- <com.android.tv.ui.AppLayerTvView android:id="@+id/pip_tv_view"
- android:layout_marginLeft="@dimen/pipview_margin_horizontal"
- android:layout_marginRight="@dimen/pipview_margin_horizontal"
- android:layout_marginTop="@dimen/pipview_margin_top"
- android:layout_marginBottom="@dimen/pipview_margin_bottom"
- android:layout_width="@dimen/pipview_small_size_width"
- android:layout_height="@dimen/pipview_small_size_height" />
-
- <com.android.tv.ui.TunableTvView android:id="@+id/pip_tunable_tv_view"
- android:visibility="gone"
- android:layout_marginLeft="@dimen/pipview_margin_horizontal"
- android:layout_marginRight="@dimen/pipview_margin_horizontal"
- android:layout_marginTop="@dimen/pipview_margin_top"
- android:layout_marginBottom="@dimen/pipview_margin_bottom"
- android:layout_width="@dimen/pipview_small_size_width"
- android:layout_height="@dimen/pipview_small_size_height" />
-
<FrameLayout
android:id="@+id/scene_container"
android:layout_height="match_parent"
diff --git a/res/layout/block_screen.xml b/res/layout/block_screen.xml
index 6a04e966..c564efd0 100644
--- a/res/layout/block_screen.xml
+++ b/res/layout/block_screen.xml
@@ -16,12 +16,18 @@
-->
<com.android.tv.ui.BlockScreenView xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:gravity="center"
android:visibility="gone"
android:background="@android:color/black">
+
+ <ImageView
+ android:id="@+id/background_image"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="fitCenter"
+ android:visibility="gone" />
+
<!-- This layout is used for the animation -->
<LinearLayout
android:id="@+id/block_screen_container"
@@ -43,6 +49,7 @@
android:contentDescription="@null" />
<ImageView
android:id="@+id/block_screen_shrunken_icon"
+ android:src="@drawable/ic_message_lock_preview"
android:layout_width="@dimen/shrunken_tvview_block_icon_width"
android:layout_height="@dimen/shrunken_tvview_block_icon_height"
android:layout_gravity="center"
diff --git a/res/layout/dvr_details_description.xml b/res/layout/dvr_details_description.xml
index c5db470f..d55688ba 100644
--- a/res/layout/dvr_details_description.xml
+++ b/res/layout/dvr_details_description.xml
@@ -40,8 +40,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:background="?android:attr/selectableItemBackground"
- android:clickable="true">
+ android:background="?android:attr/selectableItemBackground">
<TextView android:id="@+id/dvr_details_description_body"
android:layout_width="wrap_content"
diff --git a/res/layout/dvr_main.xml b/res/layout/dvr_main.xml
index bac1cc91..6e18a834 100644
--- a/res/layout/dvr_main.xml
+++ b/res/layout/dvr_main.xml
@@ -16,6 +16,6 @@
-->
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dvr_frame"
- android:name="com.android.tv.dvr.ui.DvrBrowseFragment"
+ android:name="com.android.tv.dvr.ui.browse.DvrBrowseFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" /> \ No newline at end of file
diff --git a/res/layout/dvr_play.xml b/res/layout/dvr_play.xml
deleted file mode 100644
index 4df13686..00000000
--- a/res/layout/dvr_play.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (C) 2015 The Android Open Source Project
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License
- -->
-
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="@string/no_program_information"
- android:id="@+id/placeHolderText" android:layout_gravity="center"/>
-</FrameLayout> \ No newline at end of file
diff --git a/res/layout/dvr_recording_card_view.xml b/res/layout/dvr_recording_card_view.xml
index d3808a31..53a7cf3d 100644
--- a/res/layout/dvr_recording_card_view.xml
+++ b/res/layout/dvr_recording_card_view.xml
@@ -16,12 +16,12 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tv="http://schemas.android.com/apk/res/com.android.tv"
- android:layout_width="@dimen/dvr_card_layout_width"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content">
<FrameLayout
- android:layout_width="@dimen/dvr_card_image_layout_width"
- android:layout_height="@dimen/dvr_card_image_layout_height"
+ android:layout_width="@dimen/dvr_library_card_image_layout_width"
+ android:layout_height="@dimen/dvr_library_card_image_layout_height"
android:layout_margin="2dp">
<ImageView android:id="@+id/image"
@@ -35,7 +35,7 @@
<ProgressBar android:id="@+id/recording_progress"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
- android:layout_height="@dimen/dvr_card_progress_height"
+ android:layout_height="@dimen/dvr_library_card_progress_height"
android:mirrorForRtl="false"
android:progressTint="@color/play_controls_progress_bar_watched"
android:progressDrawable="@drawable/progress_horizontal"
@@ -70,13 +70,30 @@
android:background="@color/dvr_card_info"
tv:layout_viewType="info">
- <TextView android:id="@+id/title"
+ <FrameLayout android:id="@+id/title_area"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="1dp"
- android:gravity="start"
- style="@style/dvr_card_view_title_text"
- tv:layout_viewType="main"/>
+ android:layout_height="@dimen/dvr_library_card_folded_title_height">
+
+ <TextView android:id="@+id/title_one_line"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="1dp"
+ android:gravity="start"
+ android:maxLines="1"
+ style="@style/dvr_card_view_title_text"
+ tv:layout_viewType="main"/>
+
+ <TextView android:id="@+id/title_two_lines"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="1dp"
+ android:gravity="start"
+ android:maxLines="2"
+ android:alpha="0"
+ style="@style/dvr_card_view_title_text"
+ tv:layout_viewType="main"/>
+
+ </FrameLayout>
<RelativeLayout
android:layout_width="match_parent"
diff --git a/res/layout/dvr_schedules_item.xml b/res/layout/dvr_schedules_item.xml
index 1d97cb98..90e1123d 100644
--- a/res/layout/dvr_schedules_item.xml
+++ b/res/layout/dvr_schedules_item.xml
@@ -44,19 +44,23 @@
android:layout_height="match_parent"
android:alpha="0"/>
+ <!-- Make parent focusable in case when the info_container is not focusable.
+ As the actions are GONE when the row is not selected, if info_container is not
+ focusable, there are no focusable views in the row, which causes that the row can't be
+ selected by the DPAD. To avoid this case, the parent should be focusable. -->
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ android:focusable="true"
+ android:descendantFocusability="afterDescendants">
<LinearLayout android:id="@+id/info_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/dvr_schedules_item_section_margin"
android:layout_weight="1"
- android:clickable="true"
- android:focusableInTouchMode="true"
- android:focusable="true">
+ android:clickable="true">
<TextView android:id="@+id/time"
android:layout_width="@dimen/dvr_schedules_item_time_width"
diff --git a/res/layout/guided_action_editable.xml b/res/layout/guided_action_editable.xml
new file mode 100644
index 00000000..84f56f8d
--- /dev/null
+++ b/res/layout/guided_action_editable.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2017 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<android.support.v17.leanback.widget.GuidedActionItemContainer
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/guidedactions_editable"
+ style="?attr/guidedActionItemContainerStyle"
+ android:layout_height="88dp">
+
+ <android.support.v17.leanback.widget.NonOverlappingLinearLayout
+ android:id="@+id/guidedactions_item_content"
+ style="?attr/guidedActionItemContentStyle" >
+
+ <EditText
+ android:id="@+id/guidedactions_item_title"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:textColor="@color/lb_guidedactions_item_unselected_text_color"
+ android:textSize="16sp" />
+
+ <android.support.v17.leanback.widget.GuidedActionEditText
+ android:id="@+id/guidedactions_item_description"
+ style="?attr/guidedActionItemDescriptionStyle" />
+
+ </android.support.v17.leanback.widget.NonOverlappingLinearLayout>
+
+</android.support.v17.leanback.widget.GuidedActionItemContainer> \ No newline at end of file
diff --git a/res/layout/input_banner.xml b/res/layout/input_banner.xml
index cd8770c8..f4035fcb 100644
--- a/res/layout/input_banner.xml
+++ b/res/layout/input_banner.xml
@@ -34,6 +34,7 @@
<TextView android:id="@+id/input_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxWidth="@dimen/input_banner_item_label_max_width"
android:fontFamily="@string/condensed_font"
android:textColor="@color/select_input_text_color_primary"
android:singleLine="true"
@@ -44,6 +45,7 @@
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxWidth="@dimen/input_banner_item_label_max_width"
android:fontFamily="@string/condensed_font"
android:textColor="@color/select_input_text_color_secondary"
android:singleLine="true"
diff --git a/res/layout/list_item_dvr_history.xml b/res/layout/list_item_dvr_history.xml
new file mode 100644
index 00000000..a9eb4c02
--- /dev/null
+++ b/res/layout/list_item_dvr_history.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2016 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:padding="2dp" >
+
+ <TextView
+ android:id="@+id/state"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="4dp"
+ android:paddingEnd="0dp" />
+
+ <TextView
+ android:id="@+id/schedule_time"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="4dp"
+ android:paddingEnd="0dp" />
+
+ <TextView
+ android:id="@+id/program_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="4dp"
+ android:paddingEnd="0dp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="4dp"
+ android:paddingEnd="0dp"
+ android:text="@string/dvr_schedules_information_separator" />
+
+ <TextView
+ android:id="@+id/channel_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="4dp"
+ android:paddingEnd="0dp" />
+
+</LinearLayout>
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>
diff --git a/res/layout/menu_card_app_link.xml b/res/layout/menu_card_app_link.xml
index 918cb788..a7e3bd4a 100644
--- a/res/layout/menu_card_app_link.xml
+++ b/res/layout/menu_card_app_link.xml
@@ -33,13 +33,6 @@
android:layout_gravity="top"
android:scaleType="centerCrop"/>
- <View android:id="@+id/image_gradient"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/card_image_gradient"
- android:visibility="gone" />
-
<TextView android:id="@+id/app_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/res/layout/menu_card_channel.xml b/res/layout/menu_card_channel.xml
index 4e49636f..ed7b8273 100644
--- a/res/layout/menu_card_channel.xml
+++ b/res/layout/menu_card_channel.xml
@@ -32,13 +32,6 @@
android:layout_gravity="top"
android:scaleType="centerCrop"/>
- <View android:id="@+id/image_gradient"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/card_image_gradient"
- android:visibility="gone" />
-
<!-- The bottom margin specified in the redline is 8dp, but the redline doesn't consider
the descenders. So actually, if the bottom margin is set to 8dp, the bottom line of
the text lies 11dp above the bottom of the poster art due to the descenders.
diff --git a/res/layout/menu_card_dvr.xml b/res/layout/menu_card_dvr.xml
index cc589775..4f159083 100644
--- a/res/layout/menu_card_dvr.xml
+++ b/res/layout/menu_card_dvr.xml
@@ -23,17 +23,15 @@
android:focusable="true"
android:clickable="true">
- <FrameLayout
+ <ImageView
android:layout_width="@dimen/card_image_layout_width"
android:layout_height="@dimen/card_image_layout_height"
- android:background="@color/channel_card_guide">
- <ImageView
- android:layout_width="82dp"
- android:layout_height="48dp"
- android:layout_marginTop="16dp"
- android:src="@drawable/ic_dvr"
- android:layout_gravity="center_horizontal" />
- </FrameLayout>
+ android:background="@color/channel_card_guide"
+ android:paddingBottom="16dp"
+ android:paddingEnd="30dp"
+ android:paddingStart="30dp"
+ android:paddingTop="16dp"
+ android:src="@drawable/ic_dvr" />
<FrameLayout
android:layout_width="match_parent"
diff --git a/res/layout/menu_card_guide.xml b/res/layout/menu_card_guide.xml
index 6b724b12..c36b7df5 100644
--- a/res/layout/menu_card_guide.xml
+++ b/res/layout/menu_card_guide.xml
@@ -23,17 +23,15 @@
android:focusable="true"
android:clickable="true">
- <FrameLayout
+ <ImageView
android:layout_width="@dimen/card_image_layout_width"
android:layout_height="@dimen/card_image_layout_height"
- android:background="@color/channel_card_guide">
- <ImageView
- android:layout_width="82dp"
- android:layout_height="48dp"
- android:layout_marginTop="16dp"
- android:src="@drawable/ic_channel_guide"
- android:layout_gravity="center_horizontal" />
- </FrameLayout>
+ android:background="@color/channel_card_guide"
+ android:paddingBottom="16dp"
+ android:paddingEnd="30dp"
+ android:paddingStart="30dp"
+ android:paddingTop="16dp"
+ android:src="@drawable/ic_channel_guide" />
<TextView
android:layout_width="match_parent"
diff --git a/res/layout/menu_card_setup.xml b/res/layout/menu_card_setup.xml
index 38abd4e5..520cb4e5 100644
--- a/res/layout/menu_card_setup.xml
+++ b/res/layout/menu_card_setup.xml
@@ -22,17 +22,15 @@
android:focusable="true"
android:clickable="true">
- <FrameLayout
+ <ImageView
android:layout_width="@dimen/card_image_layout_width"
android:layout_height="@dimen/card_image_layout_height"
- android:background="@color/channel_card_guide">
- <ImageView
- android:layout_width="82dp"
- android:layout_height="48dp"
- android:layout_marginTop="16dp"
- android:src="@drawable/ic_setup_channels"
- android:layout_gravity="center_horizontal" />
- </FrameLayout>
+ android:background="@color/channel_card_guide"
+ android:paddingBottom="16dp"
+ android:paddingEnd="30dp"
+ android:paddingStart="30dp"
+ android:paddingTop="16dp"
+ android:src="@drawable/ic_setup_channels" />
<TextView
android:layout_width="match_parent"
diff --git a/res/layout/menu_card_text.xml b/res/layout/menu_card_text.xml
index 777b100f..7674f816 100644
--- a/res/layout/menu_card_text.xml
+++ b/res/layout/menu_card_text.xml
@@ -16,7 +16,6 @@
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tv="http://schemas.android.com/apk/res/com.android.tv"
android:layout_width="match_parent"
android:layout_height="wrap_content">
diff --git a/res/layout/option_container.xml b/res/layout/option_container.xml
index f053e660..dd8c96c7 100644
--- a/res/layout/option_container.xml
+++ b/res/layout/option_container.xml
@@ -22,6 +22,8 @@
android:layout_gravity="end"
android:elevation="@dimen/side_panel_elevation"
android:background="@color/side_panel_background"
+ android:translationX="@dimen/side_panel_enter_offset_x"
+ android:alpha="0.0"
android:visibility="gone">
<!-- Background for header -->
diff --git a/res/layout/option_fragment.xml b/res/layout/option_fragment.xml
index 39f67497..4a4cbbdf 100644
--- a/res/layout/option_fragment.xml
+++ b/res/layout/option_fragment.xml
@@ -41,7 +41,6 @@
android:clipChildren="false"
android:clipToPadding="false"
android:focusable="true"
- android:paddingTop="@dimen/side_panel_list_padding_top"
android:paddingBottom="@dimen/side_panel_list_padding_bottom"
lb:verticalMargin="@dimen/side_panel_list_vertical_margin" />
diff --git a/res/layout/option_item_action.xml b/res/layout/option_item_action.xml
index a7a02b2d..6dc5b35b 100644
--- a/res/layout/option_item_action.xml
+++ b/res/layout/option_item_action.xml
@@ -24,19 +24,8 @@
android:focusable="true"
android:background="?android:attr/selectableItemBackground" >
- <ImageView
- android:id="@+id/icon"
- android:layout_width="36dp"
- android:layout_height="36dp"
- android:layout_weight="0"
- android:layout_marginEnd="20dp"
- android:layout_marginTop="14dp"
- android:layout_marginBottom="14dp"
- android:contentDescription="@null" />
-
<include layout="@layout/option_item_common"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1" />
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
</LinearLayout>
diff --git a/res/layout/option_item_channel_check.xml b/res/layout/option_item_channel_check.xml
index 2817d2b9..f68c2f9a 100644
--- a/res/layout/option_item_channel_check.xml
+++ b/res/layout/option_item_channel_check.xml
@@ -28,7 +28,6 @@
android:id="@+id/check_box"
android:layout_width="@dimen/option_item_compound_button_width"
android:layout_height="match_parent"
- android:layout_weight="0"
android:background="@null"
android:clickable="false" />
diff --git a/res/layout/option_item_channel_lock.xml b/res/layout/option_item_channel_lock.xml
index f4f65f99..f7b5c9e9 100644
--- a/res/layout/option_item_channel_lock.xml
+++ b/res/layout/option_item_channel_lock.xml
@@ -28,7 +28,6 @@
android:id="@+id/check_box"
android:layout_width="@dimen/option_item_compound_button_width"
android:layout_height="match_parent"
- android:layout_weight="0"
android:button="@drawable/btn_lock_material_anim"
android:background="@null"
android:clickable="false" />
diff --git a/res/layout/option_item_check_box.xml b/res/layout/option_item_check_box.xml
index 1ab2ba45..711e362b 100644
--- a/res/layout/option_item_check_box.xml
+++ b/res/layout/option_item_check_box.xml
@@ -28,7 +28,6 @@
android:id="@+id/check_box"
android:layout_width="@dimen/option_item_compound_button_width"
android:layout_height="wrap_content"
- android:layout_weight="0"
android:layout_gravity="center"
android:background="@null"
android:clickable="false" />
diff --git a/res/layout/option_item_common.xml b/res/layout/option_item_common.xml
index ca0013c6..65294211 100644
--- a/res/layout/option_item_common.xml
+++ b/res/layout/option_item_common.xml
@@ -42,7 +42,7 @@
android:fontFamily="@string/option_item_secondary_text_font"
android:textSize="@dimen/option_item_secondary_text_size"
android:textColor="@color/option_item_secondary_text_color"
- android:maxLines="3"
+ android:maxLines="@integer/option_item_description_max_lines"
android:ellipsize="end"
android:focusable="false" />
diff --git a/res/layout/option_item_radio_button.xml b/res/layout/option_item_radio_button.xml
index 2e4fa11a..35be8c78 100644
--- a/res/layout/option_item_radio_button.xml
+++ b/res/layout/option_item_radio_button.xml
@@ -28,7 +28,6 @@
android:id="@+id/radio_button"
android:layout_width="@dimen/option_item_compound_button_width"
android:layout_height="match_parent"
- android:layout_weight="0"
android:background="@null"
android:clickable="false" />
diff --git a/res/layout/option_item_switch.xml b/res/layout/option_item_switch.xml
index 4750ebc4..7b5c6ece 100644
--- a/res/layout/option_item_switch.xml
+++ b/res/layout/option_item_switch.xml
@@ -33,7 +33,6 @@
android:id="@+id/switch_button"
android:layout_width="@dimen/option_item_compound_button_width"
android:layout_height="match_parent"
- android:layout_weight="0"
android:background="@null"
android:clickable="false" />
diff --git a/res/layout/play_controls_contents.xml b/res/layout/play_controls_contents.xml
index ac61a2d4..9afc5f3d 100644
--- a/res/layout/play_controls_contents.xml
+++ b/res/layout/play_controls_contents.xml
@@ -16,6 +16,7 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tv="http://schemas.android.com/apk/res-auto"
android:id="@+id/play_controls"
style="@style/menu_row_contents_view"
android:layoutDirection="ltr">
@@ -28,153 +29,118 @@
android:layout_alignStart="@+id/body"
android:layout_marginBottom="@dimen/play_controls_time_bottom_margin"
android:gravity="center"
- android:singleLine="true"
+ android:maxLines="1"
android:textColor="@color/play_controls_time_text_color"
android:textSize="@dimen/play_controls_time_text_size"
android:fontFamily="@string/font" />
- <LinearLayout
+ <RelativeLayout
android:id="@id/body"
- android:orientation="vertical"
android:layout_width="@dimen/play_controls_width"
android:layout_height="wrap_content"
android:layout_below="@id/time_text"
android:layout_centerHorizontal="true"
android:background="@drawable/play_controls_body_shape">
- <RelativeLayout
+ <com.android.tv.menu.PlaybackProgressBar
+ android:id="@+id/progress"
android:layout_width="match_parent"
- android:layout_height="@dimen/play_controls_progress_height">
-
- <ImageView
- android:id="@+id/timeline_bg_start"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignParentStart="true"
- android:src="@color/play_controls_progress_bar_background" />
- <ImageView
- android:id="@+id/watched"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_toEndOf="@id/timeline_bg_start"
- android:src="@color/play_controls_progress_bar_watched" />
- <ImageView
- android:id="@+id/buffered"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_toEndOf="@id/watched"
- android:src="@color/play_controls_progress_bar_buffered" />
- <ImageView
- android:id="@+id/timeline_bg_end"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_alignParentEnd="true"
- android:layout_toEndOf="@id/buffered"
- android:src="@color/play_controls_progress_bar_background" />
-
- </RelativeLayout>
-
- <FrameLayout
+ android:layout_height="@dimen/play_controls_progress_height"
+ android:layout_alignParentTop="true"
+ tv:progressDrawable="@drawable/playback_progress_bar" />
+ <TextView
android:id="@+id/background"
android:layout_width="match_parent"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:background="@drawable/play_controls_body_background"
+ android:gravity="center"
+ android:maxLines="1"
+ android:textColor="@color/play_controls_unavailable_message_text_color"
+ android:textSize="@dimen/play_controls_unavailable_message_text_size"
+ android:fontFamily="@string/font" />
+ <TextView
+ android:id="@+id/program_start_time"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@drawable/play_controls_body_background">
-
- <TextView
- android:id="@+id/program_start_time"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/play_controls_program_time_margin_start"
- android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
- android:singleLine="true"
- android:textColor="@color/play_controls_rec_time_text_color"
- android:textSize="@dimen/play_controls_rec_time_text_size"
- android:fontFamily="@string/font" />
- <TextView
- android:id="@+id/program_end_time"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/play_controls_program_time_margin_end"
- android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
- android:layout_gravity="end"
- android:singleLine="true"
- android:textColor="@color/play_controls_rec_time_text_color"
- android:textSize="@dimen/play_controls_rec_time_text_size"
- android:fontFamily="@string/font" />
-
- <RelativeLayout
- android:id="@+id/play_control_bar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/play_controls_button_height">
-
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/play_pause"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_centerHorizontal="true" />
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/rewind"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_toLeftOf="@id/play_pause" />
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/jump_previous"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_toLeftOf="@id/rewind" />
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/fast_forward"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_toRightOf="@id/play_pause" />
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/jump_next"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_toRightOf="@id/fast_forward" />
- <com.android.tv.menu.PlayControlsButton
- android:id="@+id/record"
- android:layout_width="@dimen/play_controls_button_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/play_controls_button_normal_margin"
- android:layout_marginRight="@dimen/play_controls_button_normal_margin"
- android:layout_toRightOf="@id/jump_next"
- android:visibility="gone" />
-
- </RelativeLayout>
+ android:layout_alignParentStart="true"
+ android:layout_below="@id/progress"
+ android:layout_marginStart="@dimen/play_controls_program_time_margin_start"
+ android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
+ android:maxLines="1"
+ android:textColor="@color/play_controls_rec_time_text_color"
+ android:textSize="@dimen/play_controls_rec_time_text_size"
+ android:fontFamily="@string/font" />
+ <TextView
+ android:id="@+id/program_end_time"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_below="@id/progress"
+ android:layout_marginEnd="@dimen/play_controls_program_time_margin_end"
+ android:layout_marginTop="@dimen/play_controls_program_time_margin_top"
+ android:maxLines="1"
+ android:textColor="@color/play_controls_rec_time_text_color"
+ android:textSize="@dimen/play_controls_rec_time_text_size"
+ android:fontFamily="@string/font" />
- <TextView
- android:id="@+id/unavailable_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:singleLine="true"
- android:textColor="@color/play_controls_unavailable_message_text_color"
- android:textSize="@dimen/play_controls_unavailable_message_text_size"
- android:fontFamily="@string/font"
- android:visibility="gone"
- android:text="@string/play_controls_unavailable" />
- </FrameLayout>
- </LinearLayout>
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/play_pause"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_centerHorizontal="true" />
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/rewind"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_toStartOf="@id/play_pause" />
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/jump_previous"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_toStartOf="@id/rewind" />
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/fast_forward"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_toEndOf="@id/play_pause" />
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/jump_next"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_toEndOf="@id/fast_forward" />
+ <com.android.tv.menu.PlayControlsButton
+ android:id="@+id/record"
+ android:layout_width="@dimen/play_controls_button_width"
+ android:layout_height="@dimen/play_controls_button_height"
+ android:layout_below="@id/progress"
+ android:layout_marginLeft="@dimen/play_controls_button_compact_margin"
+ android:layout_marginRight="@dimen/play_controls_button_compact_margin"
+ android:layout_toEndOf="@id/jump_next" />
+ </RelativeLayout>
- <ImageView
+ <View
android:id="@+id/time_indicator"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="@dimen/play_controls_time_indicator_width"
+ android:layout_height="@dimen/play_controls_time_indicator_height"
android:layout_marginTop="@dimen/play_controls_time_indicator_top_margin"
android:layout_alignTop="@id/body"
android:layout_alignStart="@id/body"
android:background="@drawable/play_controls_time_indicator"
- android:visibility="invisible"
android:elevation="1dp" />
</RelativeLayout>
diff --git a/res/layout/select_input_item.xml b/res/layout/select_input_item.xml
index 1ff6df29..12fedca6 100644
--- a/res/layout/select_input_item.xml
+++ b/res/layout/select_input_item.xml
@@ -28,6 +28,7 @@
<TextView android:id="@+id/input_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxWidth="@dimen/input_banner_item_label_max_width"
android:fontFamily="@string/condensed_font"
android:singleLine="true"
android:ellipsize="end"
@@ -37,6 +38,7 @@
android:layout_marginStart="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:maxWidth="@dimen/input_banner_item_label_max_width"
android:fontFamily="@string/condensed_font"
android:singleLine="true"
android:ellipsize="end"
diff --git a/res/layout/tunable_tv_view.xml b/res/layout/tunable_tv_view.xml
index e02fb892..00c9908c 100644
--- a/res/layout/tunable_tv_view.xml
+++ b/res/layout/tunable_tv_view.xml
@@ -16,15 +16,14 @@
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
- <View
- android:id="@+id/block_screen_for_tune"
- android:visibility="gone"
+
+ <com.android.tv.ui.AppLayerTvView android:id="@+id/tv_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@android:color/black" />
+ android:layout_gravity="start|center_vertical" />
<include layout="@layout/block_screen"
- android:id="@+id/hide_screen" />
+ android:id="@+id/block_screen" />
<ProgressBar
android:id="@+id/buffering_spinner"
@@ -34,11 +33,8 @@
android:background="@android:color/transparent"
android:layout_gravity="center" />
- <include layout="@layout/block_screen"
- android:id="@+id/block_screen" />
-
<View
- android:id="@+id/dim"
+ android:id="@+id/dim_screen"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"