Generate support version of leanback fragment tests
Include all leanback support version of fragment except PlaybackOverlayFragment missing a support version of PlaybackControlHelper. Change-Id: Icb5c99e8677630e8541b22b009051dd3908d4f35
This commit is contained in:
37
samples/SupportLeanbackDemos/res/layout/browse_support.xml
Normal file
37
samples/SupportLeanbackDemos/res/layout/browse_support.xml
Normal file
@@ -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>
|
||||
25
samples/SupportLeanbackDemos/res/layout/details_support.xml
Normal file
25
samples/SupportLeanbackDemos/res/layout/details_support.xml
Normal file
@@ -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"
|
||||
/>
|
||||
@@ -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"
|
||||
/>
|
||||
38
samples/SupportLeanbackDemos/res/layout/rows_support.xml
Normal file
38
samples/SupportLeanbackDemos/res/layout/rows_support.xml
Normal file
@@ -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>
|
||||
25
samples/SupportLeanbackDemos/res/layout/search_support.xml
Normal file
25
samples/SupportLeanbackDemos/res/layout/search_support.xml
Normal file
@@ -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"
|
||||
/>
|
||||
@@ -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"
|
||||
/>
|
||||
@@ -21,24 +21,36 @@
|
||||
<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="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>
|
||||
|
||||
Reference in New Issue
Block a user