http://blog.naver.com/PostView.nhn?blogId=dizmahs&logNo=110096591297
Type | Attribute | Description |
입력방식 | android:singleLine | 한 줄로만 표현, 스크롤 및 개행 불가 |
android:digits | 유효 글자 제한, ex)ab면 ab만 입력 가능 | |
android:numeric | "integer" : 숫자만 입력 "signed" : 부호 가능 "decimal" : 소수점 가능 | |
android:phoneNumber | 전화번호 입력 방식 | |
android:password | 비밀번호 입력 방식, * 로 표시됨 | |
android:capitalize | "characters" : 글자 모두 대문자 "words" : 단어의 첫 글자만 대문자 "sentences" : 문장의 첫 글자만 대문자 | |
Focus | android:selectAllOnFocus | 선택 시 전체 선택됨 |
android:cursorVisible | “true” : 커서 활성 “false” : 커서 비활성 | |
편집관련 | android:ellipsize (singleLine에서 적용) | "start" : 첫 부분 절삭 "middle" : 중간 절삭 "end" : 뒷부분 절삭 "marquee" : 좌우로 Scrolling 함, - default : 포커싱이 될때만 적용 - android:focusable=”true” 설정시 marquee 상태 유지됨 |
android:marqueeRepeatLimit (singleLine에서 적용) | "integer" : 기본 3, integer값 만큼 왕복 "marquee_forever" : 계속 반복 | |
링크 | android: autoLink | "email" : e-mail 링크 연결 "map" : 지도로 연결 "web" : web 브라우저로 연결 "phone" : 전화 걸기로 연결 "all" : 전체 |
설정 | android:textStyle | bold, italic, bolditalic 로 설정 |
android:shadowColor | 그림자 색상 설정 | |
android:shadowDx | 글자와 그림자 거리 x설정 | |
android: shadowDy | 글자와 그림자 거리 y설정 | |
android: shadowRadius | 그림자의 크기 | |
android: textScaleX | 텍스트 높이에 대한 폭의 비율로 장평 조절 | |
줄 간격 설정 | ||
android:lineSpacingExtra | 줄 간격 추가 설정 | |
android:lines | 라인 설정을 한다. android:layout_height=”wrap_content” 일때 자동으로 높이가 lines value 크기 만큼 강제 설정된다. | |
android:minLines | android:layout_height=”wrap_content” 일때 최소 line 설정 | |
android:maxLines | android:layout_height=”wrap_content” 일때 최대 line 설정 | |
android:ems | 수평 크기를 ems 기준으로 한다. | |
android:minEms | android:layout_height=”wrap_content” 일때 최소 ems 설정 | |
android:maxEms | android:layout_height=”wrap_content” 일때 최대 ems 설정 |
[출처] EditText / TextView 속성|작성자 켄시우드
'Android' 카테고리의 다른 글
How to use Jackson to deserialise an array of objects (0) | 2013.10.31 |
---|---|
Endless Scrolling ListView in Android (0) | 2013.10.31 |
@TargetApi (0) | 2013.10.10 |
What is the list of valid @SuppressWarnings warning names in Java? (0) | 2013.10.10 |
ArrayList<String> 내 중복된 데이터 제거하기 (0) | 2013.10.10 |