| <!-- |
| 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. |
| --> |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| 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:minWidth="@dimen/volume_dialog_panel_width" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|right" |
| android:background="@android:color/transparent" |
| android:layout_margin="@dimen/volume_dialog_base_margin" |
| android:orientation="vertical" |
| android:clipChildren="false" > |
| |
| <FrameLayout |
| android:id="@+id/ringer" |
| android:layout_width="@dimen/volume_dialog_ringer_size" |
| android:layout_height="@dimen/volume_dialog_ringer_size" |
| android:layout_marginBottom="@dimen/volume_dialog_spacer" |
| android:elevation="@dimen/volume_panel_elevation" |
| android:layout_gravity="right" |
| android:background="@drawable/rounded_bg_full"> |
| <com.android.keyguard.AlphaOptimizedImageButton |
| android:id="@+id/ringer_icon" |
| style="@style/VolumeButtons" |
| android:background="?android:selectableItemBackgroundBorderless" |
| android:layout_width="@dimen/volume_dialog_tap_target_size" |
| android:layout_height="@dimen/volume_dialog_tap_target_size" |
| android:tint="@color/accent_tint_color_selector" |
| android:layout_gravity="center" |
| android:soundEffectsEnabled="false" /> |
| |
| <include layout="@layout/volume_dnd_icon"/> |
| </FrameLayout> |
| |
| <LinearLayout |
| android:id="@+id/main" |
| android:layout_width="wrap_content" |
| android:minWidth="@dimen/volume_dialog_panel_width" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:background="@drawable/rounded_bg_full" |
| android:elevation="@dimen/volume_panel_elevation" > |
| <LinearLayout |
| android:id="@+id/volume_dialog_rows" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:minWidth="@dimen/volume_dialog_panel_width" |
| android:gravity="center" |
| android:orientation="horizontal" > |
| <!-- volume rows added and removed here! :-) --> |
| </LinearLayout> |
| <FrameLayout |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:background="@drawable/rounded_bg_bottom_background"> |
| <com.android.keyguard.AlphaOptimizedImageButton |
| android:id="@+id/settings" |
| android:src="@drawable/ic_settings" |
| android:layout_width="@dimen/volume_dialog_tap_target_size" |
| android:layout_height="@dimen/volume_dialog_tap_target_size" |
| android:layout_gravity="center" |
| android:background="?android:selectableItemBackgroundBorderless" |
| android:tint="#8A000000" |
| android:soundEffectsEnabled="false" /> |
| </FrameLayout> |
| </LinearLayout> |
| |
| </LinearLayout> |
| </FrameLayout> |