| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2015 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. |
| --> |
| |
| <!-- layout_marginStart is set for the case of full mode. (i.e. side panel is hidden) |
| This FrameLayout is used to show the background of the side panel when the VerticalGridView |
| becomes invisible which happens when the side panel is hidden. |
| translationX is given to set them for initial values of enter animation. --> |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:lb="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/program_guide_side_panel" |
| android:layout_width="@dimen/program_guide_side_panel_width" |
| android:layout_height="match_parent" |
| android:layout_marginStart="@dimen/program_guide_side_panel_margin_start" |
| android:paddingStart="@dimen/program_guide_side_panel_padding_start" |
| android:paddingEnd="@dimen/program_guide_side_panel_padding_end" |
| android:clipToPadding="false" |
| android:translationX="@dimen/program_guide_side_panel_exit_x" |
| android:elevation="@dimen/program_guide_side_panel_elevation" |
| android:background="@color/program_guide_side_panel_background"> |
| |
| <android.support.v17.leanback.widget.SearchOrbView |
| android:id="@+id/program_guide_side_panel_search_orb" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="top|start" |
| android:layout_marginTop="@dimen/lb_browse_padding_top" |
| android:nextFocusDown="@+id/program_guide_side_panel_grid_view" |
| android:visibility="gone" /> |
| |
| <android.support.v17.leanback.widget.VerticalGridView |
| android:id="@id/program_guide_side_panel_grid_view" |
| android:layout_width="@dimen/program_guide_side_panel_item_width" |
| android:layout_height="match_parent" |
| android:layout_gravity="top|start" |
| android:alpha="0.0" |
| android:focusable="true" |
| android:focusableInTouchMode="true" |
| android:transitionGroup="true" |
| lb:focusOutFront="true" /> |
| |
| </FrameLayout> |