rab*_*ana 0 eclipse android drawable
错误:找不到与给定名称匹配的资源(在'background'处,值为'@ drawable/mydroidbg.png').
这是我的图像的位置:C:\ Users\Rogeross\Documents\ECLIPSE\MyFirstApp\res\drawable-hdpi\mydroidbg.png
这是main.xml代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/mydroidbg.png" //error here
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="TOTO ANDROID"
android:gravity="center"
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="PRESS ME!!"
android:textSize="19dp"
android:textStyle="bold"
/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我已经清理过,刷新了我的项目,但它仍然无法看到我的图像文件...请帮助....
| 归档时间: |
|
| 查看次数: |
2139 次 |
| 最近记录: |