Update to platforms;android-28.
[android_tools.git] / sdk / platforms / android-28 / data / res / layout / resolve_grid_item.xml
blob71c153fa6021d1edd8c45809de0715df2c376be0
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 ** Copyright 2006, The Android Open Source Project
5 **
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
9 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20               android:orientation="vertical"
21               android:layout_width="76dp"
22               android:layout_height="wrap_content"
23               android:minHeight="100dp"
24               android:gravity="center"
25               android:paddingTop="8dp"
26               android:paddingBottom="8dp"
27               android:focusable="true"
28               android:background="?attr/selectableItemBackgroundBorderless">
30     <FrameLayout android:layout_width="wrap_content"
31                  android:layout_height="wrap_content">
32         <ImageView android:id="@+id/icon"
33                    android:layout_width="48dp"
34                    android:layout_height="48dp"
35                    android:layout_marginLeft="3dp"
36                    android:layout_marginRight="3dp"
37                    android:layout_marginBottom="3dp"
38                    android:scaleType="fitCenter" />
39         <ImageView android:id="@+id/target_badge"
40                    android:layout_width="16dp"
41                    android:layout_height="16dp"
42                    android:layout_gravity="end|bottom"
43                    android:visibility="gone"
44                    android:scaleType="fitCenter" />
45     </FrameLayout>
47     <!-- Activity name -->
48     <TextView android:id="@android:id/text1"
49               android:layout_width="wrap_content"
50               android:layout_height="wrap_content"
51               android:layout_marginTop="4dp"
52               android:layout_marginLeft="4dp"
53               android:layout_marginRight="4dp"
54               android:textAppearance="?attr/textAppearanceSmall"
55               android:textColor="?attr/textColorPrimary"
56               android:textSize="12sp"
57               android:fontFamily="sans-serif-condensed"
58               android:gravity="top|center_horizontal"
59               android:minLines="2"
60               android:maxLines="2"
61               android:ellipsize="marquee" />
62     <!-- Extended activity info to distinguish between duplicate activity names -->
63     <TextView android:id="@android:id/text2"
64               android:textAppearance="?android:attr/textAppearanceSmall"
65               android:textSize="12sp"
66               android:layout_width="wrap_content"
67               android:layout_height="wrap_content"
68               android:layout_marginLeft="4dp"
69               android:layout_marginRight="4dp"
70               android:minLines="2"
71               android:maxLines="2"
72               android:gravity="top|center_horizontal"
73               android:ellipsize="marquee"
74               android:visibility="gone" />
75 </LinearLayout>