Improved error messages in gallery for images that can not be loaded
[pub/Android/ownCloud.git] / res / layout / preview_image_fragment.xml
index d41eb0e..91af0f8 100644 (file)
@@ -34,7 +34,6 @@
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:background="@color/owncloud_white"
-    android:gravity="center"
     tools:context=".ui.fragment.PreviewImageFragment" >
 
     <ImageView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_margin="0dp"
-        android:contentDescription="@string/image_preview"
-        android:src="@drawable/owncloud_logo" />
+        android:layout_centerInParent="true"
+        android:contentDescription="@string/preview_image_description"
+        android:src="@drawable/image_fail" />
+    
+    <TextView
+        android:id="@+id/message"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_centerHorizontal="true"
+        android:layout_below="@id/image"
+        android:layout_margin="40dp"
+        android:text="@string/placeholder_sentence"
+        />
     
 </RelativeLayout>
\ No newline at end of file