416 lines
20 KiB
XML
416 lines
20 KiB
XML
|
<?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
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="fill_parent"
|
||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||
|
<ScrollView
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical" >
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1"
|
||
|
android:visibility="gone"
|
||
|
android:id="@+id/audio_select_device_address_layout">
|
||
|
<TextView
|
||
|
android:id="@+id/select_device_title"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/select_device" />
|
||
|
<Space
|
||
|
android:layout_width="3dp"
|
||
|
android:layout_height="match_parent" />
|
||
|
<Spinner
|
||
|
android:id="@+id/device_address_spinner"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content" />
|
||
|
<Space
|
||
|
android:layout_width="3dp"
|
||
|
android:layout_height="match_parent" />
|
||
|
<Button
|
||
|
android:id="@+id/button_device_media_play_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play" />
|
||
|
<Space
|
||
|
android:layout_width="3dp"
|
||
|
android:layout_height="match_parent" />
|
||
|
<Button
|
||
|
android:id="@+id/button_device_media_play_once"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play_pcm_once" />
|
||
|
<Space
|
||
|
android:layout_width="3dp"
|
||
|
android:layout_height="match_parent" />
|
||
|
<Button
|
||
|
android:id="@+id/button_device_media_play_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:id="@+id/zone_selection_title"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/select_zone_to_hear_on_speaker" />
|
||
|
<Spinner
|
||
|
android:id="@+id/zone_spinner"
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="10dp"/>
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:id="@+id/activity_current_zone_id_title"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/activity_current_zone_id" />
|
||
|
<TextView
|
||
|
android:id="@+id/activity_current_zone"
|
||
|
android:paddingLeft="8dp"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/no_zone" />
|
||
|
</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"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/focus_gain_transient" />
|
||
|
<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_gain_transient_exclusive"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/focus_gain_transient_exclusive" />
|
||
|
<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" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/hw_audio_source_title" />
|
||
|
<TextView
|
||
|
android:id="@+id/hw_audio_source_not_found"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:paddingLeft="8dp"
|
||
|
android:text="@string/hw_audio_source_not_found" />
|
||
|
<Button
|
||
|
android:id="@+id/hw_audio_source_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play" />
|
||
|
<Button
|
||
|
android:id="@+id/hw_audio_source_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/media_with_delayed_focus" />
|
||
|
<Button
|
||
|
android:id="@+id/media_delayed_focus_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play" />
|
||
|
<Button
|
||
|
android:id="@+id/media_delayed_focus_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop" />
|
||
|
<TextView
|
||
|
android:id="@+id/media_delayed_player_status"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:paddingLeft="8dp"
|
||
|
android:text="@string/player_not_started" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/phone_audio_player" />
|
||
|
<Button
|
||
|
android:id="@+id/phone_audio_focus_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play" />
|
||
|
<Button
|
||
|
android:id="@+id/phone_audio_focus_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<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" />
|
||
|
<Button
|
||
|
android:id="@+id/button_wav_play_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play_wav" />
|
||
|
<Button
|
||
|
android:id="@+id/button_wav_play_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop_wav" />
|
||
|
</LinearLayout>
|
||
|
<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_start" />
|
||
|
<Button
|
||
|
android:id="@+id/button_nav_end"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/nav_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" />
|
||
|
<Button
|
||
|
android:id="@+id/button_radio_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/radio_start" />
|
||
|
<Button
|
||
|
android:id="@+id/button_radio_end"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/radio_end" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_weight="1" >
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/track_audio_player" />
|
||
|
<TextView
|
||
|
android:id="@+id/tone_selection_title"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/select_tone_to_hear_on_speaker" />
|
||
|
<Spinner
|
||
|
android:id="@+id/tone_spinner"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="10dp"/>
|
||
|
<Button
|
||
|
android:id="@+id/track_audio_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/play" />
|
||
|
<Button
|
||
|
android:id="@+id/track_audio_stop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/stop" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical" >
|
||
|
<com.google.android.material.tabs.TabLayout
|
||
|
android:id="@+id/audio_player_tabs"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" >
|
||
|
</com.google.android.material.tabs.TabLayout>
|
||
|
<androidx.viewpager.widget.ViewPager
|
||
|
android:id="@+id/zones_player_view_pager"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="300dp" >
|
||
|
</androidx.viewpager.widget.ViewPager>
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
</ScrollView>
|
||
|
</LinearLayout>
|