| <!-- |
| Copyright (C) 2015 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <com.android.systemui.volume.ZenFooter xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:id="@+id/volume_zen_footer" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" > <!-- extends LinearLayout --> |
| |
| <View |
| android:id="@+id/zen_embedded_divider" |
| android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:layout_marginBottom="8dp" |
| android:layout_marginTop="8dp" |
| android:background="#4dffffff" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" |
| android:paddingEnd="8dp" |
| android:paddingStart="8dp" > |
| |
| <ImageView |
| android:id="@+id/volume_zen_icon" |
| android:layout_width="@dimen/volume_button_size" |
| android:layout_height="@dimen/volume_button_size" |
| android:layout_marginEnd="7dp" |
| android:scaleType="center" |
| android:src="@drawable/ic_dnd" /> |
| |
| <LinearLayout |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/volume_zen_summary_line_1" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Volume.ZenSummary" /> |
| |
| <TextView |
| android:id="@+id/volume_zen_summary_line_2" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Volume.ZenDetail" /> |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/volume_zen_end_now" |
| style="@style/QSBorderlessButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:clickable="true" |
| android:focusable="true" |
| android:minWidth="91dp" |
| android:text="@string/volume_zen_end_now" |
| android:textAppearance="@style/TextAppearance.QS.DetailButton" /> |
| </LinearLayout> |
| |
| </com.android.systemui.volume.ZenFooter> |