4gats 2023. 3. 13. 19:54

이미지 리소스는 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

현재 뷰 아래의 간격