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 frame of a 2 pane actions fragment. --> 18<android.support.v17.leanback.app.GuidedStepRootLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/guidedstep_root" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical" 24 android:gravity="bottom" 25 android:weightSum="2"> 26 27 <FrameLayout 28 android:id="@+id/guidedstep_background_view_root" 29 android:layout_width="match_parent" 30 android:layout_height="0dp" 31 android:layout_weight="?attr/guidedStepHeightWeight"> 32 33 <LinearLayout 34 android:id="@+id/content_frame" 35 android:orientation="horizontal" 36 android:layout_width="match_parent" 37 android:layout_height="match_parent"> 38 39 <android.support.v17.leanback.widget.NonOverlappingFrameLayout 40 android:id="@+id/content_fragment" 41 android:layout_width="0dp" 42 android:layout_weight="1" 43 android:layout_height="match_parent" 44 android:layout_alignParentStart="true" /> 45 46 <android.support.v17.leanback.widget.NonOverlappingFrameLayout 47 android:id="@+id/action_fragment_root" 48 android:transitionName="action_fragment_root" 49 android:transitionGroup="false" 50 android:orientation="horizontal" 51 android:clipToPadding="false" 52 android:clipChildren="false" 53 android:paddingStart="@dimen/lb_guidedactions_section_shadow_width" 54 android:layout_width="0dp" 55 android:layout_weight="?attr/guidedActionContentWidthWeight" 56 android:layout_height="match_parent" 57 android:layout_alignParentEnd="true"> 58 59 <android.support.v17.leanback.widget.NonOverlappingView 60 android:id="@+id/action_fragment_background" 61 android:transitionName="action_fragment_background" 62 android:orientation="horizontal" 63 android:outlineProvider="paddedBounds" 64 android:layout_width="match_parent" 65 android:layout_height="match_parent" 66 android:background="?attr/guidedActionsBackground" 67 android:elevation="?attr/guidedActionsElevation" /> 68 69 <android.support.v17.leanback.widget.NonOverlappingLinearLayout 70 android:id="@+id/action_fragment" 71 android:focusable="true" 72 android:descendantFocusability="afterDescendants" 73 android:transitionName="action_fragment" 74 android:transitionGroup="false" 75 android:orientation="horizontal" 76 android:layout_width="match_parent" 77 android:layout_height="match_parent" 78 android:elevation="?attr/guidedActionsElevation" /> 79 </android.support.v17.leanback.widget.NonOverlappingFrameLayout> 80 81 </LinearLayout> 82 83 </FrameLayout> 84 85</android.support.v17.leanback.app.GuidedStepRootLayout> 86