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
- react-native
- NanoHttpd
- css
- React
- 코테
- 티스토리챌린지
- it
- 파이썬
- 광고 id
- nginx
- spring boots
- EC2
- toml
- chrome
- Express
- Next
- AWS
- JavaScript
- 오블완
- docker
- 백준
- 개발
- TypeScript
- python
- kotlin
- 코딩테스트
- Android
- Jenkins
- 오퍼월
- nuxt
Archives
- Today
- Total
내맘대로 개발일지
[Kotlin] Layout 화면 가운데 배치하는 방법 본문

📱테스트 환경
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 |