How to set the opacity of a ListView row in android? -


i want set opacity of each , every listview row using android:alpha. tried doing row doesn't transparent background. have colorful background of layout , want glass or transparent type of row of listview. how can it?. don;t want use adapters this. please suggest simple methods.

view backgroundimage = findviewbyid(r.id.background); drawable background = backgroundimage.getbackground(); background.setalpha(80); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -