Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Fawzy committed Dec 9, 2019
1 parent bfe4e17 commit 24318ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ implementation 'com.dialog:plus:4+'
### 2.6 Multi Options:

```
CustomLayoutDialog dialog = new DialogPlusBuilder().setTitle("pick a choice").buildCustomLayoutDialog(R.layout.layout_language_dialog);
dialog.showNow(getChildFragmentManager(), "languageDialog");
LayoutLanguageDialogBinding languageDialogBinding=(LayoutLanguageDialogBinding) dialog.getCustomLayoutBinding();
languageDialogBinding.arabic.setOnCheckedChangeListener(...);
new DialogPlusBuilder().setTitle("Multi Options Dialog Sample Title")
.setHeaderBgColor(R.color.dialogTransparent).setHeaderTextColor(R.color.black)
.hideCloseIcon().blurBackground()
.buildMultiOptionsDialog(getOptions()
, new MultiOptionsDialog.ActionListener() {...})
.show(this.getSupportFragmentManager(), "Multi Options Dialog");
```
### 2.7 List:

Expand Down Expand Up @@ -190,9 +192,10 @@ implementation 'com.dialog:plus:4+'
### 2.16 Custom Dialog: Accepts a layoutRes to a layout xml file and adds it to the dialog(Supports Data Binding)

```
new DialogPlusBuilder().blurBackground()
.buildCustomLayoutDialog(R.layout.custom_layout,BR.model,model)
.show(this.getSupportFragmentManager(), "Custom Layout Dialog");
CustomLayoutDialog dialog = new DialogPlusBuilder().setTitle("pick a choice").buildCustomLayoutDialog(R.layout.layout_language_dialog);
dialog.showNow(getChildFragmentManager(), "languageDialog");
LayoutLanguageDialogBinding languageDialogBinding=(LayoutLanguageDialogBinding) dialog.getCustomLayoutBinding();
languageDialogBinding.arabic.setOnCheckedChangeListener(...);
```
### 2.17 Message With Image Dialog: Accepts a DrawableRes to a an image(Supports Gif)

Expand Down

0 comments on commit 24318ca

Please sign in to comment.