| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/main_view" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:gravity="center_vertical" |
| android:orientation="vertical" > |
| |
| <LinearLayout |
| android:id="@+id/timer_text" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="16dip" |
| android:layout_marginStart="16dip" |
| android:layout_weight="100" |
| android:gravity="center" > |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="bottom" |
| android:orientation="horizontal" > |
| |
| <TextView |
| android:id="@+id/minutes" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:fontFamily="sans-serif-light" |
| android:singleLine="true" |
| android:text="@string/timer_default" |
| android:textColor="#607D8B" |
| android:textSize="88sp" /> |
| |
| <TextView |
| android:id="@+id/minutes_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="12dip" |
| android:layout_marginRight="24dip" |
| android:fontFamily="sans-serif" |
| android:singleLine="true" |
| android:text="@string/minutes_label" |
| android:textColor="#607D8B" |
| android:textSize="24sp" /> |
| |
| <TextView |
| android:id="@+id/seconds" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:fontFamily="sans-serif-light" |
| android:singleLine="true" |
| android:text="@string/timer_default" |
| android:textColor="#607D8B" |
| android:textSize="88sp" /> |
| |
| <TextView |
| android:id="@+id/seconds_label" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="12dip" |
| android:fontFamily="sans-serif" |
| android:singleLine="true" |
| android:text="@string/seconds_label" |
| android:textColor="#607D8B" |
| android:textSize="24sp" /> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <RelativeLayout |
| android:id="@+id/station_detail" |
| android:layout_width="match_parent" |
| android:layout_height="60dip" |
| android:layout_gravity="bottom" |
| android:layout_marginBottom="@dimen/fm_recording_station_detail_margin_bottom" |
| android:layout_marginEnd="16dip" |
| android:layout_marginStart="16dip" > |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_alignParentLeft="true" |
| android:layout_toLeftOf="@+id/fm_play_indicator" |
| android:gravity="bottom" |
| android:orientation="vertical" > |
| |
| <TextView |
| android:id="@+id/frequency" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:includeFontPadding="false" |
| android:layout_marginBottom="-6dip" |
| android:alpha="0.87" |
| android:fontFamily="sans-serif" |
| android:singleLine="true" |
| android:textColor="#000000" |
| android:textSize="24sp" /> |
| |
| <LinearLayout |
| android:id="@+id/station_name_rt" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginBottom="-2dip" |
| android:layout_marginRight="24dip" |
| android:visibility="gone" |
| android:orientation="horizontal" > |
| |
| <TextView |
| android:id="@+id/station_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:alpha="0.54" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif-medium" |
| android:singleLine="true" |
| android:textColor="#000000" |
| android:textSize="14sp" /> |
| |
| <TextView |
| android:id="@+id/radio_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="6dip" |
| android:alpha="0.54" |
| android:ellipsize="end" |
| android:fontFamily="sans-serif" |
| android:singleLine="true" |
| android:textColor="#000000" |
| android:textSize="14sp" /> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_alignParentRight="true" > |
| <com.android.fmradio.views.FmVisualizerView |
| android:id="@+id/fm_play_indicator" |
| android:layout_width="24dip" |
| android:layout_height="24dip" |
| android:layout_gravity="bottom" |
| android:alpha="0.54" /> |
| </LinearLayout> |
| </RelativeLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="48dip" |
| android:layout_gravity="bottom" |
| android:gravity="center_vertical" |
| android:orientation="vertical" > |
| |
| <View |
| android:layout_width="match_parent" |
| android:layout_height="1dip" |
| android:alpha="0.16" |
| android:background="#000000" /> |
| |
| <Button |
| android:id="@+id/btn_stop_record" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginEnd="16dip" |
| android:layout_marginStart="16dip" |
| android:alpha="0.87" |
| android:background="?android:selectableItemBackground" |
| android:contentDescription="@string/stop_record" |
| android:enabled="false" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/stop_record" |
| android:textColor="#000000" |
| android:textSize="14sp" /> |
| </LinearLayout> |
| |
| </LinearLayout> |