@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_about:
new MaterialDialog.Builder(this)
.title(R.string.about_title)
.content(R.string.about_content)
.theme(Theme.LIGHT)
.titleColor(R.color.primary_text_default_material_light)
.contentColor(R.color.primary_text_default_material_light)
.positiveText(R.string.dialog_close)
.show();
return true;
case R.id.action_settings:
startActivity( new Intent(this, SettingsActivity.class) );
return true;
default:
return super.onOptionsItemSelected(item);
}
}
BaseActivity.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:UnofficialHendrixApp
作者:
评论列表
文章目录