RV 관련하여 질문드립니다.
312
작성한 질문수 7
안녕하십니까, 강사님 좋은 강의 너무 잘 듣고 있습니다.
단순히 따라하는 것 보다 제가 여러 기능들을 추가하고 있는데요,
관심목록에 있는 책 들의 가격의 합을 RV밑에 출력해주려고 합니다.
그래서 다음과 같이 변경하였습니다.
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_favorite_books"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:scrollbars="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
<TextView
android:id="@+id/favorite_sum_price"
android:text="SUMPRICE"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/rv_favorite_books"
app:layout_constraintRight_toRightOf="parent"/>rv 밑에 총 가격을 담아주고 위와 같이 설정해주었습니다.
하지만 rv부분에 item들은 출력이 되지 않고, 가격만 출력되고 있습니다.
이게 혹시 paging관련해서 잘못된 것인지, rv부분의 height를 0dp로 바꾸면 잘 나오긴 합니다..
답변 1
0
rv부분의 height를 0dp로 바꾸면 문제가 없다는 말씀인가요? constraint layout 내부에서 남은 전체영역을 쓰고 싶으실 때는 wrap_content가 아니라 0dp로 쓰시는 것이 맞습니다.
Coroutine, Flow 질문
0
401
1
Transformations import 안됨
0
588
1
moshi관련 질문입니다.
0
566
2
searchBooks() 에서 북 검색 입력을 너무 빨리 할 경우 마지막 글자로 검색이 안돼요.
0
375
1
안드로이드에서 아키텍처 패턴
0
423
1
RecyclerView.Adapter vs ListAdpater
0
473
1
Flows 와 Coroutine
1
572
1
[BookSearchAdapter] onBindViewHolder의 currentList[position] 질문
0
370
1
코루틴 메모리 관련해서 질문드립니다!
0
456
1
Java Bill Pugh Solution 에서 INSTANCE
0
469
1
nested json에서 특정 부분만 파싱하는법
0
495
1
Fragment에서의 viewBinding
0
525
3
toolbar 질문드립니다.
0
417
2
EditText 에서 delay 주셔서 처리하셨는데 flow 의 debounce() 하고 같은건가요?
2
568
1
코루틴 관련 질문
0
549
1
오류
1
494
2
강사님! 직렬화 라이브러리를 Moshi, kotlin serialization 두개를 사용하시던데 이유가 있으신가요?
1
749
1
EditText 는 kill 해도 값이 잘 저장되어있던데 혹시 제가 잘못테스트했을까요?
1
354
1
서버도 페이징 기능이 되는데 Paging 라이브러리가 필요할까요?
1
530
1
GSON 이 아닌 Moshi 를 사용하시는 이유가 있을까요?
1
1271
1
EditText 는 액티비티가 재생성되어도 값이 남아있던데 이유가 궁금해요
1
498
1
ViewModel 생성시 왜 초기값을 받지 않도록 했을까요?
1
438
1
Room DB에 id 항목 추가
0
255
1
안녕하세요. 용어에 대해 질문이 있어 글 남깁니다.
0
408
2





