diff options
author | Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org> | 2013-07-24 19:56:59 +0530 |
---|---|---|
committer | Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org> | 2013-07-25 15:33:41 +0530 |
commit | 56262fbb457c9277727a36541c1ab54c32a76d68 (patch) | |
tree | eaece285197a59100e5b1e4067f14781f56e875b /fmapp2/res/layout | |
parent | b6e25e2179d777664baa39b854f19437acba03e7 (diff) | |
download | android_hardware_qcom_fm-56262fbb457c9277727a36541c1ab54c32a76d68.tar.gz android_hardware_qcom_fm-56262fbb457c9277727a36541c1ab54c32a76d68.tar.bz2 android_hardware_qcom_fm-56262fbb457c9277727a36541c1ab54c32a76d68.zip |
fm: Move FM2 APP source tree to vendor project
- FM2 APP source moved from packages/apps to vendor/qcom-opensource/
repository.
- Remove intent mechanism to receive meta data.
- Use remote service connection mechanism to receive meta data.
Change-Id: I74ba25b259ff93097db88644f4be9e5bae20131a
Diffstat (limited to 'fmapp2/res/layout')
-rw-r--r-- | fmapp2/res/layout/alert_dialog_list.xml | 39 | ||||
-rw-r--r-- | fmapp2/res/layout/alert_dialog_text_entry.xml | 50 | ||||
-rw-r--r-- | fmapp2/res/layout/delete_dialog.xml | 67 | ||||
-rw-r--r-- | fmapp2/res/layout/fmradio.xml | 202 | ||||
-rw-r--r-- | fmapp2/res/layout/fmstats.xml | 107 | ||||
-rw-r--r-- | fmapp2/res/layout/fmtags.xml | 40 | ||||
-rw-r--r-- | fmapp2/res/layout/fmtransmitter.xml | 223 | ||||
-rw-r--r-- | fmapp2/res/layout/frequency_picker.xml | 46 | ||||
-rw-r--r-- | fmapp2/res/layout/frequency_picker_dialog.xml | 27 | ||||
-rw-r--r-- | fmapp2/res/layout/navigate.xml | 158 | ||||
-rw-r--r-- | fmapp2/res/layout/rename_dialog.xml | 67 | ||||
-rw-r--r-- | fmapp2/res/layout/station_info.xml | 192 | ||||
-rw-r--r-- | fmapp2/res/layout/station_list.xml | 43 | ||||
-rw-r--r-- | fmapp2/res/layout/station_list_item.xml | 76 | ||||
-rw-r--r-- | fmapp2/res/layout/statusbar.xml | 56 |
15 files changed, 1393 insertions, 0 deletions
diff --git a/fmapp2/res/layout/alert_dialog_list.xml b/fmapp2/res/layout/alert_dialog_list.xml new file mode 100644 index 0000000..8b9ae52 --- /dev/null +++ b/fmapp2/res/layout/alert_dialog_list.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2013, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ListView android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + </ListView> + +</LinearLayout> diff --git a/fmapp2/res/layout/alert_dialog_text_entry.xml b/fmapp2/res/layout/alert_dialog_text_entry.xml new file mode 100644 index 0000000..a54fc00 --- /dev/null +++ b/fmapp2/res/layout/alert_dialog_text_entry.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <EditText + android:id="@+id/list_edit" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" + android:scrollHorizontally="true" + android:hint="Enter a name" + android:singleLine="true" + android:inputType="text" + android:autoText="false" + android:capitalize="none" + android:gravity="fill_horizontal" + android:textAppearance="?android:attr/textAppearanceMedium" + android:saveEnabled="false"/> + +</LinearLayout> diff --git a/fmapp2/res/layout/delete_dialog.xml b/fmapp2/res/layout/delete_dialog.xml new file mode 100644 index 0000000..44df762 --- /dev/null +++ b/fmapp2/res/layout/delete_dialog.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView android:id="@+id/prompt" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" + android:drawableLeft="@android:drawable/ic_dialog_alert" + android:drawablePadding="8dp"> + </TextView> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="6dp"> + + <Button android:id="@+id/delete" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:text="@string/button_delete" + android:layout_gravity="center_horizontal" + android:layout_alignParentLeft="true" /> + + <Button android:id="@+id/cancel" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:text="@string/button_cancel" + android:layout_alignParentRight="true" /> + + </RelativeLayout> + +</LinearLayout> diff --git a/fmapp2/res/layout/fmradio.xml b/fmapp2/res/layout/fmradio.xml new file mode 100644 index 0000000..4aef544 --- /dev/null +++ b/fmapp2/res/layout/fmradio.xml @@ -0,0 +1,202 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/fmradio" + android:background="@drawable/bg" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <RelativeLayout android:id="@+id/layout_on_off" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginTop="3dp" + android:layout_alignParentTop="true"> + + <ImageView android:id="@+id/btn_onoff" + android:src="@drawable/btn_onoff" + android:layout_alignParentLeft="true" + android:layout_marginLeft="15dp" + android:clickable="true" + android:focusable="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <TextView android:id="@+id/sleep_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/count_down" + android:layout_toRightOf="@+id/btn_onoff" + android:textSize="14sp" + android:layout_marginLeft="5dp" + android:textStyle="bold" + android:visibility="invisible" + android:text="@string/default_sleep" /> + + <TextView android:id="@+id/prog_service_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:layout_marginLeft="2dp" + android:layout_marginRight="2dp" + android:layout_toLeftOf="@+id/btn_silent" + android:layout_toRightOf="@+id/sleep_msg_tv" + android:textSize="16sp" + android:singleLine="true" + android:textStyle="bold" + android:text="@string/prog_service_string"/> + + <ImageView android:id="@+id/btn_silent" + android:src="@drawable/ic_silent_mode_off" + android:layout_toLeftOf="@+id/btn_speaker_earphone" + android:layout_width="wrap_content" + android:layout_marginRight="10dp" + android:clickable="true" + android:focusable="true" + android:layout_height="wrap_content" /> + + <ImageView android:id="@+id/btn_speaker_earphone" + android:src="@drawable/btn_earphone" + android:layout_alignParentRight="true" + android:layout_marginRight="15dp" + android:clickable="true" + android:focusable="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </RelativeLayout> + + <LinearLayout android:id="@+id/stationinfo_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginTop="5dp" + android:layout_below="@+id/layout_on_off"> + + <!-- This included layout contains Station Information to display --> + <include layout="@layout/station_info" /> + + </LinearLayout> + + <com.caf.fmradio.HorizontalNumberPicker + android:id="@+id/fm_picker" + android:layout_width="fill_parent" + android:layout_height="200dp" + android:layout_marginBottom="50dp" + android:layout_below="@+id/stationinfo_layout"/> + + <HorizontalScrollView + android:layout_width="fill_parent" + android:layout_height="60dp" + android:layout_alignParentBottom="true" + android:scrollbars="none"> + + <LinearLayout android:id="@+id/favorite_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal"> + + <Button android:id="@+id/presets_button_1" + style="@style/ButtonStripLeft" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_2" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_3" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_4" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_5" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_6" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_7" + style="@style/ButtonStripRight" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + </LinearLayout> + + </HorizontalScrollView> + +</RelativeLayout> diff --git a/fmapp2/res/layout/fmstats.xml b/fmapp2/res/layout/fmstats.xml new file mode 100644 index 0000000..d9306d5 --- /dev/null +++ b/fmapp2/res/layout/fmstats.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2011, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:scrollbars="vertical" + android:layout_height="fill_parent" + android:layout_width="fill_parent"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <Spinner + android:id="@+id/spinner" + android:layout_width="fill_parent" + android:layout_height="75dp" + android:prompt="@string/test_prompt" + android:textSize="25sp"/> + + <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="100dp"> + + <Button + android:id= "@+id/Runbutton" + android:text="@string/test_run" + android:layout_width="wrap_content" + android:layout_height="100dp" + android:textSize="25sp" + android:visibility="gone"/> + + <ProgressBar android:id="@+id/progressbar" + android:layout_width="100dp" + android:layout_height="100dp" + android:layout_toRightOf="@id/Runbutton" + android:visibility="gone"/> + + <TextView + android:id="@+id/label" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textSize="15sp" + android:text="@string/enter_rssi" + android:visibility="gone"/> + + <EditText + android:id="@+id/txtbox1" + android:layout_width="100dp" + android:layout_height="50dp" + android:text="@string/type_rd" + android:textSize="15sp" + android:layout_alignParentRight="true" + android:visibility="gone"/> + + <Button + android:id= "@+id/Setbutton" + android:text="@string/set_rmmsi_delta" + android:layout_width="wrap_content" + android:layout_height="100dp" + android:layout_below="@id/txtbox1" + android:textSize="15sp" + android:visibility="gone"/> + + </RelativeLayout> + + <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/maintable" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:scrollbars="vertical"> + + <TableRow + android:id="@+id/mainrow"> + </TableRow> + + </TableLayout> + + </LinearLayout> + +</ScrollView> diff --git a/fmapp2/res/layout/fmtags.xml b/fmapp2/res/layout/fmtags.xml new file mode 100644 index 0000000..352320f --- /dev/null +++ b/fmapp2/res/layout/fmtags.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="fill_parent" + android:layout_width="fill_parent"> + + <ListView + android:id="@+id/TagListView" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textSize="30sp"/> + +</RelativeLayout> diff --git a/fmapp2/res/layout/fmtransmitter.xml b/fmapp2/res/layout/fmtransmitter.xml new file mode 100644 index 0000000..b2ba8e5 --- /dev/null +++ b/fmapp2/res/layout/fmtransmitter.xml @@ -0,0 +1,223 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/fmtransmitter" + android:background="@drawable/bg" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <RelativeLayout android:id="@+id/on_off_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dp" + android:layout_marginBottom="2dp" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" > + + <ImageView android:id="@+id/btn_onoff" + android:src="@drawable/btn_onoff" + android:layout_alignParentLeft="true" + android:layout_marginLeft="15dp" + android:clickable="true" + android:focusable="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <TextView android:id="@+id/transmit_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="15dp" + android:layout_centerInParent="true" + android:layout_alignWithParentIfMissing="true" + android:text="@string/transmit_msg_string"/> + + </RelativeLayout> + + <RelativeLayout android:id="@+id/stationinfo_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/on_off_layout" + android:layout_marginTop="150dp" > + + <RelativeLayout android:id="@+id/frequency_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <ImageView android:id="@+id/btn_back" + android:clickable="true" + android:focusable="true" + android:layout_alignParentLeft="true" + android:paddingLeft="15dp" + android:visibility="visible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/btn_arrow_left"/> + + <TextView android:id="@+id/prog_frequency_tv" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textSize="25dp" + android:layout_centerInParent="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/frequency_string"/> + + <ImageView android:id="@+id/btn_forward" + android:clickable="true" + android:focusable="true" + android:paddingRight="15dp" + android:layout_alignParentRight="true" + android:visibility="visible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/btn_arrow_right"/> + + </RelativeLayout> + + <!-- Station Radio Text information display --> + <RelativeLayout android:id="@+id/radio_text_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/frequency_layout"> + + <TextView android:id="@+id/radio_text_tv" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="20dp" + android:singleLine="true" + android:textStyle="bold" + android:paddingLeft="2dp" + android:paddingRight="2dp" + android:paddingBottom="5dp" + android:layout_marginTop="20dp" + android:layout_marginBottom="10dp" + android:layout_centerInParent="true" + android:text="@string/radio_text_string"/> + + </RelativeLayout> + + </RelativeLayout> + + <com.caf.fmradio.HorizontalNumberPicker + android:id="@+id/fm_picker" + android:layout_width="fill_parent" + android:layout_height="200dp" + android:layout_marginBottom="50dp" + android:layout_below="@id/stationinfo_layout"/> + + <HorizontalScrollView + android:layout_width="fill_parent" + android:layout_height="60dp" + android:layout_alignParentBottom="true" + android:scrollbars="none"> + + <LinearLayout android:id="@+id/favorite_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal"> + + <Button android:id="@+id/presets_button_1" + style="@style/ButtonStripLeft" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_2" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_3" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_4" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_5" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_6" + style="@style/ButtonStripMiddle" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + <Button android:id="@+id/presets_button_7" + style="@style/ButtonStripRight" + android:text="@string/add_station" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:layout_width="80dp" + android:layout_weight="1" + android:layout_height="wrap_content"/> + + </LinearLayout> + + </HorizontalScrollView> + +</RelativeLayout> + diff --git a/fmapp2/res/layout/frequency_picker.xml b/fmapp2/res/layout/frequency_picker.xml new file mode 100644 index 0000000..cef47f9 --- /dev/null +++ b/fmapp2/res/layout/frequency_picker.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** Copyright (c) 2013, The Linux Foundation. All rights reserved. +** Not a Contribution. +** +** Copyright 2007, 2012, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <!-- MHz --> + <android.widget.NumberPicker + android:id="@+id/mhz" + android:layout_width="80dp" + android:layout_height="wrap_content" + android:layout_marginLeft="1dp" + android:layout_marginRight="1dp" + android:focusable="true" + android:focusableInTouchMode="true" /> + + <!-- KHz --> + <android.widget.NumberPicker + android:id="@+id/khz" + android:layout_width="80dp" + android:layout_height="wrap_content" + android:layout_marginLeft="1dp" + android:layout_marginRight="1dp" + android:focusable="true" + android:focusableInTouchMode="true" + /> +</LinearLayout> diff --git a/fmapp2/res/layout/frequency_picker_dialog.xml b/fmapp2/res/layout/frequency_picker_dialog.xml new file mode 100644 index 0000000..3d95123 --- /dev/null +++ b/fmapp2/res/layout/frequency_picker_dialog.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** Copyright (c) 2013, The Linux Foundation. All rights reserved. +** Not a Contribution. +** +** Copyright 2007, 2012, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<com.caf.utils.FrequencyPicker xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/frequencyPicker" + android:padding="5dp" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> diff --git a/fmapp2/res/layout/navigate.xml b/fmapp2/res/layout/navigate.xml new file mode 100644 index 0000000..5e6b665 --- /dev/null +++ b/fmapp2/res/layout/navigate.xml @@ -0,0 +1,158 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + + <RelativeLayout android:id="@+id/message_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="5dip" + android:orientation="horizontal"> + + <TextView android:id="@+id/record_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:textSize="14dip" + android:textStyle="bold" + android:text="@string/default_record"/> + + <Button android:id="@+id/btn_presets_list" + android:text="@string/default_preset_list_name" + android:textStyle="bold" + android:singleLine="true" + android:layout_centerHorizontal="true" + android:layout_alignParentTop="true" + android:layout_gravity="center" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:layout_width="140dip" + android:layout_height="45dip" /> + + <TextView android:id="@+id/sleep_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@+id/btn_presets_list" + android:textSize="14dip" + android:textStyle="bold" + android:text="@string/default_sleep" /> + + </RelativeLayout> + + <LinearLayout android:id="@+id/presets_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:orientation="vertical"> + + <!-- Upper Presets --> + <LinearLayout android:id="@+id/presets_upper_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_gravity="center" + android:layout_marginBottom="5dip" + android:gravity="center_horizontal"> + + <Button android:id="@+id/presets_button_1" + android:text="@string/default_station" + android:layout_marginLeft="10dip" + android:layout_width="90dip" + android:layout_height="55dip" /> + + <Button android:id="@+id/presets_button_2" + android:text="@string/default_station" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:layout_width="90dip" + android:layout_height="55dip" /> + + <Button android:id="@+id/presets_button_3" + android:text="@string/default_station" + android:layout_marginRight="10dip" + android:layout_width="90dip" + android:layout_height="55dip" + android:visibility="visible" /> + + </LinearLayout> + + <!-- Lower Presets --> + <LinearLayout android:id="@+id/presets_lower_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_gravity="center" + android:layout_marginBottom="5dip" + android:gravity="center_horizontal"> + + <Button android:id="@+id/presets_button_4" + android:text="@string/default_blank" + android:layout_marginLeft="10dip" + android:layout_width="90dip" + android:layout_height="55dip" /> + + <Button android:id="@+id/presets_button_5" + android:text="@string/default_blank" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:layout_width="90dip" + android:layout_height="55dip" /> + + <ImageButton android:id="@+id/btn_preset_page" + android:src="@drawable/preset_page_button" + android:layout_marginRight="10dip" + android:layout_width="90dip" + android:layout_height="55dip" + android:visibility="visible" /> + + </LinearLayout> + + </LinearLayout> + + <LinearLayout android:id="@+id/scanning_stoplayout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:gravity="center"> + + <Button android:id="@+id/btn_scanning_stop" + android:clickable="true" + android:text="@string/stop_scanning" + android:singleLine="true" + android:padding="20dip" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + +</merge> diff --git a/fmapp2/res/layout/rename_dialog.xml b/fmapp2/res/layout/rename_dialog.xml new file mode 100644 index 0000000..2374c9c --- /dev/null +++ b/fmapp2/res/layout/rename_dialog.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/rename" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="10dp"> + + <EditText android:id="@+id/name" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:inputType="text" + android:textColor="#FFF" + android:singleLine="true" + android:maxLength="16"> + <requestFocus /> + </EditText> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="6dp" > + + <Button android:id="@+id/save" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:text="@string/button_ok" + android:layout_alignParentLeft="true" /> + + <Button android:id="@+id/cancel" + android:layout_width="120dp" + android:layout_height="wrap_content" + android:text="@string/button_cancel" + android:layout_alignParentRight="true" /> + + </RelativeLayout> + +</LinearLayout> diff --git a/fmapp2/res/layout/station_info.xml b/fmapp2/res/layout/station_info.xml new file mode 100644 index 0000000..fc7d62e --- /dev/null +++ b/fmapp2/res/layout/station_info.xml @@ -0,0 +1,192 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2009, 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of The Linux Foundation nor + * the names of its contributors may be used to endorse or promote + * products derived from this software without specific prior written + * permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + + <LinearLayout android:id="@+id/station_info" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0" + android:orientation="vertical" + android:gravity="top"> + + <RelativeLayout android:id="@+id/top_most" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <ImageView android:id="@+id/signal_level" + android:src="@drawable/ic_signal_2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="5dp" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:visibility="gone" /> + + <TextView android:id="@+id/sleep_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/count_down" + android:textSize="14sp" + android:layout_marginLeft="25dp" + android:textStyle="bold" + android:visibility="invisible" + android:text="@string/default_sleep" /> + + <TextView android:id="@+id/record_msg_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/recorder_start" + android:layout_marginLeft="20dp" + android:textSize="14sp" + android:textStyle="bold" + android:clickable="true" + android:visibility="invisible" + android:text="@string/default_record"/> + + <TextView android:id="@+id/stereo_text_tv" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="16dp" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@id/signal_level" + android:textSize="13sp" + android:text="@string/default_audio"/> + + </RelativeLayout> + + <LinearLayout android:id="@+id/station_frequency_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingTop="5dp" + android:paddingBottom="5dp" + android:layout_alignWithParentIfMissing="true" + android:gravity="center"> + + <TextView android:id="@+id/call_sign_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:paddingTop="2dp" + android:paddingRight="2dp" + android:paddingBottom="2dp" + android:paddingLeft="2dp" + android:text="@string/station_id_string" /> + + <TextView android:id="@+id/pty_tv" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:paddingTop="2dp" + android:paddingRight="2dp" + android:paddingBottom="2dp" + android:paddingLeft="2dp" + android:text="@string/pty_string" /> + + </LinearLayout> + + <RelativeLayout android:id="@+id/second_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dp" + android:layout_marginBottom="2dp" + android:layout_marginLeft="2dp" + android:layout_marginRight="2dp"> + + <TextView android:id="@+id/prog_frequency_tv" + android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="25dp" + android:gravity="center" + android:layout_toLeftOf="@+id/btn_forward" + android:layout_toRightOf="@+id/btn_back" + android:text="@string/frequency_string"/> + + <ImageView android:id="@+id/btn_back" + android:clickable="true" + android:focusable="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="15dp" + android:layout_alignParentLeft="true" + android:visibility="visible" + android:layout_alignWithParentIfMissing="true" + android:src="@drawable/btn_arrow_left"/> + + <ImageView android:id="@+id/btn_forward" + android:clickable="true" + android:focusable="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="15dp" + android:layout_alignParentRight="true" + android:visibility="visible" + android:layout_alignWithParentIfMissing="true" + android:src="@drawable/btn_arrow_right"/> + + </RelativeLayout> + + <!-- Station Radio Text information display --> + <TextView android:id="@+id/radio_text_tv" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:textStyle="bold" + android:paddingLeft="2dp" + android:paddingRight="2dp" + android:paddingBottom="5dp" + android:paddingTop="20dp" + android:gravity="center_horizontal" + android:text="@string/radio_text_string"/> + + <TextView android:id="@+id/eradio_text_tv" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="15sp" + android:singleLine="true" + android:textStyle="bold" + android:paddingLeft="2dp" + android:paddingRight="2dp" + android:paddingBottom="5dp" + android:gravity="center_horizontal" + android:text="@string/eradio_text_string"/> + + </LinearLayout> + +</merge> diff --git a/fmapp2/res/layout/station_list.xml b/fmapp2/res/layout/station_list.xml new file mode 100644 index 0000000..18d31f0 --- /dev/null +++ b/fmapp2/res/layout/station_list.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <!--Change layout_height value "wrap_content" to "fill_parent" can dispaly last item dividing line --> + <ListView android:id="@+id/station_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + </ListView> + +</LinearLayout> diff --git a/fmapp2/res/layout/station_list_item.xml b/fmapp2/res/layout/station_list_item.xml new file mode 100644 index 0000000..40c05d5 --- /dev/null +++ b/fmapp2/res/layout/station_list_item.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/item" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <TableLayout + android:id="@+id/TableLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:stretchColumns="1"> + + <TableRow> + <TextView + android:id="@+id/fixName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="30dp" + android:paddingTop="15dp" + android:text="@string/station_name" /> + + <TextView + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" /> + + </TableRow> + <TableRow > + + <TextView + android:id="@+id/freq" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="30dp" + android:paddingBottom="15dp" + android:textSize="20sp" + android:layout_span="2" /> + + </TableRow> + + </TableLayout> + +</LinearLayout> diff --git a/fmapp2/res/layout/statusbar.xml b/fmapp2/res/layout/statusbar.xml new file mode 100644 index 0000000..677ed74 --- /dev/null +++ b/fmapp2/res/layout/statusbar.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal"> + + <ImageView android:id="@+id/icon" + android:layout_gravity="center_vertical" + android:paddingLeft="10dp" + android:paddingRight="10dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </ImageView> + + <TextView android:id="@+id/frequency" + android:textAppearance="?android:attr/textAppearanceMediumInverse" + android:textColor="#FFFFFFFF" + android:focusable="true" + android:ellipsize="marquee" + android:singleLine="true" + android:layout_gravity="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + +</LinearLayout> |