Aaron Heuckroth | 166392f | 2019-01-17 16:50:59 -0500 | [diff] [blame] | 1 | <?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 Ink | 622a43e | 2019-05-23 15:33:49 -0400 | [diff] [blame] | 21 | android:layout_width="wrap_content" |
| 22 | android:layout_height="wrap_content" |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 23 | android:gravity="center" |
Aaron Heuckroth | 166392f | 2019-01-17 16:50:59 -0500 | [diff] [blame] | 24 | 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 Heuckroth | 4ea2fdb | 2019-02-14 16:28:35 -0500 | [diff] [blame] | 28 | > |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 29 | <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 Ink | 622a43e | 2019-05-23 15:33:49 -0400 | [diff] [blame] | 44 | android:tint="@color/global_actions_text" |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 45 | /> |
Aaron Heuckroth | 166392f | 2019-01-17 16:50:59 -0500 | [diff] [blame] | 46 | |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 47 | <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 Ink | 622a43e | 2019-05-23 15:33:49 -0400 | [diff] [blame] | 56 | android:textColor="@color/global_actions_text" |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 57 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 58 | /> |
Aaron Heuckroth | 0142937 | 2019-04-11 11:15:12 -0400 | [diff] [blame] | 59 | </LinearLayout> |
Aaron Heuckroth | 166392f | 2019-01-17 16:50:59 -0500 | [diff] [blame] | 60 | </LinearLayout> |