이미지 리소스는 drawble 폴더에 저장하여 사용
ImageView 클래스를 통해 화면에 출력
ImageView 클래스
android:adjustViewBounds -> true / false
원래 이미지의 가로 세로 비율을 유지
android:maxHeight // maxWidth
출력 가능한 최대 높이 / 너비
android:src
"@drawable/이미지 파일명"
android:layout_gravity
부모 컨테이너 내부에서 출력될 자식 뷰의 위치
top, bottom, left, right, center_vertical, center_horizontal, center
android:layout_marginBottom
현재 뷰 아래의 간격
'안드로이드 프로그래밍' 카테고리의 다른 글
계수기 (숫자 세기 앱) (0) | 2023.11.13 |
---|---|
갤러리 (0) | 2023.03.13 |
텍스트 (0) | 2023.03.13 |
3장 앱 프로젝트 구조와 실행 원리 (0) | 2023.03.10 |
텍스트의 활용 (0) | 2023.02.07 |