일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 헤르메스 엔진
- 하우스플리퍼인테리어
- React Native
- 리액트 네이티브 ios
- baseurl 오류
- 안드로이드
- react
- 리액트네이티브 라이브러리 커스텀
- react native privacy manifest
- 리액트 네이티브 헤르메스
- hermes engine
- onScrollToIndexFailed
- removeClippedSubviews
- RecyclerView
- patch package
- 리액트네이티브 hooks
- privacy manifest
- Android
- 라이브러리 커스텀
- 리액트네이티브
- Graveyard Keeper
- Kotlin
- unable to resolve module
- tsconfig baseurl
- react native lodash
- 하우스플리퍼
- react native hooks
- react native hook
- ReactNative
- 스팀게임추천
Archives
- Today
- Total
숨참고 개발다이브
[안드로이드/java]scrollview 안에 recyclerview 스크롤 문제 본문
728x90
xml에 리사이클러뷰 감싸는 레이아웃에
android:descendantFocusability="blocksDescendants"
추가,
java에서는
recyclerView.setHasFixedSize(true);
recyclerView.setNestedScrollingEnabled(false);
추가하면 된다.
코드 전체
recyclerView.setHasFixedSize(true);
RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(mContext);
recyclerView.setLayoutManager(mLayoutManager);
adapter = new Adapter(mContext, dongList, listener);
recyclerView.setNestedScrollingEnabled(false);
recyclerView.setAdapter(adapter);
300x250
'개발 > Android' 카테고리의 다른 글
[안드로이드/kotlin] ViewTreeObserver로 View의 크기 구하기 (0) | 2022.05.30 |
---|---|
[안드로이드/Kotlin] RecyclerView를 이용한 GridView 생성하기 (GridLayoutManager) (0) | 2022.05.26 |
[안드로이드/java] BottomSheet 스크롤 할 때 slideOffset 으로 background 조절 (0) | 2019.04.13 |
[안드로이드] TextView 한 줄만 표시하기 (뒷 부분 ... 으로 생략) (0) | 2019.01.16 |
[안드로이드/java] 안드로이드 웹뷰 캐시 삭제 (0) | 2019.01.07 |
Comments