adapterPosition

    [Android] RecyclerView LayoutPosition vs AdapterPosition 차이를 알아보자!

    개발을 하던 중, RecyclerViewAdapter를 구현해야 하는 상황이 생겼습니다. 그러다 문득 ViewHolder 내부 메서드를 살펴보았는데, 이 중 position을 반환하는 함수가 정말 다양하다는 사실을 알게 되었습니다. 그럼 position을 반환하는 많은 메서드 중에서, 과연 무슨 함수를 사용해야 하는 것일까? 한 번 차근차근 살펴보도록 하겠습니다! /** * @deprecated This method is deprecated because its meaning is ambiguous due to the async * handling of adapter updates. You should use {@link #getLayoutPosition()} or * {@link #getAdapterP..