WeatherInformation: widget error/default layout
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Mon, 6 Oct 2014 19:49:57 +0000 (21:49 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Mon, 6 Oct 2014 19:49:57 +0000 (21:49 +0200)
Android/WeatherInformation/res/layout/appwidget_error.xml [new file with mode: 0644]

diff --git a/Android/WeatherInformation/res/layout/appwidget_error.xml b/Android/WeatherInformation/res/layout/appwidget_error.xml
new file mode 100644 (file)
index 0000000..4b6c90f
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/weather_appwidget_error"
+    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"
+        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_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>