Note : Yang barisnya di komen, pake tag sup,kurang bagus hasilnya, terlalu gede :
private void SetSuhu() {
temperature = "35";
TextView tvSuhu = (TextView) findViewById(R.id.tvSuhu);
//tvSuhu.setText(Html.fromHtml(temperature + "<sup>o</sup>" + "50℃" ));
tvSuhu.setText(Html.fromHtml(temperature + "°"));
}
0 comments :
Post a Comment