간단한 버튼을 하나 만들어보자

버튼을 만들면 바로 layout_width 가로방향 layout_height 세로방향에 대한 설정을 적으라고 나온다

wrap_content : 내용에 맞게 조절
match_parent : 화면의 폭만큼 설정
가로와 세로가 둘다 wrap_content인 경우


가로가 match_parent인 경우


세로가 match인 경우


둘 다 match인 경우


'IDE' 카테고리의 다른 글
| Android studio Device File Explorer sdcard (0) | 2025.01.25 |
|---|---|
| Android studio DatePicker FileOutputStream FileInputStream (1) | 2025.01.24 |
| Android studio Linear Layout (0) | 2025.01.22 |
| The current request is not a multipart request (0) | 2025.01.18 |
| java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for (1) | 2025.01.17 |