반복되는 이미지로 linearlayout의 배경을 설정하고 싶습니다. 파일이 2 개 있습니다.android에서 배경 오류를 수정하는 방법?
main_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/bg"
android:tileMode="repeat" />
및 main.xml에
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main_bg"
>
그리고 난 폴더 당김에 이미지를 bg.png했습니다.
Eclipse에 오류가 있다고합니다.
오류 : 오류 : 지정된 이름 ('background'값 '@ drawable/main_bg')과 일치하는 리소스가 없습니다.
문제를 해결하는 방법은 무엇입니까?