• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<com.android.documentsui.sidebar.RootItemView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:minHeight="52dp"
22    android:paddingStart="24dp"
23    android:gravity="center_vertical"
24    android:orientation="horizontal"
25    android:baselineAligned="false"
26    android:background="@drawable/root_item_background">
27
28    <FrameLayout
29        android:layout_width="wrap_content"
30        android:layout_height="@dimen/icon_size"
31        android:duplicateParentState="true">
32
33        <ImageView
34            android:id="@android:id/icon"
35            android:layout_width="@dimen/root_icon_size"
36            android:layout_height="match_parent"
37            android:scaleType="centerInside"
38            android:contentDescription="@null"
39            android:duplicateParentState="true" />
40
41    </FrameLayout>
42
43    <LinearLayout
44        android:layout_width="match_parent"
45        android:layout_height="wrap_content"
46        android:paddingStart="16dp"
47        android:paddingTop="8dp"
48        android:paddingBottom="8dp"
49        android:orientation="vertical"
50        android:layout_weight="1">
51
52        <TextView
53            android:id="@android:id/title"
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:singleLine="true"
57            android:ellipsize="end"
58            android:textAlignment="viewStart"
59            android:textAppearance="@style/DrawerMenuPrimary" />
60
61        <TextView
62            android:id="@android:id/summary"
63            android:layout_width="match_parent"
64            android:layout_height="wrap_content"
65            android:singleLine="true"
66            android:ellipsize="end"
67            android:textAlignment="viewStart"
68            android:textAppearance="@style/DrawerMenuSecondary" />
69
70    </LinearLayout>
71
72    <include layout="@layout/root_vertical_divider" />
73
74    <FrameLayout
75        android:id="@+id/action_icon_area"
76        android:layout_width="@dimen/button_touch_size"
77        android:layout_height="@dimen/button_touch_size"
78        android:paddingEnd="@dimen/grid_padding_horiz"
79        android:duplicateParentState="true"
80        android:visibility="gone">
81
82        <ImageView
83            android:id="@+id/action_icon"
84            android:focusable="false"
85            android:layout_width="@dimen/root_action_icon_size"
86            android:layout_height="match_parent"
87            android:layout_gravity="center"
88            android:scaleType="centerInside"/>
89
90    </FrameLayout>
91
92</com.android.documentsui.sidebar.RootItemView>
93