We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//强迫症,看到 //设置背景推荐加入这个工具类 public static void setBackground(View view, Drawable drawable) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { //大于API-16 view.setBackground(drawable); } else { //小于API-16 view.setBackgroundDrawable(drawable); } }
The text was updated successfully, but these errors were encountered:
其实这个功能,你可以在自己项目中加一个 Util 方法,把它放在 lib 中不一定合适。
Sorry, something went wrong.
No branches or pull requests
//强迫症,看到
//设置背景推荐加入这个工具类
public static void setBackground(View view, Drawable drawable) {
The text was updated successfully, but these errors were encountered: