代码:
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));
效果:
时间: 2024-10-13 16:20:12