/**
* Retrieves the view of an action button, allowing you to modify properties such as whether or
* not it's enabled. Use {@link #setActionButton(DialogAction, int)} to change text, since the
* view returned here is not the view that displays text.
*
* @param which The action button of which to get the view for.
* @return The view from the dialog's layout representing this action button.
*/
public final MDButton getActionButton(DialogAction which) {
switch (which) {
default:
return positiveButton;
case NEUTRAL:
return neutralButton;
case NEGATIVE:
return negativeButton;
}
}
MaterialDialog.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:material-dialogs
作者:
评论列表
文章目录