summaryrefslogtreecommitdiffstats
path: root/current/support/v17/leanback/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'current/support/v17/leanback/res/layout')
-rw-r--r--current/support/v17/leanback/res/layout/lb_action_1_line.xml24
-rw-r--r--current/support/v17/leanback/res/layout/lb_action_2_lines.xml24
-rw-r--r--current/support/v17/leanback/res/layout/lb_background_window.xml21
-rw-r--r--current/support/v17/leanback/res/layout/lb_browse_fragment.xml42
-rw-r--r--current/support/v17/leanback/res/layout/lb_browse_title.xml26
-rw-r--r--current/support/v17/leanback/res/layout/lb_card_color_overlay.xml21
-rw-r--r--current/support/v17/leanback/res/layout/lb_details_description.xml46
-rw-r--r--current/support/v17/leanback/res/layout/lb_details_fragment.xml26
-rw-r--r--current/support/v17/leanback/res/layout/lb_details_overview.xml77
-rw-r--r--current/support/v17/leanback/res/layout/lb_error_fragment.xml64
-rw-r--r--current/support/v17/leanback/res/layout/lb_header.xml24
-rw-r--r--current/support/v17/leanback/res/layout/lb_headers_fragment.xml23
-rw-r--r--current/support/v17/leanback/res/layout/lb_image_card_view.xml88
-rw-r--r--current/support/v17/leanback/res/layout/lb_list_row.xml23
-rw-r--r--current/support/v17/leanback/res/layout/lb_list_row_hovercard.xml32
-rw-r--r--current/support/v17/leanback/res/layout/lb_row_container.xml26
-rw-r--r--current/support/v17/leanback/res/layout/lb_row_header.xml24
-rw-r--r--current/support/v17/leanback/res/layout/lb_rows_fragment.xml23
-rw-r--r--current/support/v17/leanback/res/layout/lb_search_bar.xml75
-rw-r--r--current/support/v17/leanback/res/layout/lb_search_fragment.xml35
-rw-r--r--current/support/v17/leanback/res/layout/lb_search_orb.xml34
-rw-r--r--current/support/v17/leanback/res/layout/lb_shadow.xml31
-rw-r--r--current/support/v17/leanback/res/layout/lb_speech_orb.xml34
-rw-r--r--current/support/v17/leanback/res/layout/lb_title_view.xml42
-rw-r--r--current/support/v17/leanback/res/layout/lb_vertical_grid.xml24
-rw-r--r--current/support/v17/leanback/res/layout/lb_vertical_grid_fragment.xml37
26 files changed, 946 insertions, 0 deletions
diff --git a/current/support/v17/leanback/res/layout/lb_action_1_line.xml b/current/support/v17/leanback/res/layout/lb_action_1_line.xml
new file mode 100644
index 0000000..52d89e0
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_action_1_line.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/lb_action_button"
+ android:layout_width="wrap_content"
+ android:layout_height="@dimen/lb_action_1_line_height"
+ style="?attr/detailsActionButtonStyle"
+ android:lines="1"
+ />
diff --git a/current/support/v17/leanback/res/layout/lb_action_2_lines.xml b/current/support/v17/leanback/res/layout/lb_action_2_lines.xml
new file mode 100644
index 0000000..697074a
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_action_2_lines.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/lb_action_button"
+ android:layout_width="wrap_content"
+ android:layout_height="@dimen/lb_action_2_lines_height"
+ style="?attr/detailsActionButtonStyle"
+ android:lines="2"
+ />
diff --git a/current/support/v17/leanback/res/layout/lb_background_window.xml b/current/support/v17/leanback/res/layout/lb_background_window.xml
new file mode 100644
index 0000000..73c84d2
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_background_window.xml
@@ -0,0 +1,21 @@
+<!--?xml version="1.0" encoding="utf-8"?-->
+<!--
+ Copyright (C) 2014 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:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
diff --git a/current/support/v17/leanback/res/layout/lb_browse_fragment.xml b/current/support/v17/leanback/res/layout/lb_browse_fragment.xml
new file mode 100644
index 0000000..076a2f1
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_browse_fragment.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:id="@+id/browse_dummy"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <!-- BrowseFrameLayout serves as root of transition and manages switch between
+ left and right-->
+ <android.support.v17.leanback.app.BrowseFrameLayout
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:descendantFocusability="afterDescendants"
+ android:id="@+id/browse_frame"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <android.support.v17.leanback.app.BrowseRowsFrameLayout
+ android:id="@+id/browse_container_dock"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+ <FrameLayout
+ android:id="@+id/browse_headers_dock"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent" />
+ <include layout="@layout/lb_browse_title" />
+ </android.support.v17.leanback.app.BrowseFrameLayout>
+</FrameLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_browse_title.xml b/current/support/v17/leanback/res/layout/lb_browse_title.xml
new file mode 100644
index 0000000..75068d8
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_browse_title.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.TitleView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/browse_title_group"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="?attr/browsePaddingTop"
+ android:paddingRight="?attr/browsePaddingRight"
+ android:paddingLeft="?attr/browsePaddingLeft"
+ android:paddingBottom="?attr/browsePaddingTop"
+ style="?attr/browseTitleViewStyle" />
+
diff --git a/current/support/v17/leanback/res/layout/lb_card_color_overlay.xml b/current/support/v17/leanback/res/layout/lb_card_color_overlay.xml
new file mode 100644
index 0000000..45a40e1
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_card_color_overlay.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<View
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
diff --git a/current/support/v17/leanback/res/layout/lb_details_description.xml b/current/support/v17/leanback/res/layout/lb_details_description.xml
new file mode 100644
index 0000000..798504f
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_details_description.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ >
+
+ <!-- Top margins set programatically -->
+ <TextView
+ android:id="@+id/lb_details_description_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?attr/detailsDescriptionTitleStyle"
+ />
+
+ <TextView
+ android:id="@+id/lb_details_description_subtitle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?attr/detailsDescriptionSubtitleStyle"
+ />
+
+ <TextView
+ android:id="@+id/lb_details_description_body"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?attr/detailsDescriptionBodyStyle"
+ />
+</LinearLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_details_fragment.xml b/current/support/v17/leanback/res/layout/lb_details_fragment.xml
new file mode 100644
index 0000000..92cf4b4
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_details_fragment.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:id="@+id/dummy"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <FrameLayout
+ android:id="@+id/fragment_dock"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent" />
+</FrameLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_details_overview.xml b/current/support/v17/leanback/res/layout/lb_details_overview.xml
new file mode 100644
index 0000000..ae8cddd
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_details_overview.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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"
+ xmlns:lb="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="@dimen/lb_details_overview_margin_left"
+ android:paddingRight="@dimen/lb_details_overview_margin_right"
+ android:paddingBottom="@dimen/lb_details_overview_margin_bottom"
+ >
+
+ <!-- Background is applied to this inner layout -->
+ <LinearLayout
+ android:id="@+id/details_overview"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/lb_details_overview_height_large"
+ android:orientation="horizontal"
+ >
+
+ <ImageView
+ android:id="@+id/details_overview_image"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:adjustViewBounds="true"
+ android:scaleType="fitStart"
+ />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginBottom="@dimen/lb_details_overview_description_margin_bottom"
+ android:layout_marginTop="@dimen/lb_details_overview_description_margin_top"
+ android:orientation="vertical" >
+
+ <FrameLayout
+ android:id="@+id/details_overview_description"
+ android:layout_width="wrap_content"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:gravity="top"
+ android:layout_marginLeft="@dimen/lb_details_overview_description_margin_left"
+ android:layout_marginRight="@dimen/lb_details_overview_description_margin_right"
+ />
+
+ <android.support.v17.leanback.widget.HorizontalGridView
+ android:id="@+id/details_overview_actions"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:clipChildren="false"
+ android:clipToPadding="false"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:paddingLeft="@dimen/lb_details_overview_description_margin_left"
+ android:paddingRight="@dimen/lb_details_overview_description_margin_right"
+ lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
+ lb:rowHeight="@dimen/lb_details_overview_actions_height" />
+
+ </LinearLayout>
+ </LinearLayout>
+
+</FrameLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_error_fragment.xml b/current/support/v17/leanback/res/layout/lb_error_fragment.xml
new file mode 100644
index 0000000..2815560
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_error_fragment.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:id="@+id/error_frame"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:descendantFocusability="afterDescendants"
+ android:nextFocusLeft="@id/error_frame"
+ android:nextFocusRight="@id/error_frame"
+ android:nextFocusUp="@id/error_frame"
+ android:nextFocusDown="@id/error_frame">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:orientation="vertical">
+
+ <ImageView
+ android:id="@+id/image"
+ android:layout_width="wrap_content"
+ android:layout_height="@dimen/lb_error_image_max_height"
+ android:layout_gravity="center"
+ android:visibility="gone"/>
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:maxWidth="@dimen/lb_error_message_max_width"
+ android:visibility="gone"
+ style="?attr/errorMessageStyle"/>
+ <Button
+ android:id="@+id/button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:visibility="gone"
+ android:nextFocusLeft="@id/button"
+ android:nextFocusRight="@id/button"
+ android:nextFocusUp="@id/button"
+ android:nextFocusDown="@id/button"
+ style="?android:attr/buttonStyle"/>
+ </LinearLayout>
+
+ <include layout="@layout/lb_browse_title" />
+
+</FrameLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_header.xml b/current/support/v17/leanback/res/layout/lb_header.xml
new file mode 100644
index 0000000..7437cf3
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_header.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.RowHeaderView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/row_header"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?headerStyle"
+ />
diff --git a/current/support/v17/leanback/res/layout/lb_headers_fragment.xml b/current/support/v17/leanback/res/layout/lb_headers_fragment.xml
new file mode 100644
index 0000000..dbfbb8d
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_headers_fragment.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.VerticalGridView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:lb="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/browse_headers"
+ android:layout_width="@dimen/lb_browse_headers_width"
+ android:layout_height="match_parent"
+ style="?attr/headersVerticalGridStyle"/>
diff --git a/current/support/v17/leanback/res/layout/lb_image_card_view.xml b/current/support/v17/leanback/res/layout/lb_image_card_view.xml
new file mode 100644
index 0000000..15f1164
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_image_card_view.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<merge
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:lb="http://schemas.android.com/apk/res-auto">
+
+ <ImageView
+ android:id="@+id/main_image"
+ lb:layout_viewType="main"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:scaleType="centerCrop"
+ android:adjustViewBounds="true"
+ android:contentDescription="@null" />
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ lb:layout_viewType="info" >
+ <RelativeLayout
+ android:id="@+id/info_field"
+ android:background="@color/lb_basic_card_info_bg_color"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/lb_basic_card_info_height"
+ android:padding="@dimen/lb_basic_card_info_padding"
+ android:layout_centerHorizontal="true" >
+ <TextView
+ android:id="@+id/title_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentStart="true"
+ android:layout_marginTop="@dimen/lb_basic_card_info_text_margin"
+ android:layout_marginLeft="@dimen/lb_basic_card_info_text_margin"
+ android:maxLines="1"
+ android:fontFamily="sans-serif-condensed"
+ android:textColor="@color/lb_basic_card_title_text_color"
+ android:textSize="@dimen/lb_basic_card_title_text_size"
+ android:ellipsize="end" />
+ <TextView
+ android:id="@+id/content_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentBottom="true"
+ android:layout_marginLeft="@dimen/lb_basic_card_info_text_margin"
+ android:layout_marginBottom="@dimen/lb_basic_card_info_text_margin"
+ android:maxLines="1"
+ android:fontFamily="sans-serif-condensed"
+ android:textColor="@color/lb_basic_card_content_text_color"
+ android:textSize="@dimen/lb_basic_card_content_text_size"
+ android:ellipsize="none" />
+ <ImageView
+ android:id="@+id/extra_badge"
+ android:layout_width="@dimen/lb_basic_card_info_badge_size"
+ android:layout_height="@dimen/lb_basic_card_info_badge_size"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true"
+ android:scaleType="fitCenter"
+ android:background="@color/lb_basic_card_info_bg_color"
+ android:visibility="gone"
+ android:contentDescription="@null" />
+ <ImageView
+ android:id="@+id/fade_mask"
+ android:src="@drawable/lb_ic_card_info_text_fade"
+ android:layout_width="wrap_content"
+ android:layout_height="@dimen/lb_basic_card_info_badge_size"
+ android:layout_alignParentBottom="true"
+ android:layout_toStartOf="@id/extra_badge"
+ android:scaleType="fitCenter"
+ android:visibility="gone"
+ android:contentDescription="@null" />
+ </RelativeLayout>
+ </FrameLayout>
+</merge>
diff --git a/current/support/v17/leanback/res/layout/lb_list_row.xml b/current/support/v17/leanback/res/layout/lb_list_row.xml
new file mode 100644
index 0000000..80d7bef
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_list_row.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.HorizontalGridView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/row_content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ style="?attr/rowHorizontalGridStyle" />
diff --git a/current/support/v17/leanback/res/layout/lb_list_row_hovercard.xml b/current/support/v17/leanback/res/layout/lb_list_row_hovercard.xml
new file mode 100644
index 0000000..a001dc9
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_list_row_hovercard.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:id="@+id/hovercard_panel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" >
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?attr/rowHoverCardTitleStyle" />
+ <TextView
+ android:id="@+id/description"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?attr/rowHoverCardDescriptionStyle" />
+</LinearLayout> \ No newline at end of file
diff --git a/current/support/v17/leanback/res/layout/lb_row_container.xml b/current/support/v17/leanback/res/layout/lb_row_container.xml
new file mode 100644
index 0000000..0f5dd5f
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_row_container.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
+<LinearLayout
+ android:id="@+id/lb_row_container_header_dock"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingLeft="?attr/browsePaddingLeft"
+ android:clipToPadding="false">
+</LinearLayout>
+</merge> \ No newline at end of file
diff --git a/current/support/v17/leanback/res/layout/lb_row_header.xml b/current/support/v17/leanback/res/layout/lb_row_header.xml
new file mode 100644
index 0000000..69fac46
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_row_header.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.RowHeaderView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/row_header"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="?rowHeaderStyle"
+ />
diff --git a/current/support/v17/leanback/res/layout/lb_rows_fragment.xml b/current/support/v17/leanback/res/layout/lb_rows_fragment.xml
new file mode 100644
index 0000000..c4ffdc3
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_rows_fragment.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.VerticalGridView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/container_list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ style="?attr/rowsVerticalGridStyle" />
+
diff --git a/current/support/v17/leanback/res/layout/lb_search_bar.xml b/current/support/v17/leanback/res/layout/lb_search_bar.xml
new file mode 100644
index 0000000..959d230
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_search_bar.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
+ <android.support.v17.leanback.widget.SpeechOrbView
+ android:id="@+id/lb_search_bar_speech_orb"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="@dimen/lb_search_bar_speech_orb_margin_left"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ >
+ <requestFocus/>
+ </android.support.v17.leanback.widget.SpeechOrbView>
+
+ <RelativeLayout
+ android:id="@+id/lb_search_bar_items"
+ android:layout_width="@dimen/lb_search_bar_items_width"
+ android:layout_height="@dimen/lb_search_bar_items_height"
+ android:layout_toRightOf="@+id/lb_search_bar_speech_orb"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="@dimen/lb_search_bar_items_margin_left"
+ android:orientation="horizontal"
+ android:background="@drawable/lb_in_app_search_bg"
+ >
+
+ <ImageView
+ android:id="@+id/lb_search_bar_badge"
+ android:layout_width="@dimen/lb_search_bar_icon_width"
+ android:layout_height="@dimen/lb_search_bar_icon_height"
+ android:layout_gravity="center_vertical|left"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="@dimen/lb_search_bar_icon_margin_left"
+ android:src="@null"
+ android:visibility="gone"
+ style="?attr/browseTitleIconStyle"/>
+
+ <android.support.v17.leanback.widget.SearchEditText
+ android:id="@+id/lb_search_text_editor"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|right"
+ android:layout_marginLeft="@dimen/lb_search_bar_edit_text_margin_left"
+ android:layout_centerVertical="true"
+ android:cursorVisible="true"
+ android:layout_toRightOf="@+id/lb_search_bar_badge"
+ android:editable="true"
+ android:background="@null"
+ android:fontFamily="sans-serif"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:imeOptions="normal|flagNoExtractUi|actionSearch"
+ android:inputType="text|textAutoComplete"
+ android:singleLine="true"
+ android:textColor="@color/lb_search_bar_text_color"
+ android:textColorHint="@color/lb_search_bar_hint_color"
+ android:textCursorDrawable="@null"
+ android:hint="@string/lb_search_bar_hint"
+ android:textSize="@dimen/lb_search_bar_text_size"/>
+ </RelativeLayout>
+</merge>
diff --git a/current/support/v17/leanback/res/layout/lb_search_fragment.xml b/current/support/v17/leanback/res/layout/lb_search_fragment.xml
new file mode 100644
index 0000000..57a46b4
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_search_fragment.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright (C) 2014 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:id="@+id/lb_search_frame"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="@dimen/lb_search_bar_padding_top"
+ android:clipToPadding="false"
+ android:clipChildren="false"
+ >
+ <FrameLayout
+ android:id="@+id/lb_results_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"/>
+ <android.support.v17.leanback.widget.SearchBar
+ android:id="@+id/lb_search_bar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:clipChildren="false"
+ />
+</FrameLayout>
diff --git a/current/support/v17/leanback/res/layout/lb_search_orb.xml b/current/support/v17/leanback/res/layout/lb_search_orb.xml
new file mode 100644
index 0000000..0eff71e
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_search_orb.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <View
+ android:id="@+id/search_orb"
+ android:layout_width="@dimen/lb_search_orb_size"
+ android:layout_height="@dimen/lb_search_orb_size"
+ android:background="@drawable/lb_search_orb" />
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:src="@drawable/lb_ic_in_app_search"
+ android:contentDescription="@string/orb_search_action" />
+
+</merge>
diff --git a/current/support/v17/leanback/res/layout/lb_shadow.xml b/current/support/v17/leanback/res/layout/lb_shadow.xml
new file mode 100644
index 0000000..b0aa0b1
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_shadow.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <View
+ android:id="@+id/lb_shadow_normal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/lb_card_shadow_normal" />
+ <View
+ android:id="@+id/lb_shadow_focused"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/lb_card_shadow_focused"
+ android:alpha="0" />
+
+</merge> \ No newline at end of file
diff --git a/current/support/v17/leanback/res/layout/lb_speech_orb.xml b/current/support/v17/leanback/res/layout/lb_speech_orb.xml
new file mode 100644
index 0000000..ff6129b
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_speech_orb.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <View
+ android:id="@+id/lb_speech_orb"
+ android:layout_width="@dimen/lb_search_bar_speech_orb_size"
+ android:layout_height="@dimen/lb_search_bar_speech_orb_size"
+ android:background="@drawable/lb_speech_orb" />
+
+ <ImageView
+ android:id="@+id/lb_speech_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:src="@drawable/lb_ic_search_mic_out"
+ android:contentDescription="@string/orb_search_action" />
+
+</merge>
diff --git a/current/support/v17/leanback/res/layout/lb_title_view.xml b/current/support/v17/leanback/res/layout/lb_title_view.xml
new file mode 100644
index 0000000..590a683
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_title_view.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.
+-->
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <ImageView
+ android:id="@+id/browse_badge"
+ android:layout_width="@dimen/lb_browse_title_text_width"
+ android:layout_height="@dimen/lb_browse_title_height"
+ android:layout_gravity="center_vertical|right"
+ android:src="@null"
+ android:visibility="gone"
+ style="?attr/browseTitleIconStyle"/>
+
+ <TextView
+ android:id="@+id/browse_title"
+ android:layout_width="@dimen/lb_browse_title_text_width"
+ android:layout_height="@dimen/lb_browse_title_height"
+ android:layout_gravity="center_vertical|right"
+ style="?attr/browseTitleTextStyle"/>
+
+ <android.support.v17.leanback.widget.SearchOrbView
+ android:id="@+id/browse_orb"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center_vertical|left"
+ android:visibility="invisible" />
+
+</merge>
diff --git a/current/support/v17/leanback/res/layout/lb_vertical_grid.xml b/current/support/v17/leanback/res/layout/lb_vertical_grid.xml
new file mode 100644
index 0000000..7154e48
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_vertical_grid.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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.VerticalGridView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/browse_grid"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="center"
+ style="?attr/itemsVerticalGridStyle" />
diff --git a/current/support/v17/leanback/res/layout/lb_vertical_grid_fragment.xml b/current/support/v17/leanback/res/layout/lb_vertical_grid_fragment.xml
new file mode 100644
index 0000000..4cd3a22
--- /dev/null
+++ b/current/support/v17/leanback/res/layout/lb_vertical_grid_fragment.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 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:id="@+id/browse_dummy"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <android.support.v17.leanback.app.BrowseFrameLayout
+ android:id="@+id/browse_frame"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <include layout="@layout/lb_browse_title" />
+
+ <FrameLayout
+ android:id="@+id/browse_grid_dock"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </android.support.v17.leanback.app.BrowseFrameLayout>
+</FrameLayout>