if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
{
getListView().setSelection(0);
} else
{
getListView().post(new Runnable()
{
@Override
public void run()
{
getListView().smoothScrollToPositionFromTop(0, 0, 100);
}
});
}
ListView快速定位第一行
最新推荐文章于 2017-03-06 19:19:39 发布