0
我在獲取背景以在模擬器中顯示時遇到問題。它將顯示在main.xml上,但沒有錯誤。因此,屏幕的正出現黑色的,這裏是我的main.xml:設置背景圖片不起作用
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background = "@drawable/clearskies">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
是的,我也有我的圖像中繪製文件夾和拼寫是否正確,圖像是巴紐
任何人都可以看看我在這裏做錯了什麼?
謝謝
這個xml對我來說工作正常。清理項目。嘗試使用新創建的模擬器? – 2012-03-16 23:16:43
提供您的源代碼,以便我們可以幫助您,否則@WinMyoHtet說xml是好的 – 2012-03-17 02:52:09