Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
luohaolun committed Jul 30, 2019
2 parents a6162d1 + 9b1bbad commit 3d1e6f7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Project build.gradle:
Module build.gradle:

dependencies {
implementation 'com.github.luohaolun:log:1.7'
implementation 'com.github.luohaolun:log:1.8'
}


Expand Down Expand Up @@ -61,19 +61,21 @@ Module build.gradle:

>普通
TDialog(this, "消息内容").show()
TDialog(this, "消息内容").show() //or
TDialog("消息内容").show()



>设置确定按钮事件
TDialog(this, "消息内容"){ "点击确定".toast() }
TDialog(this, "消息内容"){ "点击确定".toast() } //or
TDialog("消息内容"){ "点击确定".toastLong() }



>设置确定与取消按钮事件
TDialog(this, "消息内容").setButtons({ "点击确定".toast() }) { "点击取消".toast() }
TDialog("消息内容").setButtons({ "点击确定".toast() }) { "点击取消".toast() }



Expand All @@ -85,8 +87,8 @@ Module build.gradle:

### 等待对话框PDialog:

val pDialog = PDialog(this, "正在上传..") { "取消上传".toast() }
pDialog.show()
val pDialog = PDialog(this, "正在上传..") { "取消上传".toast() } //or
val pDialog = PDialog("正在上传..").show()



Expand Down

0 comments on commit 3d1e6f7

Please sign in to comment.