목록이 업데이트 될 때마다 목록의 맨 아래로 강제 스크롤되는 목록보기가 있습니다. 그러나 목록 맨 아래로 스크롤 한 후 어떤 이유로 목록보기가 고정되고 사용자가 목록에서 앞뒤로 스크롤하여 다른 데이터를 볼 수 없습니다.setSelection 후 스크롤 목록보기 허용
질문 : setSelection(list.getBottom())
이후에 전체 목록을 다시 스크롤 할 수있게하려면 어떻게해야합니까?
@Override
public View getView(int position, View convertView, ViewGroup parent) {
/* the list is being populated here - the code has been omitted */
list.populateFrom(date, name, class);
list.clearFocus();
list.post(new Runnable() {
@Override
public void run() {
list.setSelection(list.getBottom());
}
});
return list;
}
}
감사 upvote에 없어! 나는 다른 곳에서 내 setSelction을 움직 였고 이제는 완벽하게 작동합니다 :) – BurninatorDor
당신을 환영합니다! 그것이 작동한다는 것을 듣기 좋은 :-) –