1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2017 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 <!-- Entity header --> 19 <LinearLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/entity_header" 22 style="@style/EntityHeader" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:paddingStart="@dimen/preference_no_icon_padding_start" 26 android:paddingTop="24dp" 27 android:paddingBottom="32dp" 28 android:orientation="horizontal"> 29 30 <LinearLayout 31 android:id="@+id/entity_header_content" 32 android:layout_width="0dp" 33 android:layout_height="wrap_content" 34 android:layout_weight="1" 35 android:background="?android:attr/selectableItemBackground" 36 android:orientation="vertical"> 37 38 <ImageView 39 android:id="@+id/entity_header_icon" 40 android:layout_width="48dp" 41 android:layout_height="48dp" 42 android:layout_marginBottom="16dp" 43 android:scaleType="fitXY" 44 android:antialias="true" /> 45 46 <TextView 47 android:id="@+id/entity_header_title" 48 style="@style/TextAppearance.EntityHeaderTitle" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:singleLine="false" 52 android:ellipsize="marquee" 53 android:gravity="start" 54 android:textDirection="locale" /> 55 56 <TextView 57 android:id="@+id/install_type" 58 android:visibility="gone" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:gravity="start" 62 android:singleLine="true" 63 android:ellipsize="marquee" 64 android:textAppearance="@android:style/TextAppearance.Material.Body1" 65 android:textColor="?android:attr/textColorSecondary" /> 66 67 <TextView 68 android:id="@+id/entity_header_summary" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:gravity="start" 72 android:singleLine="true" 73 android:ellipsize="marquee" 74 android:textAlignment="viewStart" 75 android:textAppearance="@android:style/TextAppearance.Material.Body1" 76 android:textColor="?android:attr/textColorSecondary" /> 77 78 </LinearLayout> 79 80 <LinearLayout 81 android:id="@+id/entity_header_links" 82 android:layout_width="wrap_content" 83 android:layout_height="match_parent" 84 android:orientation="vertical"> 85 86 <ImageButton 87 android:id="@android:id/button1" 88 style="?android:attr/actionOverflowButtonStyle" 89 android:layout_width="wrap_content" 90 android:layout_weight="1" 91 android:layout_height="0dp" 92 android:minWidth="@dimen/min_tap_target_size" 93 android:src="@null" 94 android:tint="?android:attr/colorAccent" /> 95 96 <ImageButton 97 android:id="@android:id/button2" 98 style="?android:attr/actionOverflowButtonStyle" 99 android:layout_width="wrap_content" 100 android:layout_weight="1" 101 android:layout_height="0dp" 102 android:minWidth="@dimen/min_tap_target_size" 103 android:src="@null" 104 android:tint="?android:attr/colorAccent" /> 105 106 </LinearLayout> 107 108 </LinearLayout> 109