Search...

Sunday, November 13, 2011

How to disappear the list view divider in android


Override the below adapter method and return false.

Step1:

public class CustomAdapter extends BaseAdapter {
public boolean areAllItemsEnabled() {
return false;
}

public boolean areAllItemsSelectable() {
return false;
}

public boolean isEnabled(int position) {
return (false);
}

}

Step2: listView.setAdapter(new CustomAdapter() );


No comments:

Post a Comment