Questions tagged [android-pagedlistview]
18 questions
3
votes
3 answers
Error: "Type mismatch. Required: Observer!>". How to fix?
I'm using PagedListAdapter and pagedListLiveData without Room to display a large list of items.
In code below i'm trying to submit adapter to PagedList.
val pagedListLiveData = LivePagedListBuilder(sourceFactory, pagedListConfig)
…
Gregory
- 575
- 4
- 13
3
votes
2 answers
How to update a single item in a PagedListAdapter
I've implemented the new PagedListAdapter with an ItemKeyedDataSource. My list contains feed items with a like button. A click on the like button should refresh the item.
To refresh my list item on a like button click, i update the state in my…
Luciano
- 2,278
- 4
- 31
- 55
1
vote
0 answers
How to update Android LiveData Factory
I am using Room database layer with LiveData and PagedList to render a ReceycleView List of chat messages in my app.
This is how my setup looks like:
DataSource.Factory factory = ChatDb.getMessages(conversation);
…
Ilya Gazman
- 27,805
- 19
- 119
- 190
1
vote
0 answers
RecyclerView inside ConstraintLayout with 0dp height doesnt call adapter&holder
Im using RecyclerView with PagedListAdpter
If i set recyclerView's height&width with MATCH_PARENT, adapter.submitList(someList) works fine,
But If i set height&width to 0dp(for constraintLayout) it doesnt work, Methods inside Adapter and ViewHolder…
sssrigo
- 11
- 1
1
vote
1 answer
Apply Transforamtion.map upon a LiveData
Inside my ViewModel class i have defined my paged list configuration
private val pagedListConfig: PagedList.Config = PagedList.Config.Builder().apply {
setEnablePlaceholders(true)
setInitialLoadSizeHint(10)
setPageSize(10)
…
james04
- 798
- 5
- 20
1
vote
1 answer
What is ContiguousPagedList?
I was looking into Android Paging, and there seems to be a Concrete imprementation of PagedList as ContiguousPagedList. What's the use of this class? Looked to find it's usage / reason for existence but didn't find any. Can anyone explain why this…
erluxman
- 13,712
- 15
- 67
- 99
1
vote
1 answer
Pagedlistadapter return no item in recyclerView
I am trying to use PagedListAdapter to a custom RecyclerView, (link here).
In my ViewModel, when observing the data retrieved with Observer(adapter::submitList) no item is shown.
When debugging this line:
productViewModel.allProducts.observe(this,…
Otourou Da Costa
- 27
- 1
- 6
1
vote
1 answer
Scroll bar of PagedListView from left side to right side of content in Android
How to move Scroll bar including page up and page down arrows of android PagedListView from left side to right side of the content. Any help is appreciated.
Subrat
- 3,718
- 6
- 34
- 48
0
votes
0 answers
Android Paging Library emit initially empty list
here is my movieList observer in View
compositeDisposable.add(
viewmodel.movieRemoteList.observeOn(asyncManager.main())
.subscribe({
Log.i("RESPONSE :: ", it.toString())
…
Win Phyoe Thu
- 198
- 8
0
votes
0 answers
Update PagedList items dynamically?
I have a multiple PagedList in my main fragment. Some of the PagedList display the current distance from the user. I want to update each item every time the location is changed. I have tried updating every item in Room, however I am worried this is…
0
votes
0 answers
how to trigger PaggedList Datasource Loadafter/LoadBefore from loadInitial
I am currently dealing with customized ItemKeyedDataSource working on Messaging app.
I'm facing this problem when i initialize the DataSource some times there is no data to fetch from initialize to insert! so loadafter and loadbefore will not called…
lvl4fi4
- 1,035
- 1
- 8
- 17
0
votes
0 answers
When i refresh my pagelist, My items in PageAdapter will be misplaced for a short time
As above pic show, The items will be misplaced momently while i refresh.
smartRefresh.setOnRefreshListener {
mViewModel.observeComposition(ConnectivityUtil.isNetworkReachable(this),mLabelId.toInt(),lifecycleScope).observe(this,…
Cyrus
- 6,067
- 6
- 24
- 46
0
votes
0 answers
TextView MeasuredHeight is not properly calculated when Android RecyclerView scrolls
Probably this is the most common question regarding Android RecyclerView in stackoverflow and yet I could not find any suitable solution anywhere which fulfils my requirement.
My Problem
I am using Paging Library with Room Database and Retrofit to…
Arighna maity
- 13
- 4
0
votes
2 answers
Can't set page size for PagedList - Android jetpack
I have just added paged library into my project. This is my implementation.
PagedList.Config pagedListConfig = new PagedList.Config.Builder().setEnablePlaceholders(false).setPageSize(10).build();
videos = new LivePagedListBuilder<>(
…
Zappy.Mans
- 354
- 1
- 2
- 14
0
votes
1 answer
Android Room how to search by text when using DataSource.Factory?
In my project using PagedListAdapter for pagination and the app also able to search by keyword.
DAO.kt
@Query("SELECT * FROM Item WHERE name LIKE :keyword")
fun getItems(keyword: String): DataSource.Factory
Create
lateinit var…
a-rohim
- 417
- 1
- 4
- 13