App Programming/Kotlin
[Kotlin] ImageView
goatlab
2023. 1. 12. 09:14
728x90
반응형
SMALL
ImageView

ImageView는 비트맵 (BitMap) 또는 Drawable 리소스 등의 이미지 리소스를 그리는 뷰 (View)이다.
|
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/snow"
android:maxWidth="100dp"
android:maxHeight="100dp"
android:adjustViewBounds="true"/>
scaleType
ImageView에 출력되는 이미지 비율, 크기를 설정한다.
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/snow"
android:scaleType="center"/>
|
728x90
반응형
LIST