1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2016 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 <LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical"> 23 24 <!-- App snippet with buttons --> 25 <RelativeLayout 26 android:id="@+id/app_snippet" 27 style="@style/EntityHeader" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 31 android:paddingEnd="0dp" 32 android:paddingTop="24dp" 33 android:paddingBottom="24dp"> 34 <ImageView 35 android:id="@+id/app_detail_icon" 36 android:layout_width="56dp" 37 android:layout_height="56dp" 38 android:scaleType="fitXY" 39 android:layout_gravity="center_horizontal" 40 android:antialias="true"/> 41 42 <LinearLayout 43 android:id="@+id/app_detail_links" 44 android:layout_width="wrap_content" 45 android:layout_height="match_parent" 46 android:layout_alignParentEnd="true" 47 android:orientation="vertical"> 48 49 <ImageButton 50 android:id="@+id/right_button" 51 style="?android:attr/actionOverflowButtonStyle" 52 android:layout_width="wrap_content" 53 android:layout_weight="1" 54 android:layout_height="0dp" 55 android:minWidth="@dimen/min_tap_target_size" 56 android:src="@drawable/ic_settings_24dp" 57 android:tint="?android:attr/colorAccent"/> 58 59 <ImageButton 60 android:id="@+id/left_button" 61 style="?android:attr/actionOverflowButtonStyle" 62 android:layout_width="wrap_content" 63 android:layout_weight="1" 64 android:layout_height="0dp" 65 android:minWidth="@dimen/min_tap_target_size" 66 android:src="@null" 67 android:tint="?android:attr/colorAccent"/> 68 69 </LinearLayout> 70 71 <LinearLayout 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:layout_toEndOf="@id/app_detail_icon" 75 android:layout_toStartOf="@id/app_detail_links" 76 android:paddingStart="24dp" 77 android:paddingEnd="24dp" 78 android:orientation="vertical"> 79 80 <TextView 81 android:id="@+id/app_detail_title" 82 style="@style/TextAppearance.EntityHeaderTitle" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:singleLine="false" 86 android:ellipsize="marquee" 87 android:gravity="start" 88 android:textDirection="locale" 89 android:paddingTop="8dp"/> 90 91 <TextView 92 android:id="@+id/install_type" 93 android:visibility="gone" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:gravity="start" 97 android:singleLine="true" 98 android:ellipsize="marquee" 99 android:textAppearance="@android:style/TextAppearance.Material.Body1" 100 android:textColor="?android:attr/textColorSecondary"/> 101 102 <TextView 103 android:id="@+id/app_detail_summary" 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:gravity="start" 107 android:singleLine="true" 108 android:ellipsize="marquee" 109 android:textAppearance="@android:style/TextAppearance.Material.Body1" 110 android:textColor="?android:attr/textColorSecondary"/> 111 112 </LinearLayout> 113 114 </RelativeLayout> 115 116 </LinearLayout>