Android 笔记
获取Color:
ContextCompat.getColor(context, R.color.color_name);
获取ActionBar:
ActionBar actionBar = getSupportActionBar();
menu 使用 showAsAction:
引用
xmlns:app="http://schemas.android.com/apk/res-auto"
app:showAsAction="ifRoom"
获取Color:
ContextCompat.getColor(context, R.color.color_name);
获取ActionBar:
ActionBar actionBar = getSupportActionBar();
menu 使用 showAsAction:
引用
xmlns:app="http://schemas.android.com/apk/res-auto"
app:showAsAction="ifRoom"