views:

467

answers:

1

dear friends,

i want have an image and i want to set it as a background of android list view

i have used android:background="drawable/image" but nothing happened

can any one guide me how to achieve this?

any help would be appricated.

+2  A: 

Perhops

android:background="@drawable/image"

noticing the @

Also make sure your project's res/drawable folder contains a valid image file called image.jpg or image.png.

Jim Blackler
can i use only jpg and png format nothing else?
UMMA
I'm not entirely sure if other formats are supported, but those are the recommended formats and in my opinion will cover most of your needs.
Jim Blackler