Bill Lin | 32ed3d6 | 2018-10-02 18:10:09 +0800 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2018 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 | <LinearLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/title_template" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:orientation="horizontal" |
| 22 | android:gravity="center_vertical|start" |
| 23 | android:paddingStart="?android:attr/dialogPreferredPadding" |
| 24 | android:paddingEnd="?android:attr/dialogPreferredPadding" |
| 25 | android:paddingTop="@dimen/alarm_dialog_panel_padding"> |
| 26 | |
| 27 | <ImageView |
| 28 | android:id="@android:id/icon" |
| 29 | android:layout_width="32dip" |
| 30 | android:layout_height="32dip" |
| 31 | android:layout_marginEnd="8dip" |
| 32 | android:scaleType="fitCenter" |
| 33 | android:tint="?android:attr/colorError" |
| 34 | android:src="?android:attr/alertDialogIcon"/> |
| 35 | |
| 36 | <com.android.internal.widget.DialogTitle |
| 37 | android:id="@+id/alertTitle" |
| 38 | android:singleLine="true" |
| 39 | android:ellipsize="end" |
| 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="wrap_content" |
| 42 | android:textAlignment="viewStart" |
| 43 | android:text="@string/high_temp_alarm_title" |
| 44 | android:importantForAccessibility="noHideDescendants" |
| 45 | style="?android:attr/windowTitleStyle"/> |
| 46 | </LinearLayout> |