Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:tools="http://schemas.android.com/tools"
     20     android:id="@+id/settingsMainLayout"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:orientation="vertical"
     24     android:background="#FFFFFF">
     25 
     26     <ScrollView
     27         android:layout_width="fill_parent"
     28         android:layout_height="wrap_content">
     29         <LinearLayout
     30             android:layout_width="wrap_content"
     31             android:layout_height="wrap_content"
     32             android:orientation="vertical"
     33             android:paddingBottom="150dp">
     34 
     35             <TextView
     36                 android:id="@+id/textSettingsInfo"
     37                 android:layout_width="wrap_content"
     38                 android:layout_height="wrap_content"
     39                 android:text="@string/labelSettings"
     40                 android:elegantTextHeight="false" />
     41 
     42             <View
     43                 android:layout_width="fill_parent"
     44                 android:layout_height="1dp"
     45                 android:background="@android:color/darker_gray"/>
     46 
     47             <TextView
     48                 android:id="@+id/textMicSource"
     49                 android:layout_width="wrap_content"
     50                 android:layout_height="wrap_content"
     51                 android:text="@string/labelMicSource"/>
     52             <Spinner
     53                 android:id="@+id/spinnerMicSource"
     54                 android:layout_width="fill_parent"
     55                 android:layout_height="wrap_content"/>
     56 
     57             <View
     58                 android:layout_width="fill_parent"
     59                 android:layout_height="1dp"
     60                 android:background="@android:color/darker_gray"/>
     61 
     62             <TextView
     63                 android:id="@+id/textPerformanceMode"
     64                 android:layout_width="wrap_content"
     65                 android:layout_height="wrap_content"
     66                 android:text="@string/labelPerformanceMode"/>
     67             <Spinner
     68                 android:id="@+id/spinnerPerformanceMode"
     69                 android:layout_width="fill_parent"
     70                 android:layout_height="wrap_content"/>
     71 
     72             <View
     73                 android:layout_width="fill_parent"
     74                 android:layout_height="1dp"
     75                 android:background="@android:color/darker_gray"/>
     76 
     77             <TextView
     78                 android:id="@+id/textAudioThreadType"
     79                 android:layout_width="wrap_content"
     80                 android:layout_height="wrap_content"
     81                 android:text="@string/labelAudioThreadType"/>
     82             <Spinner
     83                 android:id="@+id/spinnerAudioThreadType"
     84                 android:layout_width="fill_parent"
     85                 android:layout_height="wrap_content"/>
     86 
     87             <View
     88                 android:layout_width="fill_parent"
     89                 android:layout_height="1dp"
     90                 android:background="@android:color/darker_gray"/>
     91 
     92             <TextView
     93                 android:id="@+id/textChannelIndex"
     94                 android:layout_width="wrap_content"
     95                 android:layout_height="wrap_content"
     96                 android:text="@string/labelChannelIndex"/>
     97             <Spinner
     98                 android:id="@+id/spinnerChannelIndex"
     99                 android:layout_width="fill_parent"
    100                 android:layout_height="wrap_content"/>
    101 
    102             <View
    103                 android:layout_width="fill_parent"
    104                 android:layout_height="1dp"
    105                 android:background="@android:color/darker_gray"/>
    106 
    107             <Button
    108                 xmlns:android="http://schemas.android.com/apk/res/android"
    109                 android:id="@+id/buttonDefaultSettings"
    110                 android:layout_width="wrap_content"
    111                 android:layout_height="wrap_content"
    112                 android:text="@string/buttonDefaultSettings"
    113                 android:onClick="onButtonClick"/>
    114 
    115             <TextView
    116                 android:id="@+id/textSamplingRate"
    117                 android:layout_width="wrap_content"
    118                 android:layout_height="wrap_content"
    119                 android:text="@string/labelSamplingRate"/>
    120 
    121             <Spinner
    122                 android:id="@+id/spinnerSamplingRate"
    123                 android:layout_width="fill_parent"
    124                 android:layout_height="wrap_content"/>
    125 
    126             <View
    127                 android:layout_width="fill_parent"
    128                 android:layout_height="1dp"
    129                 android:background="@android:color/darker_gray"/>
    130 
    131             <org.drrickorang.loopback.SettingsPicker
    132                 android:id="@+id/playerBufferSetting"
    133                 android:layout_width="match_parent"
    134                 android:layout_height="wrap_content"/>
    135 
    136             <View
    137                 android:layout_width="fill_parent"
    138                 android:layout_height="1dp"
    139                 android:background="@android:color/darker_gray"/>
    140 
    141 
    142             <org.drrickorang.loopback.SettingsPicker
    143                 android:id="@+id/recorderBufferSetting"
    144                 android:layout_width="match_parent"
    145                 android:layout_height="wrap_content"/>
    146 
    147             <View
    148                 android:layout_width="fill_parent"
    149                 android:layout_height="1dp"
    150                 android:background="@android:color/darker_gray"/>
    151 
    152 
    153             <org.drrickorang.loopback.SettingsPicker
    154                 android:id="@+id/bufferTestDurationSetting"
    155                 android:layout_width="match_parent"
    156                 android:layout_height="wrap_content"/>
    157 
    158             <View
    159                 android:layout_width="fill_parent"
    160                 android:layout_height="1dp"
    161                 android:background="@android:color/darker_gray"/>
    162 
    163 
    164             <org.drrickorang.loopback.SettingsPicker
    165                 android:id="@+id/wavePlotDurationSetting"
    166                 android:layout_width="match_parent"
    167                 android:layout_height="wrap_content"/>
    168 
    169             <View
    170                 android:layout_width="fill_parent"
    171                 android:layout_height="1dp"
    172                 android:background="@android:color/darker_gray" />
    173 
    174 
    175             <org.drrickorang.loopback.SettingsPicker
    176                 android:id="@+id/numLoadThreadsSetting"
    177                 android:layout_width="match_parent"
    178                 android:layout_height="wrap_content" />
    179 
    180             <View
    181                 android:layout_width="fill_parent"
    182                 android:layout_height="1dp"
    183                 android:background="@android:color/darker_gray"/>
    184 
    185             <LinearLayout
    186                 android:orientation="horizontal"
    187                 android:layout_width="match_parent"
    188                 android:layout_height="80dp"
    189                 android:padding="15dp">
    190 
    191                 <RelativeLayout
    192                     android:layout_width="0dip"
    193                     android:layout_height="match_parent"
    194                     android:layout_weight="3">
    195                     <ToggleButton
    196                         android:id="@+id/SystraceEnabledToggle"
    197                         android:layout_width="match_parent"
    198                         android:layout_height="match_parent"
    199                         android:layout_marginRight="15dp"
    200                         android:background="@drawable/togglebutton_state_drawable"
    201                         android:textOn="Enabled"
    202                         android:textOff="Disabled"/>
    203                 </RelativeLayout>
    204                 <RelativeLayout
    205                     android:layout_width="0dip"
    206                     android:layout_height="match_parent"
    207                     android:layout_weight="6">
    208                     <TextView
    209                         android:layout_width="wrap_content"
    210                         android:layout_height="wrap_content"
    211                         android:text="@string/enableSystrace"/>
    212                 </RelativeLayout>
    213                 <RelativeLayout
    214                     android:layout_width="0dip"
    215                     android:layout_height="match_parent"
    216                     android:layout_weight="1">
    217                     <ImageView
    218                         android:layout_width="match_parent"
    219                         android:layout_height="match_parent"
    220                         android:onClick="onButtonHelp"
    221                         android:id="@+id/buttonSystraceHelp"
    222                         android:src="@drawable/ic_help_outline"/>
    223                 </RelativeLayout>
    224             </LinearLayout>
    225 
    226             <View
    227                 android:layout_width="fill_parent"
    228                 android:layout_height="1dp"
    229                 android:background="@android:color/darker_gray"/>
    230 
    231             <LinearLayout
    232                 android:orientation="horizontal"
    233                 android:layout_width="match_parent"
    234                 android:layout_height="80dp"
    235                 android:padding="15dp">
    236 
    237                 <RelativeLayout
    238                     android:layout_width="0dp"
    239                     android:layout_height="match_parent"
    240                     android:layout_weight="3">
    241                     <ToggleButton
    242                         android:id="@+id/BugreportEnabledToggle"
    243                         android:layout_width="match_parent"
    244                         android:layout_height="match_parent"
    245                         android:layout_marginRight="15dp"
    246                         android:background="@drawable/togglebutton_state_drawable"
    247                         android:textOn="Enabled"
    248                         android:textOff="Disabled"/>
    249                 </RelativeLayout>
    250                 <RelativeLayout
    251                     android:layout_width="0dp"
    252                     android:layout_height="match_parent"
    253                     android:layout_weight="6">
    254                     <TextView
    255                         android:layout_width="wrap_content"
    256                         android:layout_height="wrap_content"
    257                         android:text="@string/enableBugreport"/>
    258                 </RelativeLayout>
    259                 <RelativeLayout
    260                     android:layout_width="0dip"
    261                     android:layout_height="match_parent"
    262                     android:layout_weight="1">
    263                     <ImageView
    264                         android:layout_width="match_parent"
    265                         android:layout_height="match_parent"
    266                         android:onClick="onButtonHelp"
    267                         android:id="@+id/buttonBugreportHelp"
    268                         android:src="@drawable/ic_help_outline"/>
    269                 </RelativeLayout>
    270             </LinearLayout>
    271 
    272             <View
    273                 android:layout_width="fill_parent"
    274                 android:layout_height="1dp"
    275                 android:background="@android:color/darker_gray"/>
    276 
    277             <LinearLayout
    278                 android:orientation="horizontal"
    279                 android:layout_width="match_parent"
    280                 android:layout_height="80dp"
    281                 android:padding="15dp">
    282 
    283                 <RelativeLayout
    284                     android:layout_width="0dp"
    285                     android:layout_height="match_parent"
    286                     android:layout_weight="3">
    287                     <ToggleButton
    288                         android:id="@+id/wavSnippetsEnabledToggle"
    289                         android:layout_width="match_parent"
    290                         android:layout_height="match_parent"
    291                         android:layout_marginRight="15dp"
    292                         android:background="@drawable/togglebutton_state_drawable"
    293                         android:textOn="Enabled"
    294                         android:textOff="Disabled"/>
    295                 </RelativeLayout>
    296                 <RelativeLayout
    297                     android:layout_width="0dp"
    298                     android:layout_height="match_parent"
    299                     android:layout_weight="6">
    300                     <TextView
    301                         android:layout_width="wrap_content"
    302                         android:layout_height="wrap_content"
    303                         android:text="@string/enableWavSnippets"/>
    304                 </RelativeLayout>
    305                 <RelativeLayout
    306                     android:layout_width="0dip"
    307                     android:layout_height="match_parent"
    308                     android:layout_weight="1">
    309                 <!-- This empty layout is to match spacing of SystraceEnabled layout -->
    310                 </RelativeLayout>
    311             </LinearLayout>
    312 
    313             <View
    314                 android:layout_width="fill_parent"
    315                 android:layout_height="1dp"
    316                 android:background="@android:color/darker_gray"/>
    317 
    318             <org.drrickorang.loopback.SettingsPicker
    319                 android:id="@+id/numCapturesSettingPicker"
    320                 android:layout_width="match_parent"
    321                 android:layout_height="wrap_content"/>
    322 
    323             <View
    324                 android:layout_width="fill_parent"
    325                 android:layout_height="1dp"
    326                 android:background="@android:color/darker_gray"/>
    327 
    328             <org.drrickorang.loopback.SettingsPicker
    329                 android:id="@+id/ignoreFirstFramesSettingPicker"
    330                 android:layout_width="match_parent"
    331                 android:layout_height="wrap_content"/>
    332 
    333             <View
    334                 android:layout_width="fill_parent"
    335                 android:layout_height="1dp"
    336                 android:background="@android:color/darker_gray"/>
    337 
    338             <LinearLayout
    339                 android:orientation="horizontal"
    340                 android:layout_width="match_parent"
    341                 android:layout_height="80dp"
    342                 android:padding="15dp">
    343 
    344                 <RelativeLayout
    345                     android:layout_width="0dp"
    346                     android:layout_height="match_parent"
    347                     android:layout_weight="3">
    348                     <ToggleButton
    349                         android:id="@+id/soundLevelCalibrationEnabledToggle"
    350                         android:layout_width="match_parent"
    351                         android:layout_height="match_parent"
    352                         android:layout_marginRight="15dp"
    353                         android:background="@drawable/togglebutton_state_drawable"
    354                         android:textOn="Enabled"
    355                         android:textOff="Disabled"/>
    356                 </RelativeLayout>
    357                 <RelativeLayout
    358                     android:layout_width="0dp"
    359                     android:layout_height="match_parent"
    360                     android:layout_weight="6">
    361                     <TextView
    362                         android:layout_width="wrap_content"
    363                         android:layout_height="wrap_content"
    364                         android:text="@string/enableSoundLevelCalibration"/>
    365                 </RelativeLayout>
    366                 <RelativeLayout
    367                     android:layout_width="0dip"
    368                     android:layout_height="match_parent"
    369                     android:layout_weight="1">
    370                     <ImageView
    371                         android:layout_width="match_parent"
    372                         android:layout_height="match_parent"
    373                         android:onClick="onButtonHelp"
    374                         android:id="@+id/buttonCalibrateSoundLevelHelp"
    375                         android:src="@drawable/ic_help_outline"/>
    376                 </RelativeLayout>
    377             </LinearLayout>
    378 
    379         </LinearLayout>
    380     </ScrollView>
    381 </LinearLayout>
    382