| <?xml version="1.0" encoding="utf-8"?> |
| <!-- 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. |
| --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" > |
| <!-- dummy one for top area --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="50dp" |
| android:orientation="vertical" |
| android:layout_weight="1" /> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_weight="1" > |
| <ToggleButton |
| android:id="@+id/button_mock_audio" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textOn="@string/mock_audio_on" |
| android:textOff="@string/mock_audio_off" /> |
| <ToggleButton |
| android:id="@+id/button_reject_audio_focus" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textOn="@string/reject_audio_focus_on" |
| android:textOff="@string/reject_audio_focus_off" /> |
| </LinearLayout> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:layout_weight="1" > |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" > |
| <TextView |
| android:id="@+id/audio_focus_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/audio_focus" /> |
| <Button |
| android:id="@+id/button_audio_focus_request" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/request" /> |
| <TextView |
| android:id="@+id/text_audio_focus_state" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/empty" /> |
| </LinearLayout> |
| <RadioGroup |
| android:id="@+id/button_focus_request_selection" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" > |
| <RadioButton |
| android:id="@+id/focus_gain" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/focus_gain" /> |
| <RadioButton |
| android:id="@+id/focus_gain_transient_duck" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/focus_gain_transient_duck" /> |
| <RadioButton |
| android:id="@+id/focus_release" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/focus_release" /> |
| </RadioGroup> |
| </LinearLayout> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_weight="1" > |
| <TextView |
| android:id="@+id/nav_play_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/nav_play" /> |
| <Button |
| android:id="@+id/button_nav_play_once" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/play_pcm_once" /> |
| <TextView |
| android:id="@+id/vr_play_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/vr_play" /> |
| <Button |
| android:id="@+id/button_vr_play_once" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/play_pcm_once" /> |
| <TextView |
| android:id="@+id/system_play_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/system_play" /> |
| <Button |
| android:id="@+id/button_system_play_once" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/play_pcm_once" /> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_weight="1" > |
| <TextView |
| android:id="@+id/media_play_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/media_play" /> |
| <Button |
| android:id="@+id/button_media_play_start" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/play" /> |
| <Button |
| android:id="@+id/button_media_play_once" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/play_pcm_once" /> |
| <Button |
| android:id="@+id/button_media_play_stop" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/stop" /> |
| <Button |
| android:id="@+id/button_speaker_phone_on" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/speaker_phone_on" /> |
| <Button |
| android:id="@+id/button_speaker_phone_off" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/speaker_phone_off" /> |
| <Button |
| android:id="@+id/button_microphone_on" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/microphone_on" /> |
| <Button |
| android:id="@+id/button_microphone_off" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/microphone_off" /> |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/system_play_message" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/empty" |
| android:layout_weight="1" /> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:layout_weight="1" > |
| <Button |
| android:id="@+id/button_nav_start" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/nav_focus_start" /> |
| <Button |
| android:id="@+id/button_nav_end" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/nav_focus_end" /> |
| <Button |
| android:id="@+id/button_vr_start" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/vr_start" /> |
| <Button |
| android:id="@+id/button_vr_end" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/vr_end" /> |
| </LinearLayout> |
| </LinearLayout> |