Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / resolve_grid_item.xml
blob305c8b0a0c0f892fead15e8a5f94c9607437e6df
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="0dp"
22               android:layout_height="wrap_content"
23               android:layout_weight="1"
24               android:minWidth="80dp"
25               android:gravity="center"
26               android:paddingTop="8dp"
27               android:paddingBottom="8dp"
28               android:focusable="true"
29               android:background="?attr/selectableItemBackgroundBorderless">
31     <FrameLayout android:layout_width="wrap_content"
32                  android:layout_height="wrap_content">
33         <ImageView android:id="@+id/icon"
34                    android:layout_width="48dp"
35                    android:layout_height="48dp"
36                    android:layout_marginLeft="3dp"
37                    android:layout_marginRight="3dp"
38                    android:layout_marginBottom="3dp"
39                    android:scaleType="fitCenter" />
40         <ImageView android:id="@+id/target_badge"
41                    android:layout_width="16dp"
42                    android:layout_height="16dp"
43                    android:layout_gravity="end|bottom"
44                    android:visibility="gone"
45                    android:scaleType="fitCenter" />
46     </FrameLayout>
48     <!-- Activity name -->
49     <TextView android:id="@android:id/text1"
50               android:layout_width="wrap_content"
51               android:layout_height="wrap_content"
52               android:layout_marginTop="8dp"
53               android:layout_marginLeft="4dp"
54               android:layout_marginRight="4dp"
55               android:textAppearance="?attr/textAppearanceSmall"
56               android:textColor="?attr/textColorPrimary"
57               android:textSize="12sp"
58               android:fontFamily="sans-serif-condensed"
59               android:gravity="top|center_horizontal"
60               android:minLines="2"
61               android:maxLines="2"
62               android:ellipsize="marquee" />
63     <!-- Extended activity info to distinguish between duplicate activity names -->
64     <TextView android:id="@android:id/text2"
65               android:textAppearance="?android:attr/textAppearanceSmall"
66               android:textSize="12sp"
67               android:layout_width="wrap_content"
68               android:layout_height="wrap_content"
69               android:layout_marginLeft="4dp"
70               android:layout_marginRight="4dp"
71               android:minLines="2"
72               android:maxLines="2"
73               android:gravity="top|center_horizontal"
74               android:ellipsize="marquee"
75               android:visibility="gone" />
76 </LinearLayout>