代码:
创新互联主要从事成都网站设计、做网站、网页设计、企业做网站、公司建网站等业务。立足成都服务皮山,十多年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792
String secondInfo = "<font color=\"#B7B7B7\">" + "空余位: " + "</font>" + "<font color=\"#D95F5F\">" + "1072" + "</font>" + "<font color=\"#B7B7B7\">" + " 总车位: "+"1162" + "</font>"; holder.tv_second.setText(Html.fromHtml(secondInfo)); String thirdInfo = "<font color=\"#B7B7B7\">" + "价格: " + "</font>" + "<font color=\"#EAB547\">" + "61" + "</font>" + "<font color=\"#B7B7B7\">" + " 元/小时" + "</font>"; holder.tv_third.setText(Html.fromHtml(thirdInfo));
效果:
