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
    'App Programming > Kotlin' 카테고리의 다른 글
| [Kotlin] 파이어베이스 구글 로그인 (0) | 2023.01.15 | 
|---|---|
| [Kotlin] 파이어베이스 (Firebase) (0) | 2023.01.15 | 
| [Kotlin] TextView (0) | 2023.01.12 | 
| [Kotlin] UI 프로그래밍 (2) (0) | 2023.01.12 | 
| [Kotlin] UI 프로그래밍 (1) (0) | 2023.01.12 |