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
- broadcast reciver
- coil
- GSON
- 프리코스
- layoutinflater
- activity
- buildSrc
- EditText Button
- 우테코 6기
- 4대 컴포넌트
- 이미지 로딩
- 멀티모듈
- 코틀린
- android studio
- Glide
- 우아한테크코스
- 우테코
- Android
- constraint
- 안드로이드 키보드
- serialization
- compose
- 최상단
- onscrollstatechanged
- 로또 미션
- recyclerview
- 안드로이드 스튜디오
- 컴포즈
- 안드로이드
- moshi
Archives
- Today
- Total
정답보다 해답을
[Android] EditText 선택 시 버튼이 올라오는 현상은 왜 그럴까? 본문
개인 프로젝트 중 오류아닌 오류를 보았다.
EditText 영역을 선택하면 가장 하단에 있는 버튼이 올라오게 되는 것
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_register_complete_button"
style="@style/AppButtonPrimary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="25dp"
android:text="@string/label_register_item_button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
해당 버튼 코드는 다음과 같이 작성되었다.
설마 키패드가 올라오는 순간 키패드 윗부분까지를 parent값으로 인식하는 것인가? 라는 궁금증에
app:layout_constraintBottom_toBottomOf="parent"
이 코드를
app:layout_constraintTop_toBottomOf="@id/가장 하단의 태그"
이렇게 수정했다.
'Android' 카테고리의 다른 글
[Android] Menifest, 앱의 자기소개서 (1) | 2024.10.19 |
---|---|
[Android] 안드로이드 4대 컴포넌트와 인텐트 (4) | 2024.10.19 |
[Android] Spannable과 정규식으로 해시태그 기능 만들어보기 (2) | 2024.10.19 |
[Android] SwipeRefreshLayout 새로고침 구현 (1) | 2024.04.02 |
[Android] [NaverAPI] [ERROR] NoClassDefFoundError 해결 (0) | 2024.03.09 |