From 8d2f6ee8e48b68b60143c116a2863f34cbb51570 Mon Sep 17 00:00:00 2001 From: coderkan Date: Tue, 21 Nov 2017 17:22:25 +0300 Subject: [PATCH] Update README file --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 53fa46d..0332b13 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ More information please read [this](http://stackoverflow.com/questions/11411395/ # Install -``` +```groovy // Gradle compile 'com.wizchen.topmessage:topmessage:1.0.5' ``` -``` +```xml // Maven com.wizchen.topmessage @@ -25,7 +25,7 @@ compile 'com.wizchen.topmessage:topmessage:1.0.5' ``` -``` +```xml // Ivy @@ -36,7 +36,7 @@ compile 'com.wizchen.topmessage:topmessage:1.0.5' 1.Add the code below in your custom application -``` +```Java public class App extends Application { @Override @@ -49,32 +49,32 @@ public class App extends Application { 2.Just enjoy yourself! -``` +```Java // the simplest and the default effect TopMessageManager.showSuccess(msg); ``` -``` +```Java // use custom duration TopMessageManager.showSuccess(msg, duration); ``` -``` +```Java // use custom duration and title TopMessageManager.showSuccess(msg, duration, title); ``` -``` +```Java // with a common button TopMessageManager.showSuccess(msg, title, commonCallback, commonButtonText); ``` -``` +```Java // with a confitm button and a cancel button TopMessageManager.showSuccess(msg, title, confirmOrCancelCallback, confirmButtonText, cancelButtonText); ``` -``` +```Java // with a input area TopMessageManager.showSuccess(msg, title, sendCallback, sendButtonText, inputHint); ```