ArrayAdapter 有方法add(T object)
在列表末尾添加一个对象。
有没有办法在列表的开头添加对象?
您可以使用.insert(T object, int index) http://developer.android.com/reference/android/widget/ArrayAdapter.html#insert(T,%20int)为此,使用0
作为索引:
yourAdapter.insert(object, 0);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)