10 自定义实现BaseAdapter必须实现下面那些接口?()
A: public int getCount()
B: public Object getItem(int position)
C: public Object getItem(int position)
D: public View getView(int position,View convertView,ViewGroup parent)
A: public int getCount()
B: public Object getItem(int position)
C: public Object getItem(int position)
D: public View getView(int position,View convertView,ViewGroup parent)
举一反三
- 8 自定义实现BaseAdapter必须实现下面那些接口?() A: public int getCount() B: public Object getItem(int position) C: public Object getItemId(int position) D: public View getView(int position,View convertView,ViewGroup parent)
- 自定义适配器需要实现BaseAdapter类的几个方法?( ) A: getCount() B: getItem(int position) C: getItemId(int position) D: getView(int position, View convertView, ViewGroup parent)
- ListView自定义适配器BaseAdaper方法getView(int position, View convertView, ViewGroup parent),第一个参数position为要显示的第几个数据?
- getView(int position, View convertView, ViewGroup parent)方法中,()参数是当前Item的位置
- 下面哪个方法不是Object类中定义的方法?( ) A: public boolean equals(Object obj) B: public int compareTo() C: public String toString() D: public int hashCode()