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