用那会搜两下子 太复杂了 乱七八糟的 明明几句话的事
温度显示那就是了 不缩小了 就这样吧String temperatureStr = null;
if (weather != null) {
temperatureStr = weather.showapi_res_body.now.temperature + "℃";
Spannable sp = new SpannableString(temperatureStr);
sp.setSpan(new AbsoluteSizeSpan(15, true), temperatureStr.length() - 1, temperatureStr.length(),
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
weather_temperature_tv.setText(sp);
网友评论