• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
18<!-- layout_marginStart is set for the case of full mode. (i.e. side panel is hidden)
19     This FrameLayout is used to show the background of the side panel when the VerticalGridView
20     becomes invisible which happens when the side panel is hidden.
21     translationX is given to set them for initial values of enter animation. -->
22<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
23             xmlns:lb="http://schemas.android.com/apk/res-auto"
24    android:id="@+id/program_guide_side_panel"
25    android:layout_width="@dimen/program_guide_side_panel_width"
26    android:layout_height="match_parent"
27    android:layout_marginStart="@dimen/program_guide_side_panel_margin_start"
28    android:paddingStart="@dimen/program_guide_side_panel_padding_start"
29    android:paddingEnd="@dimen/program_guide_side_panel_padding_end"
30    android:clipToPadding="false"
31    android:translationX="@dimen/program_guide_side_panel_exit_x"
32    android:elevation="@dimen/program_guide_side_panel_elevation"
33    android:background="@color/program_guide_side_panel_background">
34
35    <android.support.v17.leanback.widget.SearchOrbView
36        android:id="@+id/program_guide_side_panel_search_orb"
37        android:layout_width="wrap_content"
38        android:layout_height="wrap_content"
39        android:layout_gravity="top|start"
40        android:layout_marginTop="@dimen/lb_browse_padding_top"
41        android:nextFocusDown="@+id/program_guide_side_panel_grid_view"
42        android:visibility="gone" />
43
44    <android.support.v17.leanback.widget.VerticalGridView
45        android:id="@id/program_guide_side_panel_grid_view"
46        android:layout_width="@dimen/program_guide_side_panel_item_width"
47        android:layout_height="match_parent"
48        android:layout_gravity="top|start"
49        android:alpha="0.0"
50        android:focusable="true"
51        android:focusableInTouchMode="true"
52        android:transitionGroup="true"
53        lb:focusOutFront="true" />
54
55</FrameLayout>
56