2013-01-09 92 views
2

我的应用程序崩溃时,我把这个代码中的背景线。当我删除这一行时,我的应用程序工作正常,而且当我使用另一张照片时,它也可以正常工作有什么问题?背景图像崩溃android

<?xml version="1.0" encoding="utf-8"?> 
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" 
android:background="@drawable/table2" > 

<Button 
    android:id="@+id/button1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="Button" /> 

</LinearLayout> 

主屏幕的背景也正常工作。但在第二页中,这是一个很有说服力的问题。

+0

在你的drawable文件夹中是否有文件table2? – Gridtestmail

+1

把你的日志猫错误 –

+0

你是什么意思'崩溃',请显示日志猫 – wtsang02

回答

2

感谢大家,我将尺寸从2500x1900改为1280x920,现在它可以工作。

1

如果您仅使用可绘制文件夹来存储所有图像,请更改drawable-xhdpi文件夹或更高文件夹中高分辨率图像的存储文件夹。 希望这有助于。