Forráskód Böngészése

Various padding fixes, padding won't be reduced when there's no title in progress or input dialogs. Fixes #414

Aidan Follestad 10 éve
szülő
commit
86c75cf2b8

+ 2 - 0
library/src/main/res/layout/md_dialog_input.xml

@@ -1,7 +1,9 @@
 <com.afollestad.materialdialogs.internal.MDRootLayout xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    app:md_reduce_padding_no_title_no_buttons="false"
     xmlns:android="http://schemas.android.com/apk/res/android">
 
     <include layout="@layout/md_stub_titleframe" />

+ 3 - 1
library/src/main/res/layout/md_dialog_progress.xml

@@ -2,7 +2,9 @@
     android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    xmlns:android="http://schemas.android.com/apk/res/android">
+    app:md_reduce_padding_no_title_no_buttons="false"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto">
 
     <include layout="@layout/md_stub_titleframe" />
 

+ 3 - 1
library/src/main/res/layout/md_dialog_progress_indeterminate.xml

@@ -2,7 +2,9 @@
     android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    xmlns:android="http://schemas.android.com/apk/res/android">
+    app:md_reduce_padding_no_title_no_buttons="false"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto">
 
     <include layout="@layout/md_stub_titleframe" />