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 |
Tags
- 추상 팩토리
- 디자인패턴 #
- F
- 빌터패턴
- a
- Kotlin
- factory method
- 팩토리 메소드
- PrototypePattern
- Abstract Factory
- 코틀린
- 추상팩토리패턴
- Functional Programming
- 옵저버 패턴
- builderPattern
- 싱글톤
- designPattern
- El
- 함수형프로그래밍
- Design Pattern
- ㅓ
- Observer Pattern
- 프로토타입 패턴
- ㅋㅁ
- r
- 디자인패턴
- Singleton
Archives
- Today
- Total
오늘도 더 나은 코드를 작성하였습니까?
MDC - Text Field 본문
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/password_text_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:hint="@string/shr_hint_password"
app:errorEnabled="true"
app:helperText="wrong password"
app:counterEnabled="true"
app:counterMaxLength="6"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/password_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
app:errorEnabled="true"
- 텍스트 필드 아래에 오류 메시지에 대한 추가 패딩이 추가
app:helperText="wrong password"
- 에러 발생시 도움말 표기
app:counterEnabled="true"
- 입력된 글자 표기
app:counterMaxLength="6"
- 최대입력 글자 설정
app:passwordToggleEnabled="true"
- Deprecated됨 endIconMode를 통해 지정해야 합니다.
'Android Material Design' 카테고리의 다른 글
Android styling: themes vs styles(번역 및 학습) (0) | 2022.10.25 |
---|---|
Style hierarchy & Basic Theme (0) | 2022.10.25 |
Android Material Design(Style & Theme이란) (0) | 2022.10.25 |
MDC-Button (0) | 2022.02.18 |
Android material design(머터리얼 디자인) (0) | 2022.01.28 |