| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2020 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. |
| --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <!-- Scrollview is necessary to fit everything in landscape layout --> |
| <ScrollView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingStart="@dimen/dialog_side_padding" |
| android:paddingEnd="@dimen/dialog_side_padding" |
| android:paddingTop="@dimen/dialog_top_padding" |
| android:paddingBottom="@dimen/dialog_bottom_padding" |
| android:orientation="vertical"> |
| |
| <!-- Header --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:gravity="center"> |
| <ImageView |
| android:layout_width="@dimen/screenrecord_logo_size" |
| android:layout_height="@dimen/screenrecord_logo_size" |
| android:src="@drawable/ic_screenrecord" |
| android:tint="@color/screenrecord_icon_color"/> |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:fontFamily="@*android:string/config_headlineFontFamily" |
| android:text="@string/screenrecord_start_label" |
| android:layout_marginTop="22dp" |
| android:layout_marginBottom="15dp"/> |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/screenrecord_description" |
| android:textAppearance="?android:attr/textAppearanceSmall" |
| android:textColor="?android:textColorSecondary" |
| android:gravity="center" |
| android:layout_marginBottom="20dp"/> |
| |
| <!-- Options --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| <ImageView |
| android:layout_width="@dimen/screenrecord_option_icon_size" |
| android:layout_height="@dimen/screenrecord_option_icon_size" |
| android:src="@drawable/ic_mic_26dp" |
| android:tint="?android:attr/textColorSecondary" |
| android:layout_gravity="center" |
| android:layout_weight="0" |
| android:layout_marginRight="@dimen/screenrecord_option_padding"/> |
| <Spinner |
| android:id="@+id/screen_recording_options" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:minHeight="48dp" |
| android:layout_weight="1" |
| android:popupBackground="@drawable/screenrecord_spinner_background" |
| android:dropDownWidth="274dp" |
| android:prompt="@string/screenrecord_audio_label"/> |
| <Switch |
| android:layout_width="wrap_content" |
| android:minWidth="48dp" |
| android:layout_height="48dp" |
| android:layout_weight="0" |
| android:layout_gravity="end" |
| android:contentDescription="@string/screenrecord_audio_label" |
| android:id="@+id/screenrecord_audio_switch" |
| style="@style/ScreenRecord.Switch"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_marginTop="@dimen/screenrecord_option_padding"> |
| <ImageView |
| android:layout_width="@dimen/screenrecord_option_icon_size" |
| android:layout_height="@dimen/screenrecord_option_icon_size" |
| android:layout_weight="0" |
| android:src="@drawable/ic_touch" |
| android:tint="?android:attr/textColorSecondary" |
| android:layout_gravity="center" |
| android:layout_marginRight="@dimen/screenrecord_option_padding"/> |
| <TextView |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:minHeight="48dp" |
| android:layout_weight="1" |
| android:layout_gravity="fill_vertical" |
| android:gravity="center_vertical" |
| android:text="@string/screenrecord_taps_label" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:fontFamily="@*android:string/config_headlineFontFamily" |
| android:textColor="?android:attr/textColorPrimary" |
| android:importantForAccessibility="no"/> |
| <Switch |
| android:layout_width="wrap_content" |
| android:minWidth="48dp" |
| android:layout_height="48dp" |
| android:layout_weight="0" |
| android:id="@+id/screenrecord_taps_switch" |
| android:contentDescription="@string/screenrecord_taps_label" |
| style="@style/ScreenRecord.Switch"/> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <!-- Buttons --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_marginTop="36dp"> |
| <TextView |
| android:id="@+id/button_cancel" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_weight="0" |
| android:layout_gravity="start" |
| android:text="@string/cancel" |
| style="@style/Widget.Dialog.Button.BorderButton" /> |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="1"/> |
| |
| <!-- Temporary entrypoint for the partial screensharing used for teamfooding --> |
| <!-- TODO(b/236838395) remove this and use redesigned dialog --> |
| <TextView |
| android:id="@+id/button_app" |
| android:visibility="gone" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_weight="0" |
| android:layout_gravity="end" |
| android:layout_marginEnd="8dp" |
| android:text="App" |
| style="@style/Widget.Dialog.Button.BorderButton" /> |
| |
| <TextView |
| android:id="@+id/button_start" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_weight="0" |
| android:layout_gravity="end" |
| android:text="@string/screenrecord_start" |
| style="@style/Widget.Dialog.Button" /> |
| </LinearLayout> |
| </LinearLayout> |
| </ScrollView> |
| </LinearLayout> |