0

I have sub classed android.widget.ListView, it works in my app. However when I setChoiceMode(AbsListView.CHOICE_MODE_MULTIPLE) on an instance of my sub classed ListView the check boxes no longer appear next to each of the items as they did on the original ListView. Below is the sub class. What do I need to add to get the Check Boxes to appear as they did on the normal ListView?

package <MY_PACKAGE>

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

public class SListView extends ListView {

    public SListView(Context context) {
        super(context);
    }   

    public SListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }    
}
4

1 回答 1

0

本教程可能会对您有所帮助

于 2013-08-28T00:10:41.020 回答