标签:style blog color ar sp div on art log
1.设置背景图片,图片来源于drawable;
flightInfoPanel.setBackgroundDrawable(getResources().getDrawable(R.drawable.search_label_click));
2.转换字符串为int(颜色);
listItemView.deleteFilghtBg.setBackgroundColor(Color.parseColor("#F5F5DC"));
setBackgroundDrawable和setBackgroundColor的用法
标签:style blog color ar sp div on art log
原文地址:http://www.cnblogs.com/xgjblog/p/4048368.html