16条Android开发小经验
摘要:1. TextView中的getTextSize返回值是以像素(px)为单位的,而setTextSize()是以sp为单位的.所以如果直接用返回的值来设置会出错,解决办法是用setTextSize()的另外一种形式,可以指定单位:setTextSize(intunit,intsize)TypedVa...
阅读全文
posted @ 2015-03-27 10:46
posted @ 2015-03-27 10:46
posted @ 2015-03-20 11:45
posted @ 2015-03-20 11:44