2014-10-16 4 views
-1

헤이 하나 하나. 저는 스타터 인 안드로이드 프로그래머입니다. 어떻게 커스텀을 만들 수 있을지 알고 싶습니다. 예를 들어 어떻게 활동의 배경 이미지를 설정할 수 있습니까?활동의 배경 이미지를 변경하는 방법

답변

0

장소 다음 활동의 xml 파일에 안드로이드 프로젝트의 drawable 폴더에있는 이미지 파일,

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/myId" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@drawable/backgroundImage"> <!--specify the image here--> 
</RelativeLayout> 
관련 문제