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 |
Tags
- Dialog
- BottomSheetDialog
- Kotlin
- RealtimeDB
- 밑줄
- ArrayList
- ViewModel
- androidstudio
- textview
- 팝업액티비티
- 뷰바인딩
- Imageview
- ButtonWithButton
- 안드로이드 스튜디오
- EditText
- FRAGMENT
- nav_graph
- OutlinedButton
- firebase
- 안드로이드스튜디오
- Activity
- button
- lifecyclescope
- ROOM
- 랜덤ID
- 코틀린
- Android
- MaterialButton
- firebasefunctions
- 안드로이드
Archives
- Today
- Total
목록Edittext image (1)
안드로이드 앱 개발
Edittext 왼쪽 이미지 사이즈 크기 조절하는 방법
1. 먼저 edittext에 이미지를 넣으려면 xml 속성에서 android:drawableLeft="@drawable/serach_maingrey" 위 속성을 추가하면 된다. (오른쪽에 넣으려면 drawableRight) However, 이미지 크기가 원본 이미지 그대로 들어가기 때문에 조절이 필요하다. 2. 따라서, drawble에 크기까지 지정한 xml파일을 만든뒤 적용해준다. drawable_left_image_search.xml 3. Edittext에서 정해주기 android:drawableLeft="@drawable/drawable_left_image_search" android:drawablePadding="10dp"
안드로이드앱/EditText
2021. 3. 28. 17:46