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