• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            style="@style/TextAppearance.EntityHeaderSummary"
59            android:visibility="gone"
60            android:layout_width="match_parent"
61            android:layout_height="wrap_content" />
62
63        <TextView
64            android:id="@+id/entity_header_summary"
65            style="@style/TextAppearance.EntityHeaderSummary"
66            android:layout_width="match_parent"
67            android:layout_height="wrap_content" />
68
69        <TextView
70            android:id="@+id/entity_header_second_summary"
71            style="@style/TextAppearance.EntityHeaderSummary"
72            android:layout_width="match_parent"
73            android:layout_height="wrap_content" />
74
75    </LinearLayout>
76
77    <LinearLayout
78        android:id="@+id/entity_header_links"
79        android:layout_width="wrap_content"
80        android:layout_height="match_parent"
81        android:orientation="vertical">
82
83        <ImageButton
84            android:id="@android:id/button1"
85            style="?android:attr/actionOverflowButtonStyle"
86            android:layout_width="wrap_content"
87            android:layout_weight="1"
88            android:layout_height="0dp"
89            android:minWidth="@dimen/min_tap_target_size"
90            android:src="@null"
91            android:tint="?android:attr/colorAccent" />
92
93        <ImageButton
94            android:id="@android:id/button2"
95            style="?android:attr/actionOverflowButtonStyle"
96            android:layout_width="wrap_content"
97            android:layout_weight="1"
98            android:layout_height="0dp"
99            android:minWidth="@dimen/min_tap_target_size"
100            android:src="@null"
101            android:tint="?android:attr/colorAccent" />
102
103    </LinearLayout>
104
105</LinearLayout>
106