blob: 31c7cbf6ff1b2ac9058e2eb240f4e288962ce2f2 [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"
Aran Ink622a43e2019-05-23 15:33:49 -040021 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
Aaron Heuckroth01429372019-04-11 11:15:12 -040023 android:gravity="center"
Aaron Heuckroth166392f2019-01-17 16:50:59 -050024 android:layout_marginTop="@dimen/global_actions_grid_item_vertical_margin"
25 android:layout_marginBottom="@dimen/global_actions_grid_item_vertical_margin"
26 android:layout_marginLeft="@dimen/global_actions_grid_item_side_margin"
27 android:layout_marginRight="@dimen/global_actions_grid_item_side_margin"
Aaron Heuckroth4ea2fdb2019-02-14 16:28:35 -050028>
Aaron Heuckroth01429372019-04-11 11:15:12 -040029 <LinearLayout
30 android:layout_width="@dimen/global_actions_grid_item_width"
31 android:layout_height="@dimen/global_actions_grid_item_height"
32 android:gravity="top|center_horizontal"
33 android:orientation="vertical"
34 >
35 <ImageView
36 android:id="@*android:id/icon"
37 android:layout_width="@dimen/global_actions_grid_item_icon_width"
38 android:layout_height="@dimen/global_actions_grid_item_icon_height"
39 android:layout_marginTop="@dimen/global_actions_grid_item_icon_top_margin"
40 android:layout_marginBottom="@dimen/global_actions_grid_item_icon_bottom_margin"
41 android:layout_marginLeft="@dimen/global_actions_grid_item_icon_side_margin"
42 android:layout_marginRight="@dimen/global_actions_grid_item_icon_side_margin"
43 android:scaleType="centerInside"
Aran Ink622a43e2019-05-23 15:33:49 -040044 android:tint="@color/global_actions_text"
Aaron Heuckroth01429372019-04-11 11:15:12 -040045 />
Aaron Heuckroth166392f2019-01-17 16:50:59 -050046
Aaron Heuckroth01429372019-04-11 11:15:12 -040047 <TextView
48 android:id="@*android:id/message"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:ellipsize="marquee"
52 android:marqueeRepeatLimit="marquee_forever"
53 android:singleLine="true"
54 android:gravity="center"
55 android:textSize="12dp"
Aran Ink622a43e2019-05-23 15:33:49 -040056 android:textColor="@color/global_actions_text"
Aaron Heuckroth01429372019-04-11 11:15:12 -040057 android:textAppearance="?android:attr/textAppearanceSmall"
58 />
Aaron Heuckroth01429372019-04-11 11:15:12 -040059 </LinearLayout>
Aaron Heuckroth166392f2019-01-17 16:50:59 -050060</LinearLayout>