blob: 5e65620570dd057da93b0c01f47367daa5d7c51b [file] [log] [blame]
Venkateshwarlu Domakonda56262fb2013-07-24 19:56:59 +05301<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (c) 2009, The Linux Foundation. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of The Linux Foundation nor
13 * the names of its contributors may be used to endorse or promote
14 * products derived from this software without specific prior written
15 * permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28-->
29<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
30 android:orientation="vertical"
31 android:layout_width="fill_parent"
32 android:layout_height="fill_parent">
33
34 <!--
35 This LinearLayout contains Station Information display and the
36 function buttons
37 -->
38 <LinearLayout android:layout_width="fill_parent"
39 android:layout_height="wrap_content"
40 android:layout_weight="1"
41 android:orientation="horizontal">
42
43 <LinearLayout android:background="@drawable/station_border"
44 android:layout_width="fill_parent"
45 android:layout_height="wrap_content"
46 android:layout_weight="1"
47 android:orientation="vertical"
48 android:gravity="top|fill_vertical">
49
50 <RelativeLayout android:id="@+id/station_layout"
51 android:layout_width="fill_parent"
52 android:layout_height="fill_parent">
53
54 <!-- This included layout contains Station Information to display -->
55 <LinearLayout android:id="@+id/stationinfo_layout"
56 android:layout_width="fill_parent"
57 android:layout_height="wrap_content"
58 android:layout_marginTop="5px"
59 android:layout_marginLeft="5px"
60 android:layout_marginRight="5px"
61 android:orientation="vertical"
62 android:gravity="fill_vertical">
63
64 <LinearLayout android:id="@+id/station_frequency_row"
65 android:layout_width="fill_parent"
66 android:layout_height="wrap_content"
67 android:orientation="vertical"
68 android:paddingTop="25px"
69 android:paddingBottom="25px"
70 android:gravity="fill_vertical|center">
71
72 <TextView android:id="@+id/transmit_msg_tv"
73 android:textAppearance="?android:attr/textAppearanceSmall"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:textSize="15px"
77 android:layout_centerHorizontal="true"
78 android:layout_alignWithParentIfMissing="true"
79 android:text="@string/transmit_msg_string" />
80
81 <TextView android:id="@+id/prog_frequency_tv"
82 android:textAppearance="?android:attr/textAppearanceLarge"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:layout_centerHorizontal="true"
86 android:layout_alignWithParentIfMissing="true"
87 android:layout_alignParentTop="true"
88 android:layout_alignParentLeft="true"
89 android:textSize="56px"
90 android:text="@string/frequency_string" />
91 </LinearLayout>
92
93 <!-- Station Radio Text information display -->
94 <TextView android:id="@+id/radio_text_tv"
95 android:layout_width="fill_parent"
96 android:layout_height="wrap_content"
97 android:textAppearance="?android:attr/textAppearanceMedium"
98 android:textSize="16sp"
99 android:singleLine="true"
100 android:textStyle="bold"
101 android:paddingBottom="2px"
102 android:paddingLeft="5px"
103 android:paddingRight="5px"
104 android:gravity="center_horizontal"
105 android:text="@string/radio_text_string" />
106 <!-- android:gravity="center_horizontal" -->
107 </LinearLayout>
108
109 <ImageView android:id="@+id/btn_back"
110 android:clickable="true"
111 android:focusable="true"
112 android:layout_width="wrap_content"
113 android:layout_height="fill_parent"
114 android:paddingLeft="10px"
115 android:paddingRight="2px"
116 android:layout_alignParentLeft="true"
117 android:layout_centerVertical="true"
118 android:visibility="visible"
119 android:src="@drawable/btn_arrow_left" />
120
121 <ImageView android:id="@+id/btn_forward"
122 android:clickable="true"
123 android:focusable="true"
124 android:layout_width="wrap_content"
125 android:layout_height="fill_parent"
126 android:paddingLeft="2px"
127 android:paddingRight="10px"
128 android:layout_alignParentRight="true"
129 android:layout_centerVertical="true"
130 android:visibility="visible"
131 android:src="@drawable/btn_arrow_right" />
132
133 </RelativeLayout>
134 </LinearLayout>
135 <LinearLayout android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:orientation="vertical"
138 android:layout_gravity="center"
139 android:layout_marginLeft="5px"
140 android:layout_marginRight="5px"
141 android:layout_marginBottom="2px">
142 <!-- On-Off button -->
143 <ImageButton android:id="@+id/btn_onoff"
144 android:layout_width="75px"
145 android:layout_height="75px"
146 android:src="@drawable/ic_btn_onoff"
147 android:layout_marginTop="15px"
148 android:layout_marginBottom="15px" />
149 </LinearLayout>
150
151 </LinearLayout>
152 <View
153 android:layout_width="fill_parent"
154 android:layout_height="1px"
155 android:background="#ffffffff" />
156
157 <!--
158 Layout contains the Next/Previous Presets and Tune buttons and status
159 msg text
160 -->
161 <LinearLayout android:id="@+id/presets_layout"
162 android:layout_width="fill_parent"
163 android:layout_height="wrap_content"
164 android:orientation="horizontal"
165 android:layout_weight="0"
166 android:layout_gravity="center"
167 android:layout_marginTop="15dip"
168 android:layout_marginBottom="10dip"
169 android:gravity="center_horizontal">
170
171 <Button android:id="@+id/presets_button_1"
172 android:text="@string/default_station"
173 android:layout_marginLeft="20dip"
174 android:layout_marginRight="20dip"
175 android:textSize="24sp"
176 android:singleLine="true"
177 android:layout_width="110dip"
178 android:layout_height="65dip" />
179
180 <Button android:id="@+id/presets_button_2"
181 android:text="@string/default_station"
182 android:layout_marginRight="20dip"
183 android:textSize="24sp"
184 android:singleLine="true"
185 android:layout_width="110dip"
186 android:layout_height="65dip" />
187
188 <Button android:id="@+id/presets_button_3"
189 android:text="@string/default_station"
190 android:layout_marginRight="20dip"
191 android:textSize="24sp"
192 android:singleLine="true"
193 android:layout_width="110dip"
194 android:layout_height="65dip" />
195
196 <Button android:id="@+id/presets_button_4"
197 android:text="@string/default_blank"
198 android:layout_marginRight="20dip"
199 android:textSize="24sp"
200 android:singleLine="true"
201 android:layout_width="110dip"
202 android:layout_height="65dip" />
203
204 <Button android:id="@+id/presets_button_5"
205 android:text="@string/default_blank"
206 android:layout_marginRight="20dip"
207 android:textSize="24sp"
208 android:singleLine="true"
209 android:layout_width="110dip"
210 android:layout_height="65dip" />
211
212 <Button android:id="@+id/presets_button_6"
213 android:text="@string/default_blank"
214 android:layout_marginRight="20dip"
215 android:textSize="24sp"
216 android:singleLine="true"
217 android:layout_width="110dip"
218 android:layout_height="65dip"/>
219
220 </LinearLayout>
221
222
223</LinearLayout>