Home | History | Annotate | Download | only in layout
      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_marginEnd="16dip"
     30         android:layout_marginStart="16dip"
     31         android:layout_weight="100"
     32         android:gravity="center" >
     33 
     34         <LinearLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content"
     37             android:gravity="bottom"
     38             android:orientation="horizontal" >
     39 
     40             <TextView
     41                 android:id="@+id/minutes"
     42                 android:layout_width="wrap_content"
     43                 android:layout_height="wrap_content"
     44                 android:fontFamily="sans-serif-light"
     45                 android:singleLine="true"
     46                 android:text="@string/timer_default"
     47                 android:textColor="#607D8B"
     48                 android:textSize="88sp" />
     49 
     50             <TextView
     51                 android:id="@+id/minutes_label"
     52                 android:layout_width="wrap_content"
     53                 android:layout_height="wrap_content"
     54                 android:layout_marginLeft="12dip"
     55                 android:layout_marginRight="24dip"
     56                 android:fontFamily="sans-serif"
     57                 android:singleLine="true"
     58                 android:text="@string/minutes_label"
     59                 android:textColor="#607D8B"
     60                 android:textSize="24sp" />
     61 
     62             <TextView
     63                 android:id="@+id/seconds"
     64                 android:layout_width="wrap_content"
     65                 android:layout_height="wrap_content"
     66                 android:fontFamily="sans-serif-light"
     67                 android:singleLine="true"
     68                 android:text="@string/timer_default"
     69                 android:textColor="#607D8B"
     70                 android:textSize="88sp" />
     71 
     72             <TextView
     73                 android:id="@+id/seconds_label"
     74                 android:layout_width="wrap_content"
     75                 android:layout_height="wrap_content"
     76                 android:layout_marginLeft="12dip"
     77                 android:fontFamily="sans-serif"
     78                 android:singleLine="true"
     79                 android:text="@string/seconds_label"
     80                 android:textColor="#607D8B"
     81                 android:textSize="24sp" />
     82         </LinearLayout>
     83     </LinearLayout>
     84 
     85     <RelativeLayout
     86         android:id="@+id/station_detail"
     87         android:layout_width="match_parent"
     88         android:layout_height="60dip"
     89         android:layout_gravity="bottom"
     90         android:layout_marginBottom="@dimen/fm_recording_station_detail_margin_bottom"
     91         android:layout_marginEnd="16dip"
     92         android:layout_marginStart="16dip" >
     93 
     94         <LinearLayout
     95              android:layout_width="wrap_content"
     96              android:layout_height="match_parent"
     97              android:layout_alignParentLeft="true"
     98              android:layout_toLeftOf="@+id/fm_play_indicator"
     99              android:gravity="bottom"
    100              android:orientation="vertical" >
    101 
    102             <TextView
    103                 android:id="@+id/frequency"
    104                 android:layout_width="wrap_content"
    105                 android:layout_height="wrap_content"
    106                 android:includeFontPadding="false"
    107                 android:layout_marginBottom="-6dip"
    108                 android:alpha="0.87"
    109                 android:fontFamily="sans-serif"
    110                 android:singleLine="true"
    111                 android:textColor="#000000"
    112                 android:textSize="24sp" />
    113 
    114             <LinearLayout
    115                 android:id="@+id/station_name_rt"
    116                 android:layout_width="wrap_content"
    117                 android:layout_height="wrap_content"
    118                 android:layout_marginTop="12dip"
    119                 android:layout_marginBottom="-2dip"
    120                 android:layout_marginRight="24dip"
    121                 android:visibility="gone"
    122                 android:orientation="horizontal" >
    123 
    124                 <TextView
    125                     android:id="@+id/station_name"
    126                     android:layout_width="wrap_content"
    127                     android:layout_height="wrap_content"
    128                     android:alpha="0.54"
    129                     android:ellipsize="end"
    130                     android:fontFamily="sans-serif-medium"
    131                     android:singleLine="true"
    132                     android:textColor="#000000"
    133                     android:textSize="14sp" />
    134 
    135                 <TextView
    136                     android:id="@+id/radio_text"
    137                     android:layout_width="wrap_content"
    138                     android:layout_height="wrap_content"
    139                     android:layout_marginLeft="6dip"
    140                     android:alpha="0.54"
    141                     android:ellipsize="end"
    142                     android:fontFamily="sans-serif"
    143                     android:singleLine="true"
    144                     android:textColor="#000000"
    145                     android:textSize="14sp" />
    146             </LinearLayout>
    147         </LinearLayout>
    148 
    149         <LinearLayout
    150             android:layout_width="wrap_content"
    151             android:layout_height="match_parent"
    152             android:layout_alignParentRight="true" >
    153             <com.android.fmradio.views.FmVisualizerView
    154                 android:id="@+id/fm_play_indicator"
    155                 android:layout_width="24dip"
    156                 android:layout_height="24dip"
    157                 android:layout_gravity="bottom"
    158                 android:alpha="0.54" />
    159         </LinearLayout>
    160     </RelativeLayout>
    161 
    162     <LinearLayout
    163         android:layout_width="match_parent"
    164         android:layout_height="48dip"
    165         android:layout_gravity="bottom"
    166         android:gravity="center_vertical"
    167         android:orientation="vertical" >
    168 
    169         <View
    170             android:layout_width="match_parent"
    171             android:layout_height="1dip"
    172             android:alpha="0.16"
    173             android:background="#000000" />
    174 
    175         <Button
    176             android:id="@+id/btn_stop_record"
    177             android:layout_width="match_parent"
    178             android:layout_height="match_parent"
    179             android:layout_marginEnd="16dip"
    180             android:layout_marginStart="16dip"
    181             android:alpha="0.87"
    182             android:background="?android:selectableItemBackground"
    183             android:contentDescription="@string/stop_record"
    184             android:enabled="false"
    185             android:fontFamily="sans-serif-medium"
    186             android:text="@string/stop_record"
    187             android:textColor="#000000"
    188             android:textSize="14sp" />
    189     </LinearLayout>
    190 
    191 </LinearLayout>
    192