getBindingAdapterPosition1 [Android Studio] Do not treat position as fixed; only use immediately and call viewHolder.getAdapterPosition() to look it up later_ 해결 Recyclerview 구현하여 ClickEvent 추가 하니 Lint error 발생 '위치를 고정해서 쓰지 마세요' 라니 무슨말인지 이해가 안가지만 위에 나와있는대로 postion을 사용했던 곳에 getAdapterPosition() 함수 사용하니 getAdapterPosition은 더이상 사용하지 않음 그래서 재구글링 결과 getBindingAdapterPosition(); - adapter의 position getAbsoluteAdapterPosition(); - recyclerview의 position 난 adapter를 중첩해서 사용하진 않았으니 뭘 사용하든 같은 값으로 반환 되서 상관 없지만 중첩해서 사용할 경우 상황에 맞게 써야 할듯 positon을 사용한 곳에 getAbsoluteAdap.. 2023. 12. 28. 이전 1 다음 LIST