diff options
Diffstat (limited to 'samples/SupportLeanbackDemos/res')
10 files changed, 241 insertions, 4 deletions
diff --git a/samples/SupportLeanbackDemos/res/layout/browse.xml b/samples/SupportLeanbackDemos/res/layout/browse.xml index 367337aca..4d46233ce 100644 --- a/samples/SupportLeanbackDemos/res/layout/browse.xml +++ b/samples/SupportLeanbackDemos/res/layout/browse.xml @@ -27,4 +27,9 @@ android:layout_height="match_parent" /> + <!-- container for hosting GuidedStepFragment background --> + <FrameLayout android:id="@+id/lb_guidedstep_background" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </FrameLayout> diff --git a/samples/SupportLeanbackDemos/res/layout/browse_support.xml b/samples/SupportLeanbackDemos/res/layout/browse_support.xml new file mode 100644 index 000000000..34cdffea3 --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/browse_support.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from browse.xml. DO NOT MODIFY. --> + +<!-- + 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/main_frame" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <fragment + android:name="com.example.android.leanback.BrowseSupportFragment" + android:id="@+id/main_browse_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + /> + + <!-- container for hosting GuidedStepFragment background --> + <FrameLayout android:id="@+id/lb_guidedstep_background" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</FrameLayout> diff --git a/samples/SupportLeanbackDemos/res/layout/details_support.xml b/samples/SupportLeanbackDemos/res/layout/details_support.xml new file mode 100644 index 000000000..103dc2594 --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/details_support.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from details.xml. DO NOT MODIFY. --> + +<!-- + 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. +--> + +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + android:name="com.example.android.leanback.NewDetailsSupportFragment" + android:id="@+id/details_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" +/> diff --git a/samples/SupportLeanbackDemos/res/layout/legacy_details_support.xml b/samples/SupportLeanbackDemos/res/layout/legacy_details_support.xml new file mode 100644 index 000000000..8146f9b1e --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/legacy_details_support.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from legacy_details.xml. DO NOT MODIFY. --> + +<!-- + 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. +--> + +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + android:name="com.example.android.leanback.DetailsSupportFragment" + android:id="@+id/details_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" +/> diff --git a/samples/SupportLeanbackDemos/res/layout/playback_controls_support.xml b/samples/SupportLeanbackDemos/res/layout/playback_controls_support.xml new file mode 100644 index 000000000..4eb293fbb --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/playback_controls_support.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from playback_controls.xml. DO NOT MODIFY. --> + +<!-- + 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="match_parent" + android:layout_height="match_parent" > + + <ImageView + android:id="@+id/media_content" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:src="@drawable/bg" /> + + <fragment + android:id="@+id/playback_controls_fragment" + android:name="com.example.android.leanback.PlaybackOverlaySupportFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</FrameLayout>
\ No newline at end of file diff --git a/samples/SupportLeanbackDemos/res/layout/rows_support.xml b/samples/SupportLeanbackDemos/res/layout/rows_support.xml new file mode 100644 index 000000000..266829729 --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/rows_support.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from rows.xml. DO NOT MODIFY. --> + +<!-- + 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.BrowseFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/rows_frame" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <fragment + android:name="com.example.android.leanback.RowsSupportFragment" + android:id="@+id/main_rows_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + /> + + <android.support.v17.leanback.widget.TitleView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</android.support.v17.leanback.widget.BrowseFrameLayout> diff --git a/samples/SupportLeanbackDemos/res/layout/search_support.xml b/samples/SupportLeanbackDemos/res/layout/search_support.xml new file mode 100644 index 000000000..1d113cb3b --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/search_support.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from search.xml. DO NOT MODIFY. --> + +<!-- + 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. +--> + +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + android:name="com.example.android.leanback.SearchSupportFragment" + android:id="@+id/search_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + />
\ No newline at end of file diff --git a/samples/SupportLeanbackDemos/res/layout/vertical_grid_support.xml b/samples/SupportLeanbackDemos/res/layout/vertical_grid_support.xml new file mode 100644 index 000000000..3975ecc4c --- /dev/null +++ b/samples/SupportLeanbackDemos/res/layout/vertical_grid_support.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is auto-generated from vertical_grid.xml. DO NOT MODIFY. --> + +<!-- + 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. +--> + +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + android:name="com.example.android.leanback.VerticalGridSupportFragment" + android:id="@+id/vertical_grid_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" +/> diff --git a/samples/SupportLeanbackDemos/res/values/strings.xml b/samples/SupportLeanbackDemos/res/values/strings.xml index 125b0df64..101fd2b08 100644 --- a/samples/SupportLeanbackDemos/res/values/strings.xml +++ b/samples/SupportLeanbackDemos/res/values/strings.xml @@ -21,22 +21,38 @@ <string name="main_title">Activities</string> <string name="browse">Browse</string> <string name="browse_description">BrowseFragment test</string> + <string name="browse_support">Browse(support version)</string> + <string name="browse_support_description">BrowseSupportFragment test</string> <string name="search">Search</string> <string name="search_description">SearchFragment test</string> + <string name="search_support">Search(support version)</string> + <string name="search_support_description">SearchSupportFragment test</string> <string name="details">Details</string> <string name="details_description">DetailsFragment test</string> + <string name="details_support">Details(support version)</string> + <string name="details_support_description">DetailsSupportFragment test</string> <string name="search_details">Search Details</string> <string name="search_details_description">Search style DetailsFragment test</string> + <string name="search_details_support">Search Details(support version)</string> + <string name="search_details_support_description">Search style DetailsSupportFragment test</string> <string name="playback">Playback</string> - <string name="playback_description">PlaybackOverlay test</string> + <string name="playback_description">PlaybackOverlayFragment test</string> + <string name="playback_support">Playback(support version)</string> + <string name="playback_support_description">PlaybackOverlaySupportFragment test</string> <string name="hgrid">Horizontal Grid</string> <string name="hgrid_description">HorizontalGridView test</string> <string name="vgrid">Vertical Grid</string> - <string name="vgrid_description">VerticalGridView test</string> + <string name="vgrid_description">VerticalGridFragment test</string> + <string name="vgrid_support">Vertical Grid(support version)</string> + <string name="vgrid_support_description">VerticalGridSupportFragment test</string> <string name="guidedstep">Guided Step</string> <string name="guidedstep_description">GuidedStepFragment test</string> + <string name="guidedstepsupport">Guided Step(support version)</string> + <string name="guidedstepsupport_description">GuidedStepSupportFragment test</string> <string name="browseerror">Browse Error</string> <string name="browseerror_description">BrowseError test</string> + <string name="browseerror_support">Browse ErrorFragment(support version)</string> + <string name="browseerror_support_description">Browse ErrorSupportFragment test</string> <string name="detail_presenter_options">Choose Presenter for Details</string> <string name="detail_presenter_options_description">Choose Presenter for Details</string> <string name="legacydetails_off">Use New DetailsPresenter</string> @@ -47,9 +63,12 @@ <string name="guidedstep_first_description">First step of guided sequence</string> <string name="guidedstep_first_breadcrumb">Guided Steps</string> <string name="guidedstep_second_title">Second</string> - <string name="guidedstep_second_description">Showcasing different action configurations</string> + <string name="guidedstep_second_description">Showcasing editable actions</string> <string name="guidedstep_second_breadcrumb">Guided Steps</string> <string name="guidedstep_third_title">Third</string> - <string name="guidedstep_third_description">Third step of guided sequence</string> + <string name="guidedstep_third_description">Showcasing different action configurations</string> <string name="guidedstep_third_breadcrumb">Guided Steps</string> + <string name="guidedstep_fourth_title">Fourth</string> + <string name="guidedstep_fourth_description">Fourth step of guided sequence</string> + <string name="guidedstep_fourth_breadcrumb">Guided Steps</string> </resources> diff --git a/samples/SupportLeanbackDemos/res/values/themes.xml b/samples/SupportLeanbackDemos/res/values/themes.xml index 696d82c4b..1fdf46bf5 100644 --- a/samples/SupportLeanbackDemos/res/values/themes.xml +++ b/samples/SupportLeanbackDemos/res/values/themes.xml @@ -23,6 +23,8 @@ </style> <style name="Theme.Example.Leanback.Details" parent="Theme.Leanback.Details"> </style> + <style name="Theme.Example.Leanback.VerticalGrid" parent="Theme.Leanback.VerticalGrid"> + </style> <style name="Theme.Example.Leanback.Rows" parent="Theme.Leanback"> <item name="browseTitleTextStyle">@style/Widget.Example.Leanback.Title.Text</item> <item name="rowsVerticalGridStyle">@style/Widget.Example.Leanback.Rows.VerticalGridView</item> |