Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17               android:layout_width="match_parent"
     18               android:layout_height="match_parent"
     19               android:orientation="vertical" >
     20     <!--  dummy one for top area -->
     21     <LinearLayout
     22             android:layout_width="match_parent"
     23             android:layout_height="70dp"
     24             android:orientation="vertical"
     25             android:layout_weight="1" />
     26     <LinearLayout
     27             android:layout_width="match_parent"
     28             android:layout_height="wrap_content"
     29             android:orientation="horizontal"
     30             android:layout_weight="1" >
     31         <Button
     32                 android:id="@+id/button_open_radio"
     33                 android:layout_width="wrap_content"
     34                 android:layout_height="wrap_content"
     35                 android:text="@string/radio_open" />
     36         <Button
     37                 android:id="@+id/button_close_radio"
     38                 android:layout_width="wrap_content"
     39                 android:layout_height="wrap_content"
     40                 android:text="@string/radio_close" />
     41         <ToggleButton
     42                 android:id="@+id/togglebutton_mute_radio"
     43                 android:layout_width="wrap_content"
     44                 android:layout_height="wrap_content"
     45                 android:textOn="@string/radio_muted"
     46                 android:textOff="@string/radio_unmuted" />
     47     </LinearLayout>
     48     <LinearLayout
     49             android:layout_width="match_parent"
     50             android:layout_height="wrap_content"
     51             android:orientation="horizontal"
     52             android:layout_weight="1" >
     53         <Button
     54                 android:id="@+id/button_get_radio_focus"
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:text="@string/radio_get_radio_focus" />
     58         <Button
     59                 android:id="@+id/button_release_radio_focus"
     60                 android:layout_width="wrap_content"
     61                 android:layout_height="wrap_content"
     62                 android:text="@string/radio_release_radio_focus" />
     63     </LinearLayout>
     64     <LinearLayout
     65             android:layout_width="match_parent"
     66             android:layout_height="wrap_content"
     67             android:orientation="horizontal"
     68             android:layout_weight="1" >
     69         <Button
     70                 android:id="@+id/button_get_focus_in_radio"
     71                 android:layout_width="wrap_content"
     72                 android:layout_height="wrap_content"
     73                 android:text="@string/radio_get_focus" />
     74         <Button
     75                 android:id="@+id/button_release_focus_in_radio"
     76                 android:layout_width="wrap_content"
     77                 android:layout_height="wrap_content"
     78                 android:text="@string/radio_release_focus" />
     79     </LinearLayout>
     80     <LinearLayout
     81             android:layout_width="match_parent"
     82             android:layout_height="wrap_content"
     83             android:orientation="horizontal"
     84             android:layout_weight="1" >
     85         <EditText
     86                 android:id="@+id/edittext_station_frequency"
     87                 android:layout_width="wrap_content"
     88                 android:layout_height="wrap_content"
     89                 android:hint="@string/radio_enter_station_hint"
     90                 android:inputType="number" />
     91         <Button
     92                 android:id="@+id/button_radio_tune_to_station"
     93                 android:layout_width="wrap_content"
     94                 android:layout_height="wrap_content"
     95                 android:text="@string/radio_tune_to_station" />
     96         <Button
     97                 android:id="@+id/button_radio_step_up"
     98                 android:layout_width="wrap_content"
     99                 android:layout_height="wrap_content"
    100                 android:text="@string/radio_step_up" />
    101         <Button
    102                 android:id="@+id/button_radio_step_down"
    103                 android:layout_width="wrap_content"
    104                 android:layout_height="wrap_content"
    105                 android:text="@string/radio_step_down" />
    106     </LinearLayout>
    107     <LinearLayout
    108             android:layout_width="match_parent"
    109             android:layout_height="wrap_content"
    110             android:orientation="horizontal"
    111             android:layout_weight="1" >
    112         <ToggleButton
    113                 android:id="@+id/button_band_selection"
    114                 android:layout_width="wrap_content"
    115                 android:layout_height="wrap_content"
    116                 android:checked="true"
    117                 android:textOn="@string/radio_fm"
    118                 android:textOff="@string/radio_am" />
    119         <Button
    120                 android:id="@+id/button_radio_next"
    121                 android:layout_width="wrap_content"
    122                 android:layout_height="wrap_content"
    123                 android:text="@string/radio_next" />
    124         <Button
    125                 android:id="@+id/button_radio_prev"
    126                 android:layout_width="wrap_content"
    127                 android:layout_height="wrap_content"
    128                 android:text="@string/radio_prev" />
    129         <Button
    130                 android:id="@+id/button_radio_scan_cancel"
    131                 android:layout_width="wrap_content"
    132                 android:layout_height="wrap_content"
    133                 android:text="@string/radio_scan_cancel" />
    134         <Button
    135                 android:id="@+id/button_radio_get_program_info"
    136                 android:layout_width="wrap_content"
    137                 android:layout_height="wrap_content"
    138                 android:text="@string/radio_get_program_info" />
    139     </LinearLayout>
    140     <LinearLayout
    141             android:layout_width="match_parent"
    142             android:layout_height="wrap_content"
    143             android:orientation="horizontal"
    144             android:layout_weight="1" >
    145         <TextView
    146                 android:id="@+id/radio_station_info"
    147                 android:layout_marginRight="@dimen/radioInfoMargin"
    148                 android:layout_width="wrap_content"
    149                 android:layout_height="wrap_content" />
    150         <TextView
    151                 android:id="@+id/radio_channel_info"
    152                 android:layout_marginRight="@dimen/radioInfoMargin"
    153                 android:layout_width="wrap_content"
    154                 android:layout_height="wrap_content" />
    155         <TextView
    156                 android:id="@+id/radio_song_info"
    157                 android:layout_marginRight="@dimen/radioInfoMargin"
    158                 android:layout_width="wrap_content"
    159                 android:layout_height="wrap_content" />
    160         <TextView
    161                 android:id="@+id/radio_artist_info"
    162                 android:layout_width="wrap_content"
    163                 android:layout_height="wrap_content" />
    164     </LinearLayout>
    165     <LinearLayout
    166             android:layout_width="match_parent"
    167             android:layout_height="wrap_content"
    168             android:orientation="horizontal"
    169             android:layout_weight="1" >
    170         <TextView
    171                 android:id="@+id/radio_log"
    172                 android:maxLines="@integer/radio_log_lines"
    173                 android:scrollbars="vertical"
    174                 android:gravity="bottom"
    175                 android:layout_width="wrap_content"
    176                 android:layout_height="wrap_content" />
    177     </LinearLayout>
    178 
    179 </LinearLayout>
    180