setBackgroundDrawable和set… 2014-05-30 10:57 95人阅读 评论(0) 收藏

1.设置背景图片,图片来源于drawable;

flightInfoPanel.setBackgroundDrawable(getResources().getDrawable(R.drawable.search_label_click));

2.转换字符串为int(颜色);

listItemView.deleteFilghtBg.setBackgroundColor(Color.parseColor("#F5F5DC"));

posted @ 2014-05-30 10:57  leansmall  阅读(72)  评论(0编辑  收藏  举报