Răsfoiți Sursa

Release 0.5.3.

Aidan Follestad 10 ani în urmă
părinte
comite
aeec514a25

+ 3 - 1
CHANGELOG.md

@@ -1,8 +1,10 @@
 # Changelog
 
-###### Version 0.5.3 (NOT READY YET)
+###### Version 0.5.3
 
 > 1. Global theming attributes for dialog background color and divider color. See the (Global Theming section)[https://github.com/afollestad/material-dialogs#global-theming].
+> 2. Lots and lots of improvements for RTL support! This includes the title, list content, and action buttons in RTL layout mode (API 17 and above only).
+> 3. Other bug fixes.
 
 ###### Version 0.5.1 - 0.5.2
 

+ 4 - 2
README.md

@@ -8,9 +8,11 @@ The code you see below is also found in the sample project. You can download a A
 
 For the full history, see the [Changelog](https://github.com/afollestad/material-dialogs/blob/master/CHANGELOG.md).
 
-###### Version 0.5.3 (NOT READY YET)
+###### Version 0.5.3
 
 > 1. Global theming attributes for dialog background color and divider color. See the (Global Theming section)[https://github.com/afollestad/material-dialogs#global-theming].
+> 2. Lots and lots of improvements for RTL support! This includes the title, list content, and action buttons in RTL layout mode (API 17 and above only).
+> 3. Other bug fixes.
 
 ###### Version 0.5.1 - 0.5.2
 
@@ -36,7 +38,7 @@ Easily reference the library in your Android projects using this dependency in y
 
 ```Groovy
 dependencies {
-    compile 'com.afollestad:material-dialogs:0.5.2'
+    compile 'com.afollestad:material-dialogs:0.5.3'
 }
 ```
 

+ 3 - 1
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -1193,6 +1193,8 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener {
 
     /**
      * Retrieves the view of an action button, allowing you to modify properties such as whether or not it's enabled.
+     * Use {@link #setActionButton(DialogAction, int)} to change text, since the view returned here is not
+     * the view that displays text.
      *
      * @param which The action button of which to get the view for.
      * @return The view from the dialog's layout representing this action button.
@@ -1221,7 +1223,7 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener {
 
     /**
      * @deprecated Use getActionButton(com.afollestad.materialdialogs.DialogAction)} instead.
-     *
+     * <p/>
      * This will not return buttons that are actually in the layout itself, since the layout doesn't
      * contain buttons. This is only implemented to avoid crashing issues on Huawei devices. Huawei's
      * stock OS requires this method in order to detect visible buttons.

+ 1 - 0
library/src/main/res/values/styles.xml

@@ -43,6 +43,7 @@
         <item name="android:minWidth">@dimen/md_button_min_width</item>
         <item name="android:paddingLeft">@dimen/md_button_textpadding_horizontal</item>
         <item name="android:paddingRight">@dimen/md_button_textpadding_horizontal</item>
+        <item name="android:duplicateParentState">true</item>
     </style>
 
     <!-- Light dialog theme for devices prior Honeycomb -->

BIN
sample/sample.apk