summaryrefslogtreecommitdiffstats
path: root/res/layout/empty_weather_state.xml
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-26 22:42:21 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-05-06 16:05:14 -0700
commit215d44020f4a6449260ebbab55feb3462f2416a6 (patch)
treeb454243e6c52234393e55ffa250b2048f6dadc61 /res/layout/empty_weather_state.xml
parent23b30aaefcf611e0c5e1915437b48589da724866 (diff)
downloadpackages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.zip
packages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.tar.gz
packages_apps_Settings-215d44020f4a6449260ebbab55feb3462f2416a6.tar.bz2
Add option to select temperature unit
Added a menu in the weather settings to select the temperature unit. This setting will be visible only if the user has at least one weather service provider installed. The weather settings layout was refactored to make room for this new preference Change-Id: I5e9f206573e0ff95fcee31a010b52530a907acc6 TICKET: CYNGNOS-2605
Diffstat (limited to 'res/layout/empty_weather_state.xml')
-rw-r--r--res/layout/empty_weather_state.xml16
1 files changed, 11 insertions, 5 deletions
diff --git a/res/layout/empty_weather_state.xml b/res/layout/empty_weather_state.xml
index 09c3794..7ae635a 100644
--- a/res/layout/empty_weather_state.xml
+++ b/res/layout/empty_weather_state.xml
@@ -32,16 +32,22 @@
android:layout_marginBottom="12dip"
android:src="@drawable/ic_settings_weather"
android:tint="@color/weather_settings_icon_tint"
- android:contentDescription="@null">
- </ImageView>
-
+ android:contentDescription="@null" />
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18dp"
- android:textColor="?android:attr/textColorSecondary">
- </TextView>
+ android:textColor="?android:attr/textColorSecondary" />
+ <Button android:id="@+id/add_weather_provider"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:gravity="center"
+ style="?android:attr/buttonBarButtonStyle"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="@string/weather_settings_add_weather_provider"
+ android:textAllCaps="true" />
</LinearLayout>
</FrameLayout>