aboutsummaryrefslogtreecommitdiff
path: root/MediaTek/FmRadio/res/layout-sw1024dp-land/main.xml
blob: b0c24496ff177810380a0516d3db7d57e506ddf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright Statement:

  This software/firmware and related documentation ("MediaTek Software") are
  protected under relevant copyright laws. The information contained herein is
  confidential and proprietary to MediaTek Inc. and/or its licensors. Without
  the prior written permission of MediaTek inc. and/or its licensors, any
  reproduction, modification, use or disclosure of MediaTek Software, and
  information contained herein, in whole or in part, shall be strictly
  prohibited.

  MediaTek Inc. (C) 2011-2014. All rights reserved.

  BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER
  ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
  WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
  WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
  NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH
  RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY,
  INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES
  TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO.
  RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO
  OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK
  SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE
  RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
  STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S
  ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE
  RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE
  MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE
  CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.

  The following software/firmware and/or related documentation ("MediaTek
  Software") have been modified by MediaTek Inc. All revisions are subject to
  any receiver's applicable license agreements with MediaTek Inc.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/main_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <!-- middle part starts -->

    <RelativeLayout
        android:id="@+id/rl_middlepart"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/bottombar_parent">

        <TextView
            android:id="@+id/station_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/station_value"
            android:gravity="center"
            android:singleLine="true"
            android:textSize="20dip"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/text_fm"
            android:layout_width="80dip"
            android:layout_height="wrap_content"
            android:layout_below="@+id/station_name"
            android:layout_toLeftOf="@+id/station_value"
            android:gravity="center_horizontal"
            android:textSize="30dip"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/station_value"
            android:layout_width="240dip"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:gravity="center_horizontal"
            android:textSize="80dip"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/text_mhz"
            android:layout_width="80dip"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/station_value"
            android:layout_below="@+id/station_name"
            android:layout_toRightOf="@+id/station_value"
            android:gravity="center_horizontal"
            android:textSize="30dip"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/text_rds"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/station_value"
            android:ellipsize="marquee"
            android:gravity="center_horizontal"
            android:marqueeRepeatLimit="marquee_forever"
            android:singleLine="true"
            android:textColor="#BBBBBB"
            android:textSize="20dip"
            android:textStyle="bold" />

        <ImageButton
            android:id="@+id/button_add_to_favorite"
            android:layout_marginLeft="15dip"
            android:layout_width="50dip"
            android:layout_height="42dip"
            android:layout_alignTop="@+id/text_mhz"
            android:layout_toRightOf="@+id/station_value"
            android:adjustViewBounds="true"
            style="?android:attr/buttonBarButtonStyle"
            android:src="@drawable/btn_fm_favorite_off"
            android:enabled="false" />
    </RelativeLayout>

    <!-- middle part ends -->

    <LinearLayout
        android:id="@+id/bottombar_parent"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true" >

        <LinearLayout
            android:id="@+id/bottom_bar"
            android:layout_width="match_parent"
            android:layout_height="60dip"
            android:layout_alignParentBottom="true"
            android:background="@drawable/bottom_bar"
            android:gravity="center_vertical"
            android:splitMotionEvents="false"
            android:weightSum="4" >

            <!-- Must set the background to "btn_pressed" which is the same with what is set in source code. -->
            <!-- Because if not set it, the button size will change when clicked. -->

            <ImageButton
                android:id="@+id/button_prevstation"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                style="?android:attr/buttonBarButtonStyle"
                android:layout_weight="1"
                android:adjustViewBounds="true"
                android:src="@drawable/btn_fm_previous"
                android:enabled="false"/>

            <ImageButton
                android:id="@+id/button_decrease"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:adjustViewBounds="true"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_decrease_frequency"
                android:enabled="false" />

            <ImageButton
                android:id="@+id/button_increase"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:adjustViewBounds="true"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_increase_frequency"
                android:enabled="false" />

            <ImageButton
                android:id="@+id/button_nextstation"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:adjustViewBounds="true"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_next"
                android:enabled="false" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/bottom_bar_recorder"
            android:layout_width="match_parent"
            android:layout_height="60dip"
            android:layout_alignParentBottom="true"
            android:background="@drawable/bottom_bar"
            android:gravity="center_vertical"
            android:visibility="gone"
            android:splitMotionEvents="false"
            android:weightSum="3" >

            <!-- Must set the background to "btn_pressed" which is the same with what is set in source code. -->
            <!-- Because if not set it, the button size will change when clicked. -->

            <ImageButton
                android:id="@+id/btn_record"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_record"
                android:enabled="false"/>

            <ImageButton
                android:id="@+id/btn_stop"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_rec_stop"
                android:enabled="false"/>

            <ImageButton
                android:id="@+id/btn_playback"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_weight="1"
                style="?android:attr/buttonBarButtonStyle"
                android:src="@drawable/btn_fm_rec_play"
                android:enabled="false"/>
        </LinearLayout>
    </LinearLayout>

    <RelativeLayout
        android:id="@+id/rl_recinfo"
        android:layout_width="match_parent"
        android:layout_height="48dip"
        android:layout_above="@id/bottombar_parent"
        android:background="@drawable/bg_rec_infobar"
        android:gravity="center_vertical"
        android:paddingLeft="5dip"
        android:paddingRight="5dip"
        android:visibility="gone" >

        <TextView
            android:id="@+id/txtRecInfoLeft"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_toLeftOf="@+id/txtRecInfoRight"
            android:ellipsize="marquee"
            android:singleLine="true"
            android:textColor="#ffffff"
            android:textSize="20sp"
            android:textStyle="normal" />

        <TextView
            android:id="@+id/txtRecInfoRight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginLeft="20dip"
            android:textColor="#ffffff"
            android:textSize="20sp"
            android:textStyle="normal" />
    </RelativeLayout>

    <LinearLayout
        android:id="@+id/anim_background"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/rl_recinfo" >

        <ImageView
            android:id="@+id/iv_anim"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/fm_anim"
            android:visibility="invisible" />
    </LinearLayout>

</RelativeLayout>