But after read the android.graphics.Color of Android quickly there is a same and useful function Color.parseColor(String), just be careful the string shall format to "#FF123456" or "#123456".
Here is the code:
imageView.setBackgroundColor(Color.parseColor("#FF00BB00"));
No comments:
Post a Comment