![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/015.gif)
📱테스트 환경
Samsung Galaxy Android 13 • Android 10
😢 내가 겪은 문제
화면 정 가운데 배치하는 것 쯤은 쉽게 할 수 있게 기록을 해두려고 한다.
언제든지 복사해서 쓸 수 있도록 ImageView 를 여기다가 옮겨놓도록 해야겠어 ....!!
<ImageView
android:id="@+id/ImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
/>
다 필요없고 밑에 코드만 넣어두면 전체화면 가운데에 정렬된다. ImageView 가 됐든 TextView 가 됐든 동일하다 !!
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
'Android > Kotlin' 카테고리의 다른 글
[Kotlin] App Version 변경 하는 방법과 버전 규칙 (0) | 2023.08.12 |
---|---|
[Kotlin] Squicle 디자인 XML 코드 작성 (0) | 2023.08.12 |
[Kotlin] intent.() vs intent. setFlags() 차이점 (0) | 2023.08.10 |
[Kotlin] MAC .apk • .aab Build (0) | 2023.08.10 |
[Kotlin] ByteArray -> Bitmap Image Resize (0) | 2023.08.09 |