| <!-- |
| 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" |
| xmlns:sysui="http://schemas.android.com/apk/res-auto" |
| xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" |
| android:id="@+id/volume_dialog_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="right" |
| android:layout_gravity="right" |
| android:clipToPadding="false" |
| android:theme="@style/volume_dialog_theme"> |
| |
| <com.android.systemui.animation.view.LaunchableLinearLayout |
| android:id="@+id/volume_dialog" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="right" |
| android:layout_gravity="right" |
| android:paddingLeft="@dimen/volume_dialog_panel_transparent_padding_horizontal" |
| android:paddingRight="@dimen/volume_dialog_panel_transparent_padding_horizontal" |
| android:orientation="vertical" |
| android:clipToPadding="false" |
| android:clipChildren="false"> |
| |
| <LinearLayout |
| android:id="@+id/volume_dialog_top_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:clipChildren="false" |
| android:orientation="vertical" |
| android:gravity="right"> |
| |
| <include layout="@layout/volume_ringer_drawer" /> |
| |
| <FrameLayout |
| android:visibility="gone" |
| 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:gravity="right" |
| android:layout_gravity="right" |
| android:translationZ="@dimen/volume_dialog_elevation" |
| android:clipToPadding="false" |
| android:background="@drawable/rounded_bg_full"> |
| <com.android.keyguard.AlphaOptimizedImageButton |
| android:id="@+id/ringer_icon" |
| style="@style/VolumeButtons" |
| android:background="@drawable/rounded_ripple" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:scaleType="fitCenter" |
| android:padding="@dimen/volume_dialog_ringer_icon_padding" |
| android:tint="?android:attr/textColorPrimary" |
| android:layout_gravity="center" |
| android:soundEffectsEnabled="false" /> |
| </FrameLayout> |
| |
| <LinearLayout |
| android:id="@+id/volume_dialog_rows_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="right" |
| android:layout_gravity="right" |
| android:orientation="vertical" |
| android:clipChildren="false" |
| android:clipToPadding="false" > |
| <LinearLayout |
| android:id="@+id/volume_dialog_rows" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="center" |
| android:orientation="horizontal"> |
| <!-- volume rows added and removed here! :-) --> |
| </LinearLayout> |
| <FrameLayout |
| android:id="@+id/settings_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:background="@drawable/volume_background" |
| android:paddingLeft="@dimen/volume_dialog_ringer_rows_padding" |
| android:paddingRight="@dimen/volume_dialog_ringer_rows_padding"> |
| <com.android.keyguard.AlphaOptimizedImageButton |
| android:id="@+id/settings" |
| android:src="@drawable/ic_speaker_group_24dp" |
| android:layout_width="@dimen/volume_dialog_tap_target_size" |
| android:layout_height="@dimen/volume_dialog_tap_target_size" |
| android:layout_gravity="center" |
| android:contentDescription="@string/accessibility_volume_settings" |
| android:background="@drawable/ripple_drawable_20dp" |
| android:tint="?androidprv:attr/colorAccent" |
| android:soundEffectsEnabled="false" /> |
| </FrameLayout> |
| <FrameLayout |
| android:id="@+id/expandable_indicator_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:background="@drawable/volume_background_bottom" |
| android:paddingLeft="@dimen/volume_dialog_ringer_rows_padding" |
| android:paddingBottom="@dimen/volume_dialog_ringer_rows_padding" |
| android:paddingRight="@dimen/volume_dialog_ringer_rows_padding"> |
| <com.android.systemui.statusbar.phone.ExpandableIndicator |
| android:id="@+id/expandable_indicator" |
| android:layout_width="@dimen/volume_dialog_tap_target_size" |
| android:layout_height="@dimen/volume_dialog_tap_target_size" |
| android:layout_gravity="center" |
| android:contentDescription="@string/accessibility_volume_settings" |
| android:background="@drawable/ripple_drawable_20dp" |
| android:tint="?androidprv:attr/colorAccent" |
| android:soundEffectsEnabled="false" |
| android:padding="10dp" |
| android:rotation="90" /> |
| </FrameLayout> |
| <FrameLayout |
| android:id="@+id/rounded_border_bottom" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:background="@drawable/volume_background_bottom" |
| android:paddingLeft="@dimen/volume_dialog_ringer_rows_padding" |
| android:paddingRight="@dimen/volume_dialog_ringer_rows_padding"> |
| <View |
| android:layout_width="0dp" |
| android:layout_height="32dp" |
| android:background="@drawable/ripple_drawable_20dp"/> |
| </FrameLayout> |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| <FrameLayout |
| android:id="@+id/odi_captions" |
| android:layout_width="@dimen/volume_dialog_caption_size" |
| android:layout_height="@dimen/volume_dialog_caption_size" |
| android:layout_marginTop="@dimen/volume_dialog_row_margin_bottom" |
| android:gravity="right" |
| android:layout_gravity="right" |
| android:clipToPadding="false" |
| android:clipToOutline="true" |
| android:background="@drawable/volume_row_rounded_background"> |
| <com.android.systemui.volume.CaptionsToggleImageButton |
| android:id="@+id/odi_captions_icon" |
| android:src="@drawable/ic_volume_odi_captions_disabled" |
| style="@style/VolumeButtons" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:tint="?android:attr/colorAccent" |
| android:layout_gravity="center" |
| android:soundEffectsEnabled="false"/> |
| </FrameLayout> |
| </com.android.systemui.animation.view.LaunchableLinearLayout> |
| |
| <ViewStub |
| android:id="@+id/odi_captions_tooltip_stub" |
| android:inflatedId="@+id/odi_captions_tooltip_view" |
| android:layout="@layout/volume_tool_tip_view" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom | right" |
| android:layout_marginLeft="@dimen/volume_tool_tip_horizontal_margin" |
| android:layout_marginRight="@dimen/volume_tool_tip_horizontal_margin"/> |
| |
| </FrameLayout> |