public void showColourDialog(int type) {
switch (type) {
case 1:
new ColorChooserDialog.Builder(this, R.string.dialog_colour_primary_title)
.preselect(Utils.getPrefsColour(1, getApplicationContext()))
.show();
break;
case 2:
new ColorChooserDialog.Builder(this, R.string.dialog_colour_accent_title)
.accentMode(true)
.preselect(Utils.getPrefsColour(2, getApplicationContext()))
.show();
break;
}
}
MainActivity.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:AndroidFileHost_Browser
作者:
评论列表
文章目录