由网友(迎夏)分享简介:如何在Android中创建自己的适配器?How to Create Own Adapter in Android?推荐答案创建扩展抽象类的 BaseAdapter 然后实现以下方法:Create a new class that extends the abstract class BaseAdapter an...
如何在Android中创建自己的适配器?
How to Create Own Adapter in Android?
推荐答案
创建扩展抽象类的 BaseAdapter 然后实现以下方法:
Create a new class that extends the abstract class BaseAdapter and then implement the following methods:
getCount将 的getItem getItemId getView您也可以搜索的适配器教程。我建议:
You can also search for adapter tutorials. I'd recommend:
读绑定数据用适配器 如上所述在入门上实施 在提问的时候,你有问题,你的执行 Reading the Binding to Data with AdapterView Getting started on an implementation as described above Asking questions when you have problems with your implementation的实施将取决于基础数据,你正试图重新present,所以一个单行的问题真的不会削减它。
The implementation will depend on the underlying data you are trying to represent, so a one-line question is really not going to cut it.
相关推荐
最新文章