Skip to content

0_types(所有的类型)

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

ios style - loading

buildLoading( )
buildLoading( CharSequence msg)

updateLoadingMsg(final String msg)

loading-common

android style-loading

buildMdLoading( )
buildMdLoading( CharSequence msg) 

updateLoadingMsg(final String msg)

loading

ProgressDialog of horizontal

buildProgress( CharSequence msg,boolean isHorizontal)


updateProgress(final Dialog dialog, final int progress, final int max, final CharSequence msg, final boolean isHorizontal)

progress_h

ProgressDialog of spinner

progress_c

AlertDialog of appcompat-v7

buildMdAlert( CharSequence title, CharSequence msg, MyDialogListener listener)

md_alert

buildMdInput(CharSequence title, CharSequence hint1, CharSequence hint2,
                                          CharSequence firstTxt, CharSequence secondTxt, MyDialogListener listener)

md_input

buildMdSingleChoose( CharSequence title, int defaultChosen, CharSequence[] words, MyItemDialogListener listener)

md_single_choose

buildMdMultiChoose( CharSequence title, CharSequence[] words, List<Integer> selectedIndexs, MyDialogListener btnListener)

md_multi_choose

ios style

ios alert

buildIosAlert( CharSequence title, CharSequence msg, MyDialogListener listener)

ios_alert

ios alert Vertical

buildIosAlertVertical( CharSequence title, CharSequence msg, MyDialogListener listener) 

ios_alert_v

input

buildNormalInput( CharSequence title, CharSequence hint1, CharSequence hint2, CharSequence firstTxt, CharSequence secondTxt, MyDialogListener listener

ios_input

Ios Single Choose

buildIosSingleChoose( List<? extends CharSequence> words, MyItemDialogListener listener)

ios_centerlist

ios bottom item dialog

buildBottomItemDialog( List<? extends CharSequence> words, CharSequence bottomTxt, MyItemDialogListener listener)

ios_bottom

BottomSheetDialog of material design

listview

buildBottomSheetLv(CharSequence title, List datas, CharSequence bottomTxt, MyItemDialogListener listener)

btnsheet-lv

gridview

buildBottomSheetGv( CharSequence title, List datas, CharSequence bottomTxt,int columnsNum ,MyItemDialogListener listener)

btnsheet-gv

gridview pull:

btnsheet-gv-out

custom view

show a custom view with ios style buttons:

with the start of :

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

then set a custom viewholder:

.setCustomContentHolder(new CustomContentHolder(this))

customview_with_btn

show a complete custom view:

( the demo below contains a webview)

 ViewGroup customView = (ViewGroup) View.inflate(this,R.layout.customview,null);
final ConfigBean bean = StyledDialog.buildCustom(customView, Gravity.CENTER);
final Dialog dialog1 =   bean.show();

customview-webview