@OnClick(R.id.layout_goal)
public void onClickGoal() {
new MaterialDialog.Builder(getActivity())
.theme(Theme.LIGHT)
.title("Goal")
.items(Goal.getStringValues(getActivity()))
.itemsCallbackSingleChoice(mPresenter.getCurrentGoal() - 1, new MaterialDialog.ListCallbackSingleChoice() {
@Override
public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {
Goal goal = Goal.fromValue(getActivity(), text.toString());
if (goal != null) {
mPresenter.setCurrentGoal(goal.getIntValue());
}
return true;
}
})
.positiveText("Done")
.show();
}
SettingsFragment.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:CleanFit
作者:
评论列表
文章目录