Add RowsFragment example
Bug: 18622128 Change-Id: I12146a766fa383782f9917352c5959b6064835ee
This commit is contained in:
23
samples/SupportLeanbackDemos/res/values/styles.xml
Normal file
23
samples/SupportLeanbackDemos/res/values/styles.xml
Normal file
@@ -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.
|
||||
-->
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<style name="Widget.Example.Leanback.Title.Text" parent="Widget.Leanback.Title.Text" >
|
||||
</style>
|
||||
<style name="Widget.Example.Leanback.Rows.VerticalGridView" parent="Widget.Leanback.Rows.VerticalGridView">
|
||||
<item name="android:paddingTop">96dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,17 +1,28 @@
|
||||
<?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.
|
||||
-->
|
||||
<resources>
|
||||
<style name="Theme.Example.Leanback" parent="Theme.Leanback">
|
||||
<!-- uncomment to override default transition settings:
|
||||
<item name="android:windowEnterTransition">@android:transition/fade</item>
|
||||
<item name="android:windowExitTransition">@android:transition/fade</item>
|
||||
<item name="android:windowSharedElementExitTransition">@android:transition/move</item>
|
||||
<item name="android:windowSharedElementEnterTransition">@android:transition/move</item>
|
||||
<item name="android:windowAllowExitTransitionOverlap">true</item>
|
||||
<item name="android:windowAllowEnterTransitionOverlap">false</item>
|
||||
<item name="android:windowContentTransitions">true</item>
|
||||
-->
|
||||
</style>
|
||||
<style name="Theme.Example.Leanback.Browse" parent="Theme.Leanback.Browse">
|
||||
</style>
|
||||
<style name="Theme.Example.Leanback.Details" parent="Theme.Leanback.Details">
|
||||
</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>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user