Prechádzať zdrojové kódy

Stack algorithm should work perfectly now

Aidan Follestad 10 rokov pred
rodič
commit
7e6b2aeda7

+ 3 - 3
library/src/main/res/layout/material_dialog.xml

@@ -11,7 +11,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="@dimen/dialog_frame_margin"
-        android:layout_marginBottom="@dimen/title_margin_bottom"
+        android:layout_marginBottom="@dimen/title_frame_margin"
         android:layout_marginLeft="@dimen/dialog_frame_margin"
         android:layout_marginRight="@dimen/dialog_frame_margin">
 
@@ -19,7 +19,7 @@
             android:id="@+id/title"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_marginBottom="@dimen/title_margin_bottom"
+            android:layout_marginBottom="@dimen/title_frame_margin"
             android:textSize="@dimen/title_textsize"
             tools:text="Title"
             android:lineSpacingMultiplier="1.2" />
@@ -58,7 +58,7 @@
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_marginTop="@dimen/dialog_frame_margin"
-                    android:layout_marginBottom="@dimen/title_margin_bottom"
+                    android:layout_marginBottom="@dimen/title_frame_margin"
                     android:textSize="@dimen/title_textsize"
                     tools:text="Title" />
 

+ 1 - 1
library/src/main/res/values/dimens.xml

@@ -4,7 +4,7 @@
     <!-- See http://www.google.com/design/spec/components/dialogs.html#dialogs-specs -->
 
     <dimen name="dialog_frame_margin">24dp</dimen>
-    <dimen name="title_margin_bottom">16dp</dimen>
+    <dimen name="title_frame_margin">16dp</dimen>
 
     <!-- Above and below buttons, 36+12=48 for the height of the button frame -->
     <dimen name="button_padding_vertical">12dp</dimen>

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

@@ -3,6 +3,7 @@
     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:background="#EEEEEE">