Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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/linearLayoutMain"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:orientation="vertical"
     24     android:background="#FFFFFF">
     25     <HorizontalScrollView
     26         android:id="@+id/ScrollView1"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content">
     29         <LinearLayout
     30             xmlns:android="http://schemas.android.com/apk/res/android"
     31             xmlns:tools="http://schemas.android.com/tools"
     32             android:layout_width="match_parent"
     33             android:layout_height="match_parent"
     34             android:orientation="horizontal">
     35 
     36             <Button
     37                 xmlns:android="http://schemas.android.com/apk/res/android"
     38                 android:id="@+id/buttonStartLatencyTest"
     39                 android:layout_width="wrap_content"
     40                 android:layout_height="wrap_content"
     41                 android:text="@string/buttonTest_enabled"
     42                 android:drawableLeft="@drawable/ic_play_arrow"
     43                 android:drawableStart="@drawable/ic_play_arrow"
     44                 style="@style/TextAppearance.AppCompat.Button"
     45                 android:onClick="onButtonLatencyTest"/>
     46 
     47             <Button
     48                 xmlns:android="http://schemas.android.com/apk/res/android"
     49                 android:id="@+id/buttonStartBufferTest"
     50                 android:layout_width="wrap_content"
     51                 android:layout_height="wrap_content"
     52                 android:text="@string/buttonBufferTest"
     53                 android:drawableLeft="@drawable/ic_play_arrow"
     54                 android:drawableStart="@drawable/ic_play_arrow"
     55                 style="@style/TextAppearance.AppCompat.Button"
     56                 android:onClick="onButtonBufferTest"/>
     57 
     58         </LinearLayout>
     59     </HorizontalScrollView>
     60 
     61     <Button
     62         xmlns:android="http://schemas.android.com/apk/res/android"
     63         android:id="@+id/buttonCalibrateSoundLevel"
     64         android:layout_width="wrap_content"
     65         android:layout_height="wrap_content"
     66         android:text="@string/buttonCalibrateSoundLevel"
     67         android:drawableLeft="@drawable/ic_play_arrow"
     68         android:drawableStart="@drawable/ic_play_arrow"
     69         style="@style/TextAppearance.AppCompat.Button"
     70         android:onClick="onButtonCalibrateSoundLevel" />
     71 
     72     <TextView
     73         android:id="@+id/textInfo"
     74         android:layout_width="wrap_content"
     75         android:layout_height="wrap_content"
     76         android:textColor="#000000"
     77         android:text="@string/labelInfo"/>
     78 
     79     <LinearLayout
     80         android:orientation="horizontal"
     81         android:layout_width="fill_parent"
     82         android:layout_height="wrap_content">
     83 
     84         <TextView
     85             android:layout_width="wrap_content"
     86             android:layout_height="wrap_content"
     87             android:text="Current Level"
     88             android:id="@+id/textViewCurrentLevel"/>
     89 
     90         <SeekBar
     91             android:id="@+id/BarMasterLevel"
     92             android:indeterminate="false"
     93             android:max="100"
     94             android:progress="0"
     95             android:layout_width="fill_parent"
     96             android:layout_height="wrap_content"
     97             style="?android:attr/progressBarStyleHorizontal" />
     98     </LinearLayout>
     99 
    100     <HorizontalScrollView
    101         android:id="@+id/glitchReportPanel"
    102         android:layout_width="wrap_content"
    103         android:layout_height="wrap_content"
    104         android:visibility="invisible">
    105         <LinearLayout
    106             xmlns:android="http://schemas.android.com/apk/res/android"
    107             xmlns:tools="http://schemas.android.com/tools"
    108             android:layout_width="match_parent"
    109             android:layout_height="wrap_content"
    110             android:orientation="vertical">
    111 
    112             <LinearLayout
    113                 xmlns:android="http://schemas.android.com/apk/res/android"
    114                 xmlns:tools="http://schemas.android.com/tools"
    115                 android:layout_width="match_parent"
    116                 android:layout_height="wrap_content"
    117                 android:orientation="horizontal">
    118                 <Button
    119                     xmlns:android="http://schemas.android.com/apk/res/android"
    120                     android:id="@+id/buttonRecorderBufferPeriod"
    121                     android:layout_width="wrap_content"
    122                     android:layout_height="wrap_content"
    123                     android:drawableLeft="@drawable/ic_assessment"
    124                     style="@style/TextAppearance.AppCompat.Button"
    125                     android:text="@string/buttonRecorderBufferPeriod"
    126                     android:onClick="onButtonRecorderBufferPeriod"/>
    127 
    128                 <Button
    129                     xmlns:android="http://schemas.android.com/apk/res/android"
    130                     android:id="@+id/buttonPlayerBufferPeriod"
    131                     android:layout_width="wrap_content"
    132                     android:layout_height="wrap_content"
    133                     android:drawableLeft="@drawable/ic_assessment"
    134                     style="@style/TextAppearance.AppCompat.Button"
    135                     android:text="@string/buttonPlayerBufferPeriod"
    136                     android:onClick="onButtonPlayerBufferPeriod"/>
    137             </LinearLayout>
    138             <LinearLayout
    139                 xmlns:android="http://schemas.android.com/apk/res/android"
    140                 xmlns:tools="http://schemas.android.com/tools"
    141                 android:layout_width="match_parent"
    142                 android:layout_height="wrap_content"
    143                 android:orientation="horizontal">
    144                 <Button
    145                     xmlns:android="http://schemas.android.com/apk/res/android"
    146                     android:id="@+id/buttonGlitches"
    147                     android:layout_width="wrap_content"
    148                     android:layout_height="wrap_content"
    149                     android:drawableLeft="@drawable/ic_description"
    150                     style="@style/TextAppearance.AppCompat.Button"
    151                     android:text="@string/buttonGlitches"
    152                     android:onClick="onButtonGlitches"/>
    153                 <Button
    154                     android:id="@+id/buttonHeatMap"
    155                     android:layout_width="wrap_content"
    156                     android:layout_height="wrap_content"
    157                     android:drawableLeft="@drawable/ic_assessment"
    158                     style="@style/TextAppearance.AppCompat.Button"
    159                     android:text="@string/compareAll"
    160                     android:onClick="onButtonHeatMap"/>
    161             </LinearLayout>
    162         </LinearLayout>
    163     </HorizontalScrollView>
    164 
    165     <LinearLayout
    166         android:orientation="horizontal"
    167         android:layout_width="match_parent"
    168         android:layout_height="wrap_content">
    169 
    170         <TextView
    171             android:layout_width="250dp"
    172             android:layout_height="wrap_content"
    173             android:text=""
    174             android:id="@+id/resultSummary"
    175             android:textStyle="bold"/>
    176     </LinearLayout>
    177 
    178     <LinearLayout
    179         android:layout_marginTop="0mm"
    180         android:layout_width="fill_parent"
    181         android:layout_height="wrap_content"
    182         android:layout_gravity="center_vertical"
    183         android:gravity="center_horizontal"
    184         android:orientation="horizontal"
    185         android:layout_weight="1">
    186 
    187         <org.drrickorang.loopback.WavePlotView
    188             android:id="@+id/viewWavePlot"
    189             android:layout_width="wrap_content"
    190             android:layout_height="wrap_content"
    191             android:layout_weight="1"/>
    192     </LinearLayout>
    193 
    194     <RelativeLayout
    195         android:id="@+id/zoomAndSaveControlPanel"
    196         android:layout_width="match_parent"
    197         android:layout_height="wrap_content"
    198         android:layout_gravity="left"
    199         android:padding="10dp"
    200         android:visibility="invisible"
    201         android:orientation="horizontal">
    202 
    203         <LinearLayout
    204             android:layout_width="wrap_content"
    205             android:layout_height="wrap_content"
    206             android:layout_alignParentLeft="true">
    207 
    208             <ImageButton
    209                 xmlns:android="http://schemas.android.com/apk/res/android"
    210                 android:id="@+id/buttonZoomOutFull"
    211                 android:layout_width="40dp"
    212                 android:layout_height="40dp"
    213                 android:paddingEnd="5dp"
    214                 android:paddingRight="5dp"
    215                 android:paddingLeft="5dp"
    216                 android:text="@string/buttonZoomOutFull"
    217                 android:src="@drawable/ic_zoom_out_full"
    218                 android:background="@null"
    219                 android:onClick="onButtonZoomOutFull"/>
    220 
    221             <ImageButton
    222                 xmlns:android="http://schemas.android.com/apk/res/android"
    223                 android:id="@+id/buttonZoomOut"
    224                 android:layout_width="40dp"
    225                 android:layout_height="40dp"
    226                 android:paddingEnd="5dp"
    227                 android:paddingRight="5dp"
    228                 android:paddingLeft="5dp"
    229                 android:text="@string/buttonZoomOut"
    230                 android:src="@drawable/ic_zoom_out"
    231                 android:background="@null"
    232                 android:onClick="onButtonZoomOut"/>
    233 
    234             <ImageButton
    235                 xmlns:android="http://schemas.android.com/apk/res/android"
    236                 android:id="@+id/buttonZoomIn"
    237                 android:layout_width="40dp"
    238                 android:layout_height="40dp"
    239                 android:paddingEnd="5dp"
    240                 android:paddingRight="5dp"
    241                 android:paddingLeft="5dp"
    242                 android:text="@string/buttonZoomIn"
    243                 android:src="@drawable/ic_zoom_in"
    244                 android:background="@null"
    245                 android:onClick="onButtonZoomIn"/>
    246 
    247         </LinearLayout>
    248         <LinearLayout
    249             android:layout_width="wrap_content"
    250             android:layout_height="wrap_content"
    251             android:layout_alignParentRight="true">
    252 
    253             <ImageButton
    254                 xmlns:android="http://schemas.android.com/apk/res/android"
    255                 android:id="@+id/buttonReport"
    256                 android:layout_width="40dp"
    257                 android:layout_height="40dp"
    258                 android:paddingEnd="5dp"
    259                 android:paddingRight="5dp"
    260                 android:paddingLeft="5dp"
    261                 android:src="@drawable/ic_report"
    262                 android:text="@string/buttonSave"
    263                 android:background="@null"
    264                 android:onClick="onButtonReport"/>
    265 
    266             <ImageButton
    267                 xmlns:android="http://schemas.android.com/apk/res/android"
    268                 android:id="@+id/buttonSave"
    269                 android:layout_width="40dp"
    270                 android:layout_height="40dp"
    271                 android:paddingEnd="5dp"
    272                 android:paddingRight="5dp"
    273                 android:paddingLeft="5dp"
    274                 android:src="@drawable/ic_save"
    275                 android:text="@string/buttonSave"
    276                 android:background="@null"
    277                 android:onClick="onButtonSave"/>
    278 
    279         </LinearLayout>
    280 
    281     </RelativeLayout>
    282 
    283 </LinearLayout>
    284