Home | History | Annotate | Download | only in layout-port
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!-- Copyright (C) 2011 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 xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent"
     20     android:orientation="vertical">
     21     
     22     <ImageView
     23          android:src="@android:drawable/divider_horizontal_dark"
     24          android:layout_width="match_parent"
     25          android:layout_height="wrap_content"
     26          android:scaleType="fitXY"/>
     27     
     28     <RelativeLayout android:id="@+id/timerViewLayout"
     29         android:layout_width="match_parent"
     30         android:layout_height="242dip"
     31         android:background="@drawable/gradient_bg">
     32 
     33         <TextView android:id="@+id/timerView"
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:textSize="112dip"
     37             android:layout_centerInParent="true"
     38             style="@android:style/TextAppearance.Large" />
     39 
     40         <LinearLayout android:id="@+id/stateMessage2Layout"
     41             android:orientation="horizontal"
     42             android:layout_width="wrap_content"
     43             android:layout_height="wrap_content"
     44             android:layout_above="@+id/timerView"
     45             android:layout_centerHorizontal="true"
     46             android:baselineAligned="false">
     47             
     48             <ImageView android:id="@+id/stateLED"
     49                 android:layout_width="wrap_content"
     50                 android:layout_height="wrap_content"
     51                 android:layout_gravity="center_vertical" />
     52                 
     53             <TextView android:id="@+id/stateMessage2"
     54                 android:layout_width="wrap_content"
     55                 android:layout_height="wrap_content"
     56                 android:text="@string/recording"
     57                 android:layout_gravity="center_vertical" 
     58                 android:layout_marginLeft="5px"
     59                 style="@android:style/TextAppearance.Medium"/>
     60 
     61         </LinearLayout>
     62     
     63         <TextView android:id="@+id/stateMessage1"
     64             android:layout_width="wrap_content"
     65             android:layout_height="wrap_content"
     66             android:layout_below="@+id/stateMessage2Layout"
     67             android:layout_centerHorizontal="true"
     68             style="@android:style/TextAppearance.Small" />                
     69 
     70         <ProgressBar android:id="@+id/stateProgressBar"
     71             android:orientation="horizontal"
     72             android:layout_width="match_parent"
     73             android:layout_height="wrap_content" 
     74             android:layout_above="@+id/timerView"
     75             android:max="100"
     76             android:progress="0"
     77             android:layout_marginLeft="20dip"
     78             android:layout_marginRight="20dip"
     79             style="?android:attr/progressBarStyleHorizontal" />
     80 
     81     </RelativeLayout>
     82     
     83     <ImageView
     84          android:src="@android:drawable/divider_horizontal_dark"
     85          android:layout_width="match_parent"
     86          android:layout_height="wrap_content"
     87          android:scaleType="fitXY"/>
     88 
     89     <FrameLayout
     90         android:layout_width="match_parent"
     91         android:layout_height="wrap_content"
     92         android:layout_weight="1">
     93 
     94             <LinearLayout android:id="@+id/exitButtons"
     95                 android:orientation="horizontal"
     96                 android:gravity="center_vertical"
     97                 android:layout_gravity="center_vertical"
     98                 android:layout_width="match_parent"
     99                 android:layout_height="wrap_content" 
    100                 android:layout_centerInParent="true" >
    101 
    102                 <Button android:id="@+id/discardButton"
    103                     android:layout_width="match_parent"
    104                     android:layout_height="wrap_content"
    105                     android:text="@string/discard"
    106                     android:layout_weight="1"
    107                     android:layout_marginLeft="2dip" 
    108                     android:layout_marginRight="15dip" />
    109 
    110                 <Button android:id="@+id/acceptButton"
    111                     android:layout_width="match_parent"
    112                     android:layout_height="wrap_content"
    113                     android:text="@string/accept"
    114                     android:layout_weight="1"
    115                     android:layout_marginLeft="15dip"
    116                     android:layout_marginRight="2dip" />
    117             </LinearLayout>
    118     
    119         <RelativeLayout
    120             android:layout_width="match_parent"
    121             android:layout_height="match_parent">
    122             
    123             <com.android.soundrecorder.VUMeter android:id="@+id/uvMeter"
    124                 android:layout_width="200px"
    125                 android:layout_height="80px"
    126                 android:layout_centerInParent="true" />
    127         </RelativeLayout>
    128 
    129     </FrameLayout>
    130     
    131     <ImageView
    132          android:src="@android:drawable/divider_horizontal_dark"
    133          android:layout_width="match_parent"
    134          android:layout_height="wrap_content"
    135          android:scaleType="fitXY"/>
    136 
    137                     
    138     <LinearLayout
    139         android:layout_width="match_parent"
    140         android:layout_height="60dip"
    141         android:background="@android:drawable/title_bar"
    142         android:gravity="center_horizontal"
    143         android:orientation="vertical">
    144 
    145         <LinearLayout
    146             android:layout_marginTop="4dip"
    147             android:layout_marginBottom="4dip"
    148             android:orientation="horizontal"
    149             android:layout_width="wrap_content"
    150             android:layout_height="match_parent" >
    151 
    152             <ImageButton android:id="@+id/recordButton"
    153                 android:layout_height="match_parent" 
    154                 style="@style/MediaButton"
    155                 android:src="@drawable/record" />
    156     
    157             <ImageButton android:id="@+id/playButton"
    158                 android:layout_height="match_parent" 
    159                 style="@style/MediaButton"
    160                 android:src="@drawable/play" />
    161     
    162             <ImageButton android:id="@+id/stopButton"
    163                 android:layout_height="match_parent" 
    164                 style="@style/MediaButton"
    165                 android:src="@drawable/stop" />
    166 
    167         </LinearLayout>
    168 
    169     </LinearLayout>
    170     
    171 </LinearLayout>
    172