diff options
Diffstat (limited to 'res/layout/empty_weather_state.xml')
-rw-r--r-- | res/layout/empty_weather_state.xml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/res/layout/empty_weather_state.xml b/res/layout/empty_weather_state.xml new file mode 100644 index 0000000..7ae635a --- /dev/null +++ b/res/layout/empty_weather_state.xml @@ -0,0 +1,53 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/empty_weather_state" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:visibility="gone"> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center" + android:orientation="vertical"> + <ImageView + android:id="@+id/icon" + android:layout_width="192dp" + android:layout_height="192dp" + android:layout_marginBottom="12dip" + android:src="@drawable/ic_settings_weather" + android:tint="@color/weather_settings_icon_tint" + 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" /> + + <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> |