Skip to content
寒云清语 edited this page Aug 9, 2017 · 1 revision

Dialog

Download

dependencies {
    compile 'com.jiangyy:dialog:1.0.2'
}

How do I use

CommonDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

setTitle(int resid)

setTitle(int resid, int color)

setMessage(CharSequence title)

setMessage(CharSequence title, int color)

setMessage(int resid)

setMessage(int resid, int color)

setPositiveButton(CharSequence text, View.OnClickListener listener)

setPositiveButton(CharSequence text, View.OnClickListener listener, int color)

setNegativeButton(CharSequence text, View.OnClickListener listener)

setNegativeButton(CharSequence text, View.OnClickListener listener, int color)

setCancelable(boolean flag)

setCanceledOnTouchOutside(boolean flag)

SingleChoiceDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

seCancelTextColor(int color)

addList(List<String> list)

addList(String[] list)

addList(String list)

setOnItemClickListener(OnItemClickListener onItemClickListener)

MultipleChoiceDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

seCancelTextColor(int color)

addList(List<String> list)

addList(String[] list)

addList(String list)

setOnItemClickListener(ClickListener onItemClickListener)

InputDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

setTitle(int resid)

setTitle(int resid, int color)

setMessage(CharSequence title)

setMessage(CharSequence title, int color)

setMessage(int resid)

setMessage(int resid, int color)

setHint(CharSequence title)

setHint(CharSequence title, int color)

setHint(int resid)

setHint(int resid, int color)

setInputType(int type)

setLines(int lines)

setMaxLines(int lines)

setPositiveButton(CharSequence text, View.OnClickListener listener)

setPositiveButton(CharSequence text, View.OnClickListener listener, int color)

setNegativeButton(CharSequence text, View.OnClickListener listener)

setNegativeButton(CharSequence text, View.OnClickListener listener, int color)

setCancelable(boolean flag)

setCanceledOnTouchOutside(boolean flag)

LoadingDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

setTitle(int resid)

setTitle(int resid, int color)

setCancelable(boolean flag)

setCanceledOnTouchOutside(boolean flag)

showProgress(boolean flag)

setProgress(int precent)

UpdateDialog

setTitle(CharSequence title)

setTitle(CharSequence title, int color)

setTitle(int resid)

setTitle(int resid, int color)

setMessage(CharSequence title)

setMessage(CharSequence title, int color)

setMessage(int resid)

setMessage(int resid, int color)

setPositiveButton(CharSequence text, View.OnClickListener listener)

setPositiveButton(CharSequence text, View.OnClickListener listener, int color)

setNegativeButton(CharSequence text, View.OnClickListener listener)

setNegativeButton(CharSequence text, View.OnClickListener listener, int color)

setCancelable(boolean flag)

setCanceledOnTouchOutside(boolean flag)