Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- LiveData
- docker-compose
- MINUS
- docker
- animation
- lifecycle
- Service
- Foreign Key
- Filter
- Kotlin
- Generic
- AWS
- ConstraintLayout
- union
- CLASS
- 생명주기
- mongoose
- function
- list
- ReactNative
- Interface
- collection
- recyclerview
- vuex
- class component
- Swift
- elementAt
- enum
- map
- react native
Archives
- Today
- Total
개발 일기
Edit Text ? 본문
android EditText는 TextView를 상속받은 클래스입니다.
TextView는 단순히 Text를 보여주는 역할을 한다면 EditText 입력 및 수정까지 가능한 위젯입니다.
사용법 :)
<EditText
android:id="@+id/sampleTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="text"
android:text="SampleTv" />
android:hint="@string/app_name" | 텍스트를 입력하지 않았을 때 보여주는 내용입니다. |
android:textColorHint="@color/colorAccent" | 힌트에 색깔을 지정합니다. |
android:inputType="number" , "text" , "textPassword" | 사용자가 입력시 키보드에 필요한 형식만 강제로 부여합 니다. |
android:selectAllOnFocus="true" | EditText 클릭시 텍스트 영역을 전체 선택된 상태로 변환 |
android:maxLength="5" | 입력 가능한 텍스트 수를 지정합니다. |
android:enabled="true" | EditText 사용 여부 입니다. |
android:ems="8" | 최초 기본 너비를 설정합니다. |
android:lines=1 | 줄 개수를 설정합니다. (최초 사이즈 확보) |
android:capitialize="words" | 자동으로 대문자로 변경합니다. |
'Client > 안드로이드' 카테고리의 다른 글
Git push가 제대로 작동하지 않을 경우 !? (0) | 2020.03.12 |
---|---|
View ? (0) | 2020.03.11 |
TextView ? (0) | 2020.03.09 |
RecyclerView 이란? (0) | 2020.03.09 |
android key Hash 구하기 (0) | 2020.03.07 |
Comments