1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <!-- Layout for the settings list fragment --> 18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/guidedactions_root" 20 android:transitionName="guidedactions_root" 21 android:transitionGroup="false" 22 android:layout_width="0dp" 23 android:layout_weight="1" 24 android:layout_height="match_parent"> 25 26 <android.support.v17.leanback.widget.NonOverlappingView 27 android:id="@+id/guidedactions_list_background" 28 android:transitionName="guidedactions_list_background" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:visibility="gone" 32 android:background="?attr/guidedActionsBackgroundDark" /> 33 34 <!-- special relativelayout will assign guidedactions_sub_list's topMargin using percentage 35 defined by theme attribute guidedStepKeyline --> 36 <android.support.v17.leanback.widget.GuidedActionsRelativeLayout 37 android:id="@+id/guidedactions_content" 38 android:transitionName="guidedactions_content" 39 android:transitionGroup="false" 40 android:layout_width="match_parent" 41 android:layout_height="match_parent"> 42 <android.support.v17.leanback.widget.VerticalGridView 43 android:transitionGroup="true" 44 android:id="@+id/guidedactions_list" 45 style="?attr/guidedActionsListStyle" /> 46 <android.support.v17.leanback.widget.NonOverlappingView 47 android:id="@+id/guidedactions_sub_list_background" 48 android:transitionName="guidedactions_sub_list_background" 49 android:layout_width="match_parent" 50 android:layout_height="match_parent" 51 android:layout_alignTop="@+id/guidedactions_sub_list" 52 android:layout_alignBottom="@+id/guidedactions_sub_list" 53 android:layout_alignLeft="@+id/guidedactions_sub_list" 54 android:layout_alignRight="@+id/guidedactions_sub_list" 55 android:visibility="gone" 56 android:background="?attr/guidedActionsBackgroundDark" /> 57 <android.support.v17.leanback.widget.VerticalGridView 58 android:transitionGroup="true" 59 android:id="@+id/guidedactions_sub_list" 60 android:layout_width="match_parent" 61 android:layout_height="0dp" 62 android:layout_marginTop="-1dip" 63 style="?attr/guidedSubActionsListStyle" 64 android:visibility="invisible" /> 65 66 </android.support.v17.leanback.widget.GuidedActionsRelativeLayout> 67 68 </RelativeLayout> 69