blob: c76ce4604780950175d831a8fd4aae639c8c6361 [file] [log] [blame]
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/settingsMainLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#FFFFFF">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="150dp">
<TextView
android:id="@+id/textSettingsInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/labelSettings"
android:elegantTextHeight="false" />
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<TextView
android:id="@+id/textMicSource"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/labelMicSource"/>
<Spinner
android:id="@+id/spinnerMicSource"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<TextView
android:id="@+id/textAudioThreadType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/labelAudioThreadType"/>
<Spinner
android:id="@+id/spinnerAudioThreadType"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<TextView
android:id="@+id/textChannelIndex"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/labelChannelIndex"/>
<Spinner
android:id="@+id/spinnerChannelIndex"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<Button
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/buttonDefaultSettings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/buttonDefaultSettings"
android:onClick="onButtonClick"/>
<TextView
android:id="@+id/textSamplingRate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/labelSamplingRate"/>
<Spinner
android:id="@+id/spinnerSamplingRate"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/playerBufferSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/recorderBufferSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/bufferTestDurationSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/wavePlotDurationSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray" />
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/numLoadThreadsSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="80dp"
android:padding="15dp">
<RelativeLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="3">
<ToggleButton
android:id="@+id/SystraceEnabledToggle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="15dp"
android:background="@drawable/togglebutton_state_drawable"
android:textOn="Enabled"
android:textOff="Disabled"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="6">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enableSystrace"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:onClick="onButtonSysTraceHelp"
android:src="@drawable/ic_help_outline"/>
</RelativeLayout>
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="80dp"
android:padding="15dp">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3">
<ToggleButton
android:id="@+id/wavSnippetsEnabledToggle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="15dp"
android:background="@drawable/togglebutton_state_drawable"
android:textOn="Enabled"
android:textOff="Disabled"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="6">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enableWavSnippets"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1">
<!-- This empty layout is to match spacing of SystraceEnabled layout -->
</RelativeLayout>
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<org.drrickorang.loopback.SettingsPicker
android:id="@+id/numCapturesSettingPicker"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
</LinearLayout>