Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
// I use this method to determine the change screen orientation Activity.isChangingConfiguration()
和
ColorDrawable.getColor() // I use this method to get activity background color
这些方法是在 api 版本 11 中添加的。现在我必须使用最低版本的 api - 8。
对不起我的英语不好。
谢谢
这项工作为颜色
getResources().getColor(R.color.gray_light);
对于方向:旧帖子。尝试使用谷歌,或者这个网站搜索引擎 :) 祝你好运