| <!-- |
| 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.VolumeUiLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@android:color/transparent" |
| android:theme="@style/qs_theme" |
| android:clipChildren="false" > |
| <!-- right-aligned to be physically near volume button --> |
| <LinearLayout |
| android:id="@+id/volume_dialog" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|right" |
| android:minWidth="@dimen/volume_dialog_panel_width" |
| android:background="@android:color/transparent" |
| android:layout_margin="@dimen/volume_dialog_base_margin" |
| android:translationZ="8dp" |
| android:orientation="vertical" |
| android:clipChildren="false" > |
| |
| <LinearLayout |
| android:id="@+id/volume_dialog_rows" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:paddingTop="10dp" |
| android:paddingBottom="10dp" |
| android:background="@drawable/rounded_bg_full" |
| android:translationZ="8dp" |
| android:orientation="horizontal" > |
| <!-- volume rows added and removed here! :-) --> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/footer" |
| android:layout_width="@dimen/volume_dialog_panel_width" |
| android:layout_height="@dimen/volume_dialog_panel_width" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:layout_marginTop="6dp" |
| android:layout_marginBottom="6dp" |
| android:layout_below="@id/volume_dialog_rows" |
| android:background="@drawable/rounded_bg_full" |
| android:gravity="center" |
| android:layout_gravity="end" |
| android:translationZ="8dp" |
| android:clickable="true" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/ringer_title" |
| android:text="@string/ring_toggle_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:layout_centerVertical="true" |
| android:textColor="?android:attr/colorControlNormal" |
| android:textAppearance="@style/TextAppearance.Volume.Header" /> |
| |
| <com.android.keyguard.AlphaOptimizedImageButton |
| android:id="@+id/ringer_icon" |
| style="@style/VolumeButtons" |
| android:background="?android:selectableItemBackgroundBorderless" |
| android:layout_width="@dimen/volume_dialog_panel_width" |
| android:layout_height="@dimen/volume_button_size" |
| android:tint="?android:attr/colorAccent" |
| android:soundEffectsEnabled="false" /> |
| |
| <TextView |
| android:id="@+id/ringer_status" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="?android:attr/colorControlNormal" |
| android:textAppearance="@style/TextAppearance.Volume.Header.Secondary" /> |
| |
| </LinearLayout> |
| </LinearLayout> |
| </com.android.systemui.volume.VolumeUiLayout> |