WeatherInformation: widget background with spurious is not fun.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 22 Oct 2014 01:28:11 +0000 (03:28 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 22 Oct 2014 01:28:11 +0000 (03:28 +0200)
app/src/main/res/drawable-hdpi-v14/appwidget_dark_bg_9.png [new file with mode: 0644]
app/src/main/res/drawable-hdpi/appwidget_dark_bg_9.png [new file with mode: 0644]
app/src/main/res/drawable-mdpi-v14/appwidget_dark_bg_9.png [new file with mode: 0644]
app/src/main/res/drawable-mdpi/appwidget_dark_bg_9.png [new file with mode: 0644]
app/src/main/res/drawable-xhdpi-v14/appwidget_dark_bg_9.png [new file with mode: 0644]
app/src/main/res/layout/appwidget.xml
app/src/main/res/layout/appwidget_error.xml

diff --git a/app/src/main/res/drawable-hdpi-v14/appwidget_dark_bg_9.png b/app/src/main/res/drawable-hdpi-v14/appwidget_dark_bg_9.png
new file mode 100644 (file)
index 0000000..02ee440
Binary files /dev/null and b/app/src/main/res/drawable-hdpi-v14/appwidget_dark_bg_9.png differ
diff --git a/app/src/main/res/drawable-hdpi/appwidget_dark_bg_9.png b/app/src/main/res/drawable-hdpi/appwidget_dark_bg_9.png
new file mode 100644 (file)
index 0000000..3b29eae
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/appwidget_dark_bg_9.png differ
diff --git a/app/src/main/res/drawable-mdpi-v14/appwidget_dark_bg_9.png b/app/src/main/res/drawable-mdpi-v14/appwidget_dark_bg_9.png
new file mode 100644 (file)
index 0000000..a245d91
Binary files /dev/null and b/app/src/main/res/drawable-mdpi-v14/appwidget_dark_bg_9.png differ
diff --git a/app/src/main/res/drawable-mdpi/appwidget_dark_bg_9.png b/app/src/main/res/drawable-mdpi/appwidget_dark_bg_9.png
new file mode 100644 (file)
index 0000000..afe41b6
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/appwidget_dark_bg_9.png differ
diff --git a/app/src/main/res/drawable-xhdpi-v14/appwidget_dark_bg_9.png b/app/src/main/res/drawable-xhdpi-v14/appwidget_dark_bg_9.png
new file mode 100644 (file)
index 0000000..7ccb762
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi-v14/appwidget_dark_bg_9.png differ
index 08f33cc..6156ae9 100644 (file)
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/weather_appwidget"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:layout_gravity="fill"
-    android:orientation="horizontal"
-    android:baselineAligned="false"
-    android:background="@color/widget_background_holo_dark"
-    android:padding="@dimen/widget_margin" >
-
-    <LinearLayout
-        android:layout_width="wrap_content"
-        android:layout_height="match_parent"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
         android:layout_gravity="center"
-        android:gravity="center"
-        android:padding="4dp"
-        android:orientation="vertical" >
-    
-       <ImageView
-               android:id="@+id/weather_appwidget_image"
-               android:layout_width="wrap_content"
-               android:layout_height="wrap_content"
-               android:layout_gravity="start"
-               android:contentDescription="@string/icon_weather_description"
-               android:orientation="vertical"
-               android:src="@drawable/weather_showers" />
-    
-    </LinearLayout>
-    
+        android:padding="@dimen/widget_margin">
+
     <LinearLayout
-        android:layout_width="wrap_content"
+        android:id="@+id/weather_appwidget"
+        android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:layout_gravity="center"
-        android:gravity="center"
-        android:padding="4dp"
-        android:orientation="vertical" >
-        
-        <TextView
-            android:id="@+id/weather_appwidget_temperature_max"
+        android:layout_gravity="fill"
+        android:orientation="horizontal"
+        android:baselineAligned="false"
+        android:background="@drawable/appwidget_dark_bg_9">
+
+        <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
+            android:layout_height="match_parent"
             android:layout_gravity="center"
-            android:text="12ºC"
-            android:textAlignment="center"
-            android:textAllCaps="true"
-            android:textAppearance="?android:attr/textAppearanceMedium"
-            android:textStyle="bold" />
-    
-       <TextView
-               android:id="@+id/weather_appwidget_temperature_min"
-               android:layout_width="wrap_content"
-               android:layout_height="wrap_content"
-               android:layout_gravity="center"
-               android:text="5ºC"
-               android:textAlignment="center"
-               android:textAllCaps="true"
-               android:textAppearance="?android:attr/textAppearanceMedium"
-               android:textStyle="normal" />
-    </LinearLayout>
-    
-    <LinearLayout
-        android:layout_width="fill_parent"
-        android:layout_height="match_parent"
-        android:layout_gravity="center"
-        android:gravity="center"
-        android:orientation="vertical"
-        android:padding="4dp" >
-        
-        <TextView
-            android:id="@+id/weather_appwidget_city"
+            android:gravity="center"
+            android:padding="4dp"
+            android:orientation="vertical" >
+
+            <ImageView
+                android:id="@+id/weather_appwidget_image"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="start"
+                android:contentDescription="@string/icon_weather_description"
+                android:orientation="vertical"
+                android:src="@drawable/weather_showers" />
+
+        </LinearLayout>
+
+        <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
+            android:layout_height="match_parent"
             android:layout_gravity="center"
-            android:text="Morata de Tajuña"
-            android:textAlignment="center"
-            android:textAppearance="?android:attr/textAppearanceSmall"
-            android:textStyle="bold" />
-    
-        <TextView
-            android:id="@+id/weather_appwidget_country"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
+            android:gravity="center"
+            android:padding="4dp"
+            android:orientation="vertical" >
+
+            <TextView
+                android:id="@+id/weather_appwidget_temperature_max"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:text="12ºC"
+                android:textAlignment="center"
+                android:textAllCaps="true"
+                android:textAppearance="?android:attr/textAppearanceMedium"
+                android:textStyle="bold" />
+
+            <TextView
+                android:id="@+id/weather_appwidget_temperature_min"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:text="5ºC"
+                android:textAlignment="center"
+                android:textAllCaps="true"
+                android:textAppearance="?android:attr/textAppearanceMedium"
+                android:textStyle="normal" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="fill_parent"
+            android:layout_height="match_parent"
             android:layout_gravity="center"
-            android:text="Spain"
-            android:textAlignment="center"
-            android:textAppearance="?android:attr/textAppearanceSmall"
-            android:textStyle="normal" />
-    </LinearLayout>
-            
+            android:gravity="center"
+            android:orientation="vertical"
+            android:padding="4dp" >
+
+            <TextView
+                android:id="@+id/weather_appwidget_city"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:text="Morata de Tajuña"
+                android:textAlignment="center"
+                android:textAppearance="?android:attr/textAppearanceSmall"
+                android:textStyle="bold" />
+
+            <TextView
+                android:id="@+id/weather_appwidget_country"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:text="Spain"
+                android:textAlignment="center"
+                android:textAppearance="?android:attr/textAppearanceSmall"
+                android:textStyle="normal" />
+        </LinearLayout>
 
-    
 
 
-</LinearLayout>
+
+
+    </LinearLayout>
+</FrameLayout>
index 4b6c90f..8c15912 100644 (file)
@@ -1,52 +1,58 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/weather_appwidget_error"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:layout_gravity="fill"
-    android:orientation="horizontal"
-    android:baselineAligned="false"
-    android:background="@color/widget_background_holo_dark"
-    android:padding="@dimen/widget_margin" >
+    android:layout_height="wrap_content"
+    android:layout_gravity="center"
+    android:padding="@dimen/widget_margin">
 
     <LinearLayout
-        android:layout_width="wrap_content"
+        android:id="@+id/weather_appwidget_error"
+        android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:layout_gravity="center"
-        android:gravity="center"
-        android:padding="4dp"
-        android:orientation="vertical" >
-    
-       <ImageView
-               android:layout_width="wrap_content"
-               android:layout_height="wrap_content"
-               android:layout_gravity="start"
-               android:contentDescription="@string/icon_weather_description"
-               android:orientation="vertical"
-               android:src="@drawable/ic_launcher" />
-    
-    </LinearLayout>
-    
-    <LinearLayout
-        android:layout_width="fill_parent"
-        android:layout_height="match_parent"
-        android:layout_gravity="center"
-        android:gravity="center"
-        android:orientation="vertical"
-        android:padding="4dp" >
-        
-        <TextView
+        android:layout_gravity="fill"
+        android:orientation="horizontal"
+        android:baselineAligned="false"
+        android:background="@drawable/appwidget_dark_bg_9">
+
+        <LinearLayout
             android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
+            android:layout_height="match_parent"
             android:layout_gravity="center"
-            android:text="@string/text_field_remote_error"
-            android:textAlignment="center"
-            android:textAppearance="?android:attr/textAppearanceMedium"
-            android:textStyle="bold" />
-    </LinearLayout>
-            
+            android:gravity="center"
+            android:padding="4dp"
+            android:orientation="vertical" >
+
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="start"
+                android:contentDescription="@string/icon_weather_description"
+                android:orientation="vertical"
+                android:src="@drawable/ic_launcher" />
 
-    
+        </LinearLayout>
 
+        <LinearLayout
+            android:layout_width="fill_parent"
+            android:layout_height="match_parent"
+            android:layout_gravity="center"
+            android:gravity="center"
+            android:orientation="vertical"
+            android:padding="4dp" >
 
-</LinearLayout>
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:text="@string/text_field_remote_error"
+                android:textAlignment="center"
+                android:textAppearance="?android:attr/textAppearanceMedium"
+                android:textStyle="bold" />
+        </LinearLayout>
+
+
+
+
+
+    </LinearLayout>
+</FrameLayout>
\ No newline at end of file