Aidan Follestad 10 anni fa
parent
commit
6add1bf789

+ 2 - 1
library/src/main/res/layout/material_dialog.xml

@@ -50,6 +50,8 @@
                 android:orientation="vertical"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
+                android:paddingTop="@dimen/dialog_frame_margin"
+                android:paddingBottom="@dimen/dialog_frame_margin"
                 android:layout_marginLeft="@dimen/dialog_frame_margin"
                 android:layout_marginRight="@dimen/dialog_frame_margin">
 
@@ -57,7 +59,6 @@
                     android:id="@+id/titleCustomView"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:layout_marginTop="@dimen/dialog_frame_margin"
                     android:layout_marginBottom="@dimen/title_frame_margin"
                     android:textSize="@dimen/title_textsize"
                     tools:text="Title" />

BIN
sample/sample.apk


+ 1 - 3
sample/src/main/res/layout/dialog_customview.xml

@@ -2,9 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:paddingTop="@dimen/title_frame_margin"
-    android:paddingBottom="@dimen/dialog_frame_margin">
+    android:layout_height="wrap_content">
 
     <TextView
         android:layout_width="wrap_content"