1.View.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(backgroundColor)));
注:backgroundColor爲 16進制顏色值
2.ARGB顏色轉16進制顏色:
int color = Color.argb(float alpha, float red, float green, float blue)
1.View.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(backgroundColor)));
注:backgroundColor爲 16進制顏色值
2.ARGB顏色轉16進制顏色:
int color = Color.argb(float alpha, float red, float green, float blue)