스크롤뷰나 리스트뷰가 항목이 많으면 스크롤이 길어지잖아요?
맨 처음 쪽에서 맨 끝으로 이동하고싶을때, 혹은
예를들어 70번째 리스트가 화면에 나오게 한다든가
할 수 있는 방법이 없나요?
스크롤뷰도.. 버튼으로 중간쯤으로 이동하게 한다거나 하는게 가능할 지 질문드립니다.
ListView에 원하는 위치로 이동하는 메서드가 있습니다.
http://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int)
public void smoothScrollToPosition (int position)Since: API Level 8Smoothly scroll to the specified adapter position. The view will scroll such that the indicated position is displayed.ParameterspositionScroll to this adapter position.
Smoothly scroll to the specified adapter position. The view will scroll such that the indicated position is displayed.
앗 그렇군요...... 감사합니다
좀더 찾아봤어야 하는거였네요 ㅠㅠ
로그인 유지
ListView에 원하는 위치로 이동하는 메서드가 있습니다.
http://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition(int)
public void smoothScrollToPosition (int position)
Smoothly scroll to the specified adapter position. The view will scroll such that the indicated position is displayed.
Parameters