diff options
author | Nick Chalko <nchalko@google.com> | 2016-08-31 16:00:31 -0700 |
---|---|---|
committer | Nick Chalko <nchalko@google.com> | 2016-09-07 05:38:33 -0700 |
commit | 65fda1eaa94968bb55d5ded10dcb0b3f37fb05f2 (patch) | |
tree | ffc8e4c5a71c130d3782bf03e674f9d77ca77f72 /usbtuner-res/values | |
parent | ad819718f80e796cf039f96537b5c8cd127c042b (diff) | |
download | TV-65fda1eaa94968bb55d5ded10dcb0b3f37fb05f2.tar.gz |
Sync to ub-tv-dev at http://ag/1415258
Bug: 30970843
Change-Id: I0aa43094d103de28956a3d9b56a594ea46a20543
Diffstat (limited to 'usbtuner-res/values')
-rw-r--r-- | usbtuner-res/values/attrs.xml | 25 | ||||
-rw-r--r-- | usbtuner-res/values/colors.xml | 30 | ||||
-rw-r--r-- | usbtuner-res/values/dimens.xml | 78 | ||||
-rw-r--r-- | usbtuner-res/values/integers.xml | 25 | ||||
-rw-r--r-- | usbtuner-res/values/strings.xml | 170 | ||||
-rw-r--r-- | usbtuner-res/values/styles.xml | 120 |
6 files changed, 448 insertions, 0 deletions
diff --git a/usbtuner-res/values/attrs.xml b/usbtuner-res/values/attrs.xml new file mode 100644 index 00000000..4249ed2f --- /dev/null +++ b/usbtuner-res/values/attrs.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources> + <declare-styleable name="utScaledLayout"> + <attr name="layout_scaleStartRow" format="float" /> + <attr name="layout_scaleEndRow" format="float" /> + <attr name="layout_scaleStartCol" format="float" /> + <attr name="layout_scaleEndCol" format="float" /> + </declare-styleable> +</resources> diff --git a/usbtuner-res/values/colors.xml b/usbtuner-res/values/colors.xml new file mode 100644 index 00000000..bbcc431f --- /dev/null +++ b/usbtuner-res/values/colors.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources> + <color name="ut_guidedstep_background">#01579B</color> + <color name="ut_guidance_title_text">#EEEEEE</color> + <color name="ut_guidance_breadcrumb_text">#EEEEEE</color> + <color name="ut_guidance_description_text">#B3EEEEEE</color> + <color name="ut_guidedactions_title_text">#EEEEEE</color> + <color name="ut_scan_title_text">#EEEEEE</color> + <color name="ut_scan_description_text">#B3EEEEEE</color> + <color name="ut_scan_progress">#EEEEEE</color> + <color name="ut_scan_progress_background">#26EEEEEE</color> + <color name="ut_scan_button_text">#EEEEEE</color> + <color name="ut_scan_channellist_background">#26EEEEEE</color> +</resources>
\ No newline at end of file diff --git a/usbtuner-res/values/dimens.xml b/usbtuner-res/values/dimens.xml new file mode 100644 index 00000000..0a09b062 --- /dev/null +++ b/usbtuner-res/values/dimens.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="ut_activity_horizontal_margin">16dp</dimen> + <dimen name="ut_activity_vertical_margin">16dp</dimen> + + <dimen name="ut_guidance_section_width">592dp</dimen> + <dimen name="ut_guidedactions_section_width">368dp</dimen> + + <dimen name="ut_guidedstep_entry_slide_from">100dp</dimen> + <dimen name="ut_guidedstep_exit_slide_to">-100dp</dimen> + + <dimen name="ut_guidance_padding_start">56dp</dimen> + <dimen name="ut_guidance_padding_end">32dp</dimen> + <dimen name="ut_guidance_padding_top">27dp</dimen> + <dimen name="ut_guidance_anchor_height">156dp</dimen> + + <dimen name="ut_guidance_title_text_size">34sp</dimen> + <dimen name="ut_guidance_breadcrumb_text_size">14sp</dimen> + <dimen name="ut_guidance_description_text_size">14sp</dimen> + <dimen name="ut_guidance_description_margin_top">8dp</dimen> + + <dimen name="ut_guidedactions_padding_start">24dp</dimen> + <dimen name="ut_guidedactions_padding_end">40dp</dimen> + <dimen name="ut_guidedactions_padding_top">27dp</dimen> + <dimen name="ut_guidedactions_padding_bottom">48dp</dimen> + <dimen name="ut_guidedactions_anchor_height">163dp</dimen> + <dimen name="ut_guidedactions_selector_height">48dp</dimen> + + <dimen name="ut_guidedactions_item_height">48dp</dimen> + <dimen name="ut_guidedactions_item_padding_start">16dp</dimen> + <dimen name="ut_guidedactions_item_padding_end">16dp</dimen> + <dimen name="ut_guidedactions_item_padding_top">14dp</dimen> + <dimen name="ut_guidedactions_item_padding_bottom">15dp</dimen> + + <dimen name="ut_scan_icon_width">80dp</dimen> + <dimen name="ut_scan_icon_height">80dp</dimen> + <dimen name="ut_scan_icon_margin_right">24dp</dimen> + + <dimen name="ut_scan_title_text_size">34sp</dimen> + <dimen name="ut_scan_title_margin_top">178dp</dimen> + + <dimen name="ut_scan_progress_width">432dp</dimen> + <dimen name="ut_scan_progress_height">4dp</dimen> + <dimen name="ut_scan_progress_margin_top">16dp</dimen> + + <dimen name="ut_scan_description_margin_top">19dp</dimen> + <dimen name="ut_scan_description_text_size">14sp</dimen> + + <dimen name="ut_scan_button_height">51dp</dimen> + <dimen name="ut_scan_button_margin_top">15dp</dimen> + <dimen name="ut_scan_button_padding">24dp</dimen> + <dimen name="ut_scan_button_text_size">16sp</dimen> + + <dimen name="ut_scan_channellist_width">312dp</dimen> + <dimen name="ut_scan_channellist_padding_top">202dp</dimen> + <dimen name="ut_scan_channellist_padding_start">40dp</dimen> + <dimen name="ut_scan_channellist_padding_bottom">12dp</dimen> + + <dimen name="ut_scan_channel_num_width">48dp</dimen> + <dimen name="ut_scan_channel_name_width">96dp</dimen> +</resources> diff --git a/usbtuner-res/values/integers.xml b/usbtuner-res/values/integers.xml new file mode 100644 index 00000000..21b438e9 --- /dev/null +++ b/usbtuner-res/values/integers.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources> + <integer name="ut_guidance_title_max_lines">2</integer> + <integer name="ut_guidance_description_max_lines">10</integer> + <integer name="ut_guidedactions_vertical_spcae">8</integer> + <integer name="ut_scan_title_max_lines">2</integer> + <integer name="ut_entry_anim_duration">300</integer> + <integer name="ut_exit_anim_duration">300</integer> +</resources>
\ No newline at end of file diff --git a/usbtuner-res/values/strings.xml b/usbtuner-res/values/strings.xml new file mode 100644 index 00000000..51bbc55e --- /dev/null +++ b/usbtuner-res/values/strings.xml @@ -0,0 +1,170 @@ +<?Xm version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Name of this application. It appears in TV app UI, as one of available TV inputs. --> + <string name="bt_app_name">TV Tuner</string> + <!-- Name of this application when one uses USB tuner. It appears in TV app UI, as one of + available TV inputs. --> + <string name="ut_app_name">USB TV Tuner</string> + <!-- Title for an action which turns a feature on [CHAR LIMIT=30] --> + <string name="ut_setup_on">On</string> + <!-- Title for an action which turns a feature off [CHAR LIMIT=30] --> + <string name="ut_setup_off">Off</string> + <!-- Message shown when the scanning process is being canceled by a user and the scanning + process needs the time to wait to finish the processing --> + <string name="ut_setup_cancel">Please wait to finish processing</string> + <!-- Message that asks a user to select the type of signal to be used for input among + the choices like terrestrial, cable, or satellite --> + <string name="ut_select_channel_map">Select your channel source</string> + <!-- Message that indicates TV input signal is lost due to physical disconnection or bad + reception --> + <string name="ut_no_signal">No Signal</string> + <!-- Message that says TV failed to change to a channel (or tune) --> + <string name="ut_fail_to_tune">Failed to tune to <xliff:g id="channel_name">%s</xliff:g></string> + <!-- Message that says TV failed to change(or tune) to a channel which has no title --> + <string name="ut_fail_to_tune_to_unknown_channel">Failed to tune</string> + <!-- Message shown when the scanned channels became invalid due to incompatible changes + found across application versions, hence a user is required to rescan the channels --> + <string name="ut_rescan_needed">Tuner software has been recently updated. Please re-scan the + channels.</string> + <!-- Message that says audio of the current channel is not available due to TV device + lacking the support of the feature AC3 audio passthrough --> + <string name="ut_ac3_passthrough_unavailable">AC3 audio not available</string> + <!-- Usb Tuner setup common UI breadcrumb --> + <string name="ut_setup_breadcrumb">Channel tuner setup</string> + <!-- Title for TV Tuner main setup menu when no channel exists --> + <string name="bt_setup_new_title">TV Tuner setup</string> + <!-- Title for USB tuner main setup menu when no channel exists --> + <string name="ut_setup_new_title">USB channel tuner setup</string> + <!-- Description for TV tuner main setup menu when no channel exists --> + <string name="bt_setup_new_description">Verify your TV is connected to a TV signal + source.\n\nIf using an over-the-air antenna, you may need to adjust its placement or + direction to receive the most channels. For best results, place it high and near a + window.</string> + <!-- Description for USB tuner main setup menu when no channel exists --> + <string name="ut_setup_new_description">Verify the USB tuner is plugged in and connected + to a TV signal source.\n\nIf using an over-the-air antenna, you may need to adjust its + placement or direction to receive the most channels. For best results, + place it high and near a window.</string> + <!-- Menu items for USB tuner main setup menu when no channel exists --> + <string-array name="ut_setup_new_choices"> + <!-- Continue setup --> + <item>Continue</item> + <!-- Exit setup --> + <item>Not now</item> + </string-array> + <!-- Title for tuner main setup menu when channel exists already --> + <string name="bt_setup_again_title">Rerun channel setup?</string> + <!-- Description for TV tuner main setup menu when channel exists already --> + <string name="bt_setup_again_description">This will remove the channels found from the TV + tuner and scan for new channels again.\n\nVerify your TV is connected to a TV signal + source.\n\nIf using an over-the-air antenna, you may need to adjust its placement or + direction to receive the most channels. For best results, place it high and near a + window.</string> + <!-- Description for USB tuner main setup menu when channel exists already --> + <string name="ut_setup_again_description">This will remove the channels found from the USB + tuner and scan for new channels again.\n\nVerify the USB tuner is plugged in and connected + to a TV signal source.\n\nIf using an over-the-air antenna, you may need to adjust its + placement or direction to receive the most channels. For best results, place it high and + near a window.</string> + <!-- Menu items for USB tuner main setup menu when channel exists already --> + <string-array name="ut_setup_again_choices"> + <!-- Continue setup --> + <item>Continue</item> + <!-- Exit setup --> + <item>Cancel</item> + </string-array> + <!-- Title for connection type selection menu --> + <string name="ut_connection_title">Select the connection type</string> + <!-- Description for connection type selection menu --> + <string name="ut_connection_description">Choose Antenna if there is an external antenna + connected to the tuner. Choose Cable if your channels come from a cable service provider. + If you are not sure, both types will be scanned, but this may take longer.</string> + <!-- Menu items for connection type selection menu --> + <string-array name="ut_connection_choices"> + <!-- Signal coming from the antenna that carries over-the-air, terrestrial channels --> + <item>Antenna</item> + <!-- Signal for cable television channels --> + <item>Cable</item> + <!-- Not sure what type of connection is provided for channel scanning --> + <item>Not sure</item> + <item translatable="false">Development only</item> + </string-array> + <!-- Title for channel scanning menu. Use this title with built-in tuners --> + <string name="bt_channel_scan">TV tuner setup</string> + <!-- Title for channel scanning menu. Use this title with USB tuners --> + <string name="ut_channel_scan">USB channel tuner setup</string> + <!-- Message that says channel is not yet scanned during channel scanning process --> + <string name="ut_channel_scan_time">This may take several minutes</string> + <!-- Message that says channels are found during channel scanning process --> + <plurals name="ut_channel_scan_message"> + <item quantity="one">%1$d channel found</item> + <item quantity="other">%1$d channels found</item> + </plurals> + <!-- Title for a button which will stop channel scanning process --> + <string name="ut_stop_channel_scan">STOP CHANNEL SCAN</string> + <!-- Title for channel scanning result menu when channels were found --> + <plurals name="ut_result_found_title"> + <item quantity="one">%1$d channel found</item> + <item quantity="other">%1$d channels found</item> + </plurals> + <!-- Description for channel scanning result menu when channels were found --> + <plurals name="ut_result_found_description"> + <item quantity="one">Nice! %1$d channel was found during the channel scan. + If this doesn’t seem right, try adjusting the antenna position and scan again.</item> + <item quantity="other">Nice! %1$d channels were found during the channel scan. + If this doesn’t seem right, try adjusting the antenna position and scan again.</item> + </plurals> + <!-- Menu items for channel scanning result menu when channels were found --> + <string-array name="ut_result_found_choices"> + <item>Done</item> + <item>Scan again</item> + </string-array> + <!-- Title for channel scanning result menu when no channel was found --> + <string name="ut_result_not_found_title">No Channels found</string> + <!-- Description for channel scanning result menu when no channel was found --> + <string name="bt_result_not_found_description">The scan did not find any channels. Verify + your TV is connected to a TV signal source.\n\nIf using an over-the-air antenna, adjust + its placement or direction. For best results, place it high and near a window and scan + again.</string> + <!-- Description for channel scanning result menu when no channel was found --> + <string name="ut_result_not_found_description">The scan did not find any channels. Verify the + USB tuner is plugged in and connected to a TV signal source.\n\nIf using an over-the-air + antenna, adjust its placement or direction. For best results, place it high and near a + window and scan again.</string> + <!-- Menu items for channel scanning result menu when no channel was found --> + <string-array name="ut_result_not_found_choices"> + <item>Scan again</item> + <item>Done</item> + </string-array> + + <!-- Recommendation card of USB channel tuner setup strings. --> + <!-- Content title of the recommendation card to launch the setup application of + USB tuner TV input for scanning channels. This text is shown only when the card is + focused. --> + <string name="ut_setup_recommendation_card_focused_title">Scan for TV channels</string> + <!-- Content text and info of the recommendation card to launch the setup application of + built-in tuner TV input for scanning channels. --> + <string name="bt_setup_recommendation_card_title">TV Tuner setup</string> + <!-- Content text and info of the recommendation card to launch the setup application of + USB tuner TV input for scanning channels. --> + <string name="ut_setup_recommendation_card_title">USB TV Tuner setup</string> + + <!-- Message when usb tuner device is unplugged. [CHAR LIMIT=NONE] --> + <string name="msg_usb_device_detached">USB TV tuner disconnected.</string> +</resources>
\ No newline at end of file diff --git a/usbtuner-res/values/styles.xml b/usbtuner-res/values/styles.xml new file mode 100644 index 00000000..c79319ba --- /dev/null +++ b/usbtuner-res/values/styles.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2015 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. + --> + +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <style name="ut_guidance_anchor"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">@dimen/ut_guidance_anchor_height</item> + </style> + <style name="ut_guidance_container"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + <item name="android:background">@null</item> + <item name="android:clipToPadding">false</item> + <item name="android:clipChildren">false</item> + </style> + <style name="ut_guidance_title"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_alignWithParentIfMissing">true</item> + <item name="android:layout_below">@id/guidance_anchor_space</item> + <item name="android:ellipsize">end</item> + <item name="android:fontFamily">sans-serif-light</item> + <item name="android:maxLines">@integer/ut_guidance_title_max_lines</item> + <item name="android:textColor">@color/ut_guidance_title_text</item> + <item name="android:textSize">@dimen/ut_guidance_title_text_size</item> + </style> + <style name="ut_guidance_breadcrumb"> + <item name="android:layout_above">@id/guidance_title</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_alignWithParentIfMissing">true</item> + <item name="android:ellipsize">end</item> + <item name="android:fontFamily">sans-serif-condensed</item> + <item name="android:singleLine">true</item> + <item name="android:textColor">@color/ut_guidance_breadcrumb_text</item> + <item name="android:textSize">@dimen/ut_guidance_breadcrumb_text_size</item> + </style> + <style name="ut_guidance_desc"> + <item name="android:layout_below">@id/guidance_title</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_marginTop">@dimen/ut_guidance_description_margin_top</item> + <item name="android:layout_alignWithParentIfMissing">true</item> + <item name="android:ellipsize">end</item> + <item name="android:fontFamily">sans-serif</item> + <item name="android:maxLines">@integer/ut_guidance_description_max_lines</item> + <item name="android:textColor">@color/ut_guidance_description_text</item> + <item name="android:textSize">@dimen/ut_guidance_description_text_size</item> + </style> + <style name="ut_guidedactions_container"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + <item name="android:background">@null</item> + <item name="android:clipToPadding">false</item> + <item name="android:clipChildren">false</item> + </style> + <style name="ut_guidedactions_anchor"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">@dimen/ut_guidedactions_anchor_height</item> + </style> + <style name="ut_guidedactions_null_selector"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">@dimen/ut_guidedactions_selector_height</item> + <item name="android:layout_below">@id/guidedactions_anchor_space</item> + <item name="android:background">@null</item> + </style> + <style name="ut_guidedactions_list"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_below">@id/guidedactions_anchor_space</item> + <item name="android:background">@null</item> + <item name="android:clipToPadding">false</item> + <item name="android:clipChildren">false</item> + <item name="android:focusable">true</item> + </style> + <style name="ut_guidedactions_item_container"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">@dimen/ut_guidedactions_item_height</item> + <item name="android:background">@drawable/ut_selector_background</item> + <item name="android:focusable">true</item> + <item name="android:paddingStart">@dimen/ut_guidedactions_item_padding_start</item> + <item name="android:paddingEnd">@dimen/ut_guidedactions_item_padding_end</item> + <item name="android:paddingTop">@dimen/ut_guidedactions_item_padding_top</item> + <item name="android:paddingBottom">@dimen/ut_guidedactions_item_padding_bottom</item> + </style> + <style name="ut_guidedactions_item_checkmark"> + <item name="android:layout_width">@dimen/lb_guidedactions_item_checkmark_diameter</item> + <item name="android:layout_height">@dimen/lb_guidedactions_item_checkmark_diameter</item> + <item name="android:visibility">gone</item> + </style> + <style name="ut_guidedactions_item_title"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:ellipsize">end</item> + <item name="android:fontFamily">sans-serif-condensed</item> + <item name="android:singleLine">true</item> + <item name="android:textColor">@color/ut_guidedactions_title_text</item> + <item name="android:textSize">14sp</item> + <item name="android:background">@null</item> + </style> + <style name="ut_guidedactions_item_chevron"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:visibility">gone</item> + </style> +</resources> |