瀏覽代碼

center image/text

AndyScherzinger 7 年之前
父節點
當前提交
fdd0431beb
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/main/res/layout/preview_image_error_fragment.xml

+ 5 - 1
src/main/res/layout/preview_image_error_fragment.xml

@@ -21,8 +21,12 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/top"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
+    android:layout_height="wrap_content"
+    android:layout_gravity="center"
+    android:layout_margin="@dimen/standard_margin"
+    android:gravity="center_vertical|center_horizontal"
     android:orientation="vertical"
+    android:paddingBottom="@dimen/standard_double_margin"
     android:animateLayoutChanges="true">
 
     <ImageView