ListActivity

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ListActivity

Postby Txorl » Wed Jun 10, 2009 1:18 pm

Hello

I am using a ListActivity in one of my projects and i would like to add a background image to this Activity.

This is what i have done so far on my onCreate method:
this.getWindow().setBackgroundDrawable(this.getResources().getDrawable(R.drawable.background));

and it work´s fine.. but the problem appears when i scroll through the list.
Then a black background appears until the list stops scrolling. Then the background png file is shown again.

Does someone know how I could add the background to my ListActivity so that it stays permanently?

Thanks in advanced

Txorl
Txorl
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 17, 2008 3:12 pm

Top

Postby jerry » Thu Jun 11, 2009 8:50 am

you can add imagebutton with your backimage
jerry
Freshman
Freshman
 
Posts: 2
Joined: Fri Jun 05, 2009 11:48 am

Postby ashish » Thu Jun 11, 2009 9:31 am

just set your listview property "cache color hint to #00000000"

cheers :wink:
ashish
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Fri Feb 20, 2009 8:09 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests