Explorar o código

Added more info to the README about the new progress stuff.

Aidan Follestad %!s(int64=10) %!d(string=hai) anos
pai
achega
471347c56a
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      README.md

+ 17 - 0
README.md

@@ -890,6 +890,23 @@ Like action buttons and many other elements of the Material dialog, you can cust
  
 There's also a global theming attribute as shown in the Global Theming section of this README: `md_widget_color`.
 
+## Custom Number and Progress Formats
+
+Like the stock `ProgressDialog`, you can format the progress min/max numbers and the percentage indicator
+of determinate dialogs.
+
+```java
+MaterialDialog dialog = new MaterialDialog.Builder(this)
+    .progress(false, 150, true)
+    ...
+    .progressNumberFormat("%1d/%2d")
+    .progressPercentFormat(NumberFormat.getPercentageInstance())
+    ...
+    .show();
+```
+
+The values passed above are the default.
+
 ---
 
 # Preference Dialogs