2010년 8월 2일 월요일

TextView의 텍스트 간격 넓히기(자간 간격)

android:lineSpacingExtra  : 라인의 간격을 더하기로 계산 Text의 height + LineSpacing
android:lineSpacingMultiplier : 라인의 간격을 곱하기로 계산 Text의 height * LineSpacing

[android:lineSpacingExtra]


Extra spacing between lines of text.
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 lineSpacingExtra.

[android:lineSpacingMultiplier]


Extra spacing between lines of text, as a multiplier.
Must be a floating point value, such as "1.2".
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 lineSpacingMultiplier.