TextView의 Text길이가 길때 Text의 length 뿐만아니라 실제로 그려지는 길이를 알고 싶을 때가 있는데 이때 사용하면 유용하다.
view.getPaint();
Paint Class
Return the width of the text. | |
Return the width of the text. | |
Return the width of the text. | |
Return the width of the text. |
* view에 Text를 할당 한 뒤 사용한다.
'Android' 카테고리의 다른 글
ovenapp.io를 통한 앱 프로토 타입 구현 (0) | 2016.02.23 |
---|---|
EditText가 SoftKeybroad에 가릴 때 (0) | 2016.02.17 |
BroadcastReceiver vs WakefulBroadcastReceiver (0) | 2016.02.15 |