blob: 999c7b8c34b32c1cfb0a66d4ea17c705bbaba901 [file] [log] [blame]
Aaron Heuckroth166392f2019-01-17 16:50:59 -05001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
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-->
16
17<!-- RelativeLayouts have an issue enforcing minimum heights, so just
18 work around this for now with LinearLayouts. -->
19<LinearLayout
20 xmlns:android="http://schemas.android.com/apk/res/android"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050021 android:layout_width="@dimen/global_actions_grid_item_width"
22 android:layout_height="@dimen/global_actions_grid_item_height"
23 android:gravity="top|center_horizontal"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050024 android:orientation="vertical"
25 android:layout_marginTop="@dimen/global_actions_grid_item_vertical_margin"
26 android:layout_marginBottom="@dimen/global_actions_grid_item_vertical_margin"
27 android:layout_marginLeft="@dimen/global_actions_grid_item_side_margin"
28 android:layout_marginRight="@dimen/global_actions_grid_item_side_margin"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050029>
Aaron Heuckroth166392f2019-01-17 16:50:59 -050030 <ImageView
31 android:id="@*android:id/icon"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050032 android:layout_width="@dimen/global_actions_grid_item_icon_width"
33 android:layout_height="@dimen/global_actions_grid_item_icon_height"
34 android:layout_marginTop="@dimen/global_actions_grid_item_icon_top_margin"
35 android:layout_marginBottom="@dimen/global_actions_grid_item_icon_bottom_margin"
36 android:layout_marginLeft="@dimen/global_actions_grid_item_icon_side_margin"
37 android:layout_marginRight="@dimen/global_actions_grid_item_icon_side_margin"
Aaron Heuckroth18bef2a2019-03-07 15:57:44 -050038 android:scaleType="centerInside"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050039 android:alpha="?android:attr/primaryContentAlpha"
40 />
41
42 <TextView
43 android:id="@*android:id/message"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050044 android:layout_width="match_parent"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050045 android:layout_height="wrap_content"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050046 android:gravity="center"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050047 android:textSize="12dp"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050048 android:textAppearance="?android:attr/textAppearanceSmall"
49 />
50
51 <TextView
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050052 android:visibility="gone"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050053 android:id="@*android:id/status"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050054 android:layout_width="match_parent"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050055 android:layout_height="wrap_content"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050056 android:gravity="center"
57 android:textColor="?android:attr/textColorTertiary"
58 android:textAppearance="?android:attr/textAppearanceSmall"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050059 />
60</LinearLayout>