ㆍpx : 사용중인 화면 픽셀
e.g. "10px"
ㆍin : 인치
e.g. "0.5in"
ㆍ mm : 미리미터
e.g. "10mm"
ㆍpt : 포인트 수(사용화면에서 1/72인치)
e.g. "10pt"
ㆍdp : 해상도 비
e.g. "10dp"
ㆍdip : Density-Independent Pixels. 밀도에 독립적인 화소.. 이것을 써서 레이아웃을 만들어야 한다.
e.g. "10dip"
ㆍsp : scaled pixels based on preferred font size
e.g. "20sp"
android:textSize
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp
". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).
This may also be a reference to a resource (in the form "@[package:]type:name
") or theme attribute (in the form "?[package:][type:]name
") containing a value of this type.
This corresponds to the global attribute resource symbol textSize
.