listview 如何使用字符串参数移动到顶部位置?

问题描述 投票:0回答:0

listview 如何使用字符串参数移动到顶部位置?? 我的情况, 动物

  • 山羊
  • 老虎
  • 大象
  • 长颈鹿

我想滚动列表 tiger is on top by not using

listview1.setSelection((int)3);

而不是对其进行排序。但使用相同的情况,使列表视图滚动到 tiger

我卡住了,我查看了android文档,但找不到它。

android arrays listview android-listview
© www.soinside.com 2019 - 2024. All rights reserved.