이미지 파일 추가하기 - AndroidStudio

CODEDRAGON Development/Android

반응형

   

   

안드로이드 스튜디오에 이미지 추가하기

   

"Project" 뷰로 변경한 후 >>

"app\src\main\res\drawable" 경로로 이동합니다.

   

drawable 디렉토리에 이미지 파일을 드래그 앤 드롭으로 복사해 넣습니다.

   

OK

   

   

   

activity_main.xml

<ImageView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:id="@+id/imageView"

android:layout_centerVertical="true"

android:layout_centerHorizontal="true"

android:src="@drawable/southkorea"

/>





반응형