-2

I want to make image/picture as background but using android:background="#ffff" makes it white and it works. As soon as I change to android:background="@drawable/background_image" and run it, crash.

2 Answers2

1

try it with another image.

sometime when you have Image in Png extintion then change it to jpg extenction you need to invalidate/restart the android stdiuo

Mohammad Rbabah
  • 456
  • 2
  • 10
0

Maybe your image is too big and it has high resolution, try compressing and resizing it http://resizeimage.net/ using this website and put the compressed image as background if that doesn't work also try to put the image in xhdpi or xxhdpi folder

Badran
  • 515
  • 1
  • 7
  • 21