android -> TextView setTextSize(int unit, float size) -- px,sp,dip

TextView setTextSize(int unit, float size)

TypedValue.COMPLEX_UNIT_PX   //Pixels 

TypedValue.COMPLEX_UNIT_SP   //Scaled Pixels 

TypedValue.COMPLEX_UNIT_DIP  //Device Independent Pixels

猜你喜欢

转载自mft.iteye.com/blog/2363949