Extending AdapterView

前端 未结 3 479
生来不讨喜
生来不讨喜 2020-12-31 07:08

i\'m trying to make (for learning purposes) my own implementation of a simple AdapterView where items comes from an basic Adapter (ImageAdapter from sdk samples).

Ac

3条回答
  •  清歌不尽
    2020-12-31 07:59

    Instead of extending the AdapterView, why dont you try with the baseAdapter. When you costumize your Adapter, it has oen method given below.

    getView(int position, View convertView,ViewGroup group) 
    

    in above method you can access the layout for each list item of the listview and here you can set the all supported events for each control.

提交回复
热议问题