diff options
author | Adnan Begovic <adnan@cyngn.com> | 2016-05-05 23:29:01 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2016-05-05 23:29:01 -0700 |
commit | 636b71ae9019e04e4f77fc0714c603bd3ae0f5a2 (patch) | |
tree | 7d6892bb2ba38f5d3b8b8b5fd89255444de68eea /app/src/main/res | |
parent | 127854f264bd1407305ad1bff8fd4178efda09ce (diff) | |
download | android_packages_apps_YahooWeatherProvider-636b71ae9019e04e4f77fc0714c603bd3ae0f5a2.tar.gz android_packages_apps_YahooWeatherProvider-636b71ae9019e04e4f77fc0714c603bd3ae0f5a2.tar.bz2 android_packages_apps_YahooWeatherProvider-636b71ae9019e04e4f77fc0714c603bd3ae0f5a2.zip |
YahooCM: Meet branding guidelines and add preference screen.
Change-Id: Iea903a52d93bde4e65660a01d8950abb2b4746c6
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/purple.png | bin | 0 -> 2485 bytes | |||
-rw-r--r-- | app/src/main/res/layout/image_preference.xml | 14 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/xml/weather_settings_service.xml | 15 |
6 files changed, 61 insertions, 2 deletions
diff --git a/app/src/main/res/drawable/purple.png b/app/src/main/res/drawable/purple.png Binary files differnew file mode 100644 index 0000000..66cd058 --- /dev/null +++ b/app/src/main/res/drawable/purple.png diff --git a/app/src/main/res/layout/image_preference.xml b/app/src/main/res/layout/image_preference.xml new file mode 100644 index 0000000..09b449a --- /dev/null +++ b/app/src/main/res/layout/image_preference.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/widget_frame" + android:layout_width="match_parent" + android:layout_height="?android:attr/listPreferredItemHeight" + android:orientation="vertical" > + + <ImageView + android:id="@+id/image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:src="@drawable/purple" + android:scaleType="centerInside"/> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5f3269a..6b45a5d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,9 @@ <resources> <string name="app_name">Yahoo Weather Provider</string> -</resources> + + <string name="about_preference_category_title">About</string> + <string name="about_preference">Copyright</string> + <string name="about_preference_summary">YAHOO! is a registered trademark of Yahoo! Inc. both in the United States and internationally.</string> + + <string name="customization_preference_category_title">Customization</string> +</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 3444a02..dc4204f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,6 +1,6 @@ <resources> <!-- Base application theme. --> - <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar"> <!-- Customize your theme here. --> </style> </resources> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..837a4a1 --- /dev/null +++ b/app/src/main/res/xml/preferences.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 The CyanogenMod 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. +--> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + <PreferenceCategory android:title="@string/about_preference_category_title"> + <Preference + android:key="about_key" + android:title="@string/about_preference" + android:summary="@string/about_preference_summary" /> + <org.cyanogenmod.yahooweatherprovider.ImagePreference + android:key="image_key"/> + </PreferenceCategory> + +</PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/weather_settings_service.xml b/app/src/main/res/xml/weather_settings_service.xml new file mode 100644 index 0000000..af5c23e --- /dev/null +++ b/app/src/main/res/xml/weather_settings_service.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2016 The CyanogenMod 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. +--> +<weather-provider-service xmlns:android="http://schemas.android.com/apk/res/android" + android:settingsActivity="org.cyanogenmod.yahooweatherprovider.YahooPreferenceActivity" />
\ No newline at end of file |