일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- BottomSheetDialog
- Firebase
- 오즈뷰어
- Android
- socket-server
- 워치
- TIZEN
- Flavors
- cloud-firestore
- NoSuchMethodError
- mosquitto
- firebase-storage
- JNI
- hung-up
- socket-client
- OZViewer
- git-push
- AWS
- google-login
- ActivityResult-API
- firebase-database
- socket.io
- Java8
- mqtt
- Kotlin
- Dva
- gradle
- Galaxy Watch
- git
- ozd
- Today
- Total
Hyeyeon blog
[Android] TextInputLayout 본문
1. layout
<android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:hintTextAppearance="@style/TextAppearance.App.TextInputLayout" > <EditText android:id="@+id/et_name" android:layout_width="match_parent" android:layout_height="50dp" android:text="@{viewModel.name}" android:inputType="textPersonName" android:textColorHint="HINT_COLOR" android:hint="이름을 입력해주세요." android:textSize="16sp"/> </android.support.design.widget.TextInputLayout>
2. change label color
- 미지정시, textColorHint 값과 동일
<style name="TextAppearance.App.TextInputLayout" parent="@android:style/TextAppearance"> <item name="android:textColor">LABEL_COLOR</item> <item name="android:textSize">LABEL_SIZE</item> </style>
'개발 > Android' 카테고리의 다른 글
[Android] Dependency Injection vs Service Locator (0) | 2019.01.22 |
---|---|
[Android] Floating Button size (0) | 2019.01.17 |
[Android] Kotlin - Realm (0) | 2019.01.11 |
[Android] Kotlin - Firebase Dynamic Link (0) | 2019.01.10 |
[Android] Kotlin - Coroutine with Retrofit2 (0) | 2018.12.31 |