Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / global_actions_item.xml
blobe5a9854d50c763a4f352899ec6be137bb16c3261
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 The Android Open Source Project
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
8           http://www.apache.org/licenses/LICENSE-2.0
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
17 <!-- RelativeLayouts have an issue enforcing minimum heights, so just
18      work around this for now with LinearLayouts. -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     android:layout_width="match_parent"
21     android:layout_height="wrap_content"
22     android:minHeight="?android:attr/listPreferredItemHeight"
23     android:orientation="horizontal"
24     android:paddingStart="8dip"
25     android:paddingEnd="16dip"
26     android:paddingTop="6dip"
27     android:paddingBottom="6dip"
28     >
29     <ImageView android:id="@+id/icon"
30         android:layout_width="56dp"
31         android:layout_height="56dp"
32         android:layout_gravity="center"
33         android:layout_marginEnd="8dip"
34         android:scaleType="center"/>
36     <LinearLayout
37         android:orientation="vertical"
38         android:layout_width="match_parent"
39         android:layout_height="wrap_content"
40         android:layout_gravity="center_vertical"
41         android:layout_marginEnd="8dip"
42         >
43         <TextView android:id="@+id/message"
44             android:layout_width="wrap_content"
45             android:layout_height="wrap_content"
46             android:layout_gravity="top|start"
47             android:gravity="center_vertical|start"
48             android:textAppearance="?android:attr/textAppearanceLarge"
49             />
50         <TextView android:id="@+id/status"
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:layout_gravity="bottom|start"
54             android:minHeight="26dp"
55             android:textAppearance="?android:attr/textAppearanceSmall"
56             />
57     </LinearLayout>
58 </LinearLayout>