Skip to content

4_customView dialog

水牛 edited this page Nov 20, 2017 · 2 revisions

keep the ios style buttons, set custom view into the top:

one way is :

with the start of :

 StyledDialog.buildIosAlert(...)  or StyledDialog.buildIosAlertVertical( ...)

then set a custom viewholder:

.setCustomContentHolder(new CustomContentHolder(this))

the other way is more simple, you can just call:

buildCustomInIos(SuperLvHolder customViewHolder,MyDialogListener listener)

the viewholder must extends SuperLvHolder.

set a custom view into the material alert dialog.

buildCustomInMd(SuperLvHolder customViewHolder,MyDialogListener listener)

custom a view completely:

the common dialog style settings are still fuctional.

buildCustom( SuperLvHolder viewHolder)