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_fm" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" > 23 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:orientation="vertical" > 29 30 <RelativeLayout 31 android:id="@+id/actionbar_parent" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" > 34 35 <Toolbar 36 android:id="@+id/toolbar" 37 android:layout_width="wrap_content" 38 android:layout_height="?android:attr/actionBarSize" 39 android:layout_alignParentRight="true" 40 android:layout_alignParentTop="true" /> 41 42 <TextView 43 android:id="@+id/text_fm" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_alignParentLeft="true" 47 android:layout_alignParentTop="true" 48 android:fontFamily="sans-serif" 49 android:paddingLeft="16dip" 50 android:paddingTop="56dip" 51 android:text="@string/fm_symbol" 52 android:textColor="@color/text_fm_color" 53 android:textSize="@dimen/text_fm_size" /> 54 55 <TextView 56 android:id="@+id/station_value" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_alignParentLeft="true" 60 android:layout_alignParentTop="true" 61 android:alpha="0.87" 62 android:fontFamily="sans-serif-light" 63 android:gravity="left" 64 android:paddingLeft="16dip" 65 android:paddingTop="64dip" 66 android:textColor="@color/white_color" 67 android:textSize="@dimen/station_value_size" /> 68 69 <TextView 70 android:id="@+id/station_name" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_alignParentLeft="true" 74 android:layout_alignParentTop="true" 75 android:layout_alignWithParentIfMissing="true" 76 android:alpha="0.87" 77 android:gravity="left" 78 android:paddingLeft="16dip" 79 android:singleLine="true" 80 android:textColor="@color/white_color" 81 android:textSize="@dimen/station_name_size" /> 82 83 <TextView 84 android:id="@+id/station_rds" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:layout_alignParentTop="true" 88 android:layout_alignParentLeft="true" 89 android:alpha="0.87" 90 android:ellipsize="marquee" 91 android:gravity="left" 92 android:marqueeRepeatLimit="marquee_forever" 93 android:paddingLeft="16dip" 94 android:singleLine="true" 95 android:textColor="@color/white_color" 96 android:textSize="@dimen/station_rds_size" /> 97 98 <LinearLayout 99 android:id="@+id/rl_imgbtnpart" 100 android:layout_width="wrap_content" 101 android:layout_height="wrap_content" 102 android:layout_alignParentTop="true" 103 android:layout_alignParentLeft="true" 104 android:layout_marginLeft="@dimen/fm_rl_imgbtnpart_margin_left" 105 android:layout_marginRight="@dimen/fm_rl_imgbtnpart_margin_right" 106 android:gravity="center" 107 android:orientation="horizontal" 108 android:splitMotionEvents="false" 109 android:weightSum="6" > 110 111 <LinearLayout 112 android:id="@+id/rl_inner_container1" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:layout_weight="1" 116 android:gravity="center" > 117 <ImageButton 118 android:id="@+id/button_prevstation" 119 android:layout_width="@dimen/fm_rl_imgbtn_size" 120 android:layout_height="@dimen/fm_rl_imgbtn_size" 121 android:adjustViewBounds="true" 122 android:background="@drawable/circle_button" 123 android:contentDescription="@string/talk_prev_station" 124 android:enabled="false" 125 android:src="@drawable/btn_fm_previous" /> 126 </LinearLayout> 127 128 <LinearLayout 129 android:id="@+id/rl_inner_container2" 130 android:layout_width="wrap_content" 131 android:layout_height="wrap_content" 132 android:layout_weight="1" 133 android:gravity="center" > 134 <ImageButton 135 android:id="@+id/button_decrease" 136 android:layout_width="@dimen/fm_rl_imgbtn_size" 137 android:layout_height="@dimen/fm_rl_imgbtn_size" 138 android:adjustViewBounds="true" 139 android:background="@drawable/circle_button" 140 android:contentDescription="@string/talk_decrease" 141 android:enabled="false" 142 android:src="@drawable/btn_fm_decrease_selector" /> 143 </LinearLayout> 144 145 <LinearLayout 146 android:id="@+id/rl_inner_container3" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:layout_weight="2" 150 android:paddingLeft="@dimen/fm_rl_imgbtn_add_to_favorite_padding_left" 151 android:paddingRight="@dimen/fm_rl_imgbtn_add_to_favorite_padding_left" 152 android:gravity="center" > 153 <ImageButton 154 android:id="@+id/button_add_to_favorite" 155 android:layout_width="@dimen/fm_rl_imgbtn_size" 156 android:layout_height="@dimen/fm_rl_imgbtn_size" 157 android:adjustViewBounds="true" 158 android:background="@drawable/circle_button" 159 android:contentDescription="@string/talk_add_favorite" 160 android:enabled="false" 161 android:src="@drawable/btn_fm_favorite_off" /> 162 </LinearLayout> 163 164 <LinearLayout 165 android:id="@+id/rl_inner_container4" 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 android:layout_weight="1" 169 android:gravity="center" > 170 <ImageButton 171 android:id="@+id/button_increase" 172 android:layout_width="@dimen/fm_rl_imgbtn_size" 173 android:layout_height="@dimen/fm_rl_imgbtn_size" 174 android:adjustViewBounds="true" 175 android:background="@drawable/circle_button" 176 android:contentDescription="@string/talk_increase" 177 android:enabled="false" 178 android:src="@drawable/btn_fm_increase_selector" /> 179 </LinearLayout> 180 181 <LinearLayout 182 android:id="@+id/rl_inner_container5" 183 android:layout_width="wrap_content" 184 android:layout_height="wrap_content" 185 android:layout_weight="1" 186 android:gravity="center" > 187 <ImageButton 188 android:id="@+id/button_nextstation" 189 android:layout_width="@dimen/fm_rl_imgbtn_size" 190 android:layout_height="@dimen/fm_rl_imgbtn_size" 191 android:adjustViewBounds="true" 192 android:background="@drawable/circle_button" 193 android:contentDescription="@string/talk_next_station" 194 android:enabled="false" 195 android:src="@drawable/btn_fm_next_selector" /> 196 </LinearLayout> 197 198 </LinearLayout> 199 </RelativeLayout> 200 </LinearLayout> 201 202</LinearLayout> 203