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