1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/main_view" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:gravity="center_vertical" 23 android:orientation="vertical" > 24 25 <LinearLayout 26 android:id="@+id/timer_text" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_weight="100" 30 android:gravity="center" > 31 32 <HorizontalScrollView 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:paddingLeft="16dip" 36 android:paddingRight="16dip" 37 android:scrollbars="none" > 38 <LinearLayout 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:gravity="bottom" 42 android:orientation="horizontal" > 43 44 <TextView 45 android:id="@+id/minutes" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:fontFamily="sans-serif-light" 49 android:singleLine="true" 50 android:text="@string/timer_default" 51 android:textColor="#607D8B" 52 android:textSize="88sp" /> 53 54 <TextView 55 android:id="@+id/minutes_label" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:layout_marginLeft="8dip" 59 android:layout_marginRight="16dip" 60 android:fontFamily="sans-serif" 61 android:singleLine="true" 62 android:text="@string/minutes_label" 63 android:textColor="#607D8B" 64 android:textSize="24sp" /> 65 66 <TextView 67 android:id="@+id/seconds" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:fontFamily="sans-serif-light" 71 android:singleLine="true" 72 android:text="@string/timer_default" 73 android:textColor="#607D8B" 74 android:textSize="88sp" /> 75 76 <TextView 77 android:id="@+id/seconds_label" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_marginLeft="8dip" 81 android:fontFamily="sans-serif" 82 android:singleLine="true" 83 android:text="@string/seconds_label" 84 android:textColor="#607D8B" 85 android:textSize="24sp" /> 86 </LinearLayout> 87 </HorizontalScrollView> 88 89 </LinearLayout> 90 91 <RelativeLayout 92 android:id="@+id/station_detail" 93 android:layout_width="match_parent" 94 android:layout_height="60dip" 95 android:layout_gravity="bottom" 96 android:layout_marginBottom="@dimen/fm_recording_station_detail_margin_bottom" 97 android:layout_marginEnd="16dip" 98 android:layout_marginStart="16dip" > 99 100 <LinearLayout 101 android:layout_width="wrap_content" 102 android:layout_height="match_parent" 103 android:layout_alignParentLeft="true" 104 android:layout_toLeftOf="@+id/fm_play_indicator" 105 android:gravity="bottom" 106 android:orientation="vertical" > 107 108 <TextView 109 android:id="@+id/frequency" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:includeFontPadding="false" 113 android:layout_marginBottom="-6dip" 114 android:alpha="0.87" 115 android:fontFamily="sans-serif" 116 android:singleLine="true" 117 android:textColor="#000000" 118 android:textSize="24sp" /> 119 120 <LinearLayout 121 android:id="@+id/station_name_rt" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:layout_marginTop="12dip" 125 android:layout_marginBottom="-2dip" 126 android:layout_marginRight="24dip" 127 android:visibility="gone" 128 android:orientation="horizontal" > 129 130 <TextView 131 android:id="@+id/station_name" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:alpha="0.54" 135 android:ellipsize="end" 136 android:fontFamily="sans-serif-medium" 137 android:singleLine="true" 138 android:textColor="#000000" 139 android:textSize="14sp" /> 140 141 <TextView 142 android:id="@+id/radio_text" 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" 145 android:layout_marginLeft="6dip" 146 android:alpha="0.54" 147 android:ellipsize="end" 148 android:fontFamily="sans-serif" 149 android:singleLine="true" 150 android:textColor="#000000" 151 android:textSize="14sp" /> 152 </LinearLayout> 153 </LinearLayout> 154 155 <LinearLayout 156 android:layout_width="wrap_content" 157 android:layout_height="match_parent" 158 android:layout_alignParentRight="true" > 159 <com.android.fmradio.views.FmVisualizerView 160 android:id="@+id/fm_play_indicator" 161 android:layout_width="24dip" 162 android:layout_height="24dip" 163 android:layout_gravity="bottom" 164 android:alpha="0.54" /> 165 </LinearLayout> 166 </RelativeLayout> 167 168 <LinearLayout 169 android:layout_width="match_parent" 170 android:layout_height="48dip" 171 android:layout_gravity="bottom" 172 android:gravity="center_vertical" 173 android:orientation="vertical" > 174 175 <View 176 android:layout_width="match_parent" 177 android:layout_height="1dip" 178 android:alpha="0.16" 179 android:background="#000000" /> 180 181 <Button 182 android:id="@+id/btn_stop_record" 183 android:layout_width="match_parent" 184 android:layout_height="match_parent" 185 android:layout_marginEnd="16dip" 186 android:layout_marginStart="16dip" 187 android:alpha="0.87" 188 android:background="?android:selectableItemBackground" 189 android:contentDescription="@string/stop_record" 190 android:enabled="false" 191 android:fontFamily="sans-serif-medium" 192 android:text="@string/stop_record" 193 android:textColor="#000000" 194 android:textSize="14sp" /> 195 </LinearLayout> 196 197</LinearLayout> 198