Set divider in List view

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

Set divider in List view

Postby vikramdeshpande » Mon Dec 28, 2009 9:25 am

I want to set horizontal line image after each list item. And below is code for same.

listView.setDivider(Drawable.createFromPath("/res/drawable/line_hor.png"));
listView.setDividerHeight(5);

Is anything wrong in it? Please help...
vikramdeshpande
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Nov 10, 2009 11:40 am
Location: India

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests