| <!-- |
| 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="12dp" |
| android:layout_marginTop="8dp" |
| android:background="@color/qs_tile_divider" /> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="horizontal" > |
| |
| <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" /> |
| |
| <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:textDirection="locale" |
| 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:layout_marginTop="1dp" |
| android:textDirection="locale" |
| android:textAppearance="@style/TextAppearance.Volume.ZenDetail" /> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/volume_zen_end_now" |
| style="@style/QSBorderlessButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="end" |
| android:layout_marginEnd="8dp" |
| android:clickable="true" |
| android:focusable="true" |
| android:paddingStart="15dp" |
| android:paddingEnd="15dp" |
| android:text="@string/volume_zen_end_now" |
| android:textColor="?android:attr/colorAccent" |
| android:textAppearance="@style/TextAppearance.QS.DetailButton" /> |
| |
| </com.android.systemui.volume.ZenFooter> |