android-recyclerview Questions
5
Solved
At First, my RecyclerView items are ok, but on scrolling, items are shown on the wrong position for example: item 6 shown in position 67. Although onClick listener and getAdapterPosition() works go...
Collate asked 4/7, 2016 at 10:17
6
Solved
I have a Recyclerview in a NestedScrollview.. everything is working fine except one thig. I have total three view in NestedScrollview First two are LinearLayout then Recyclerview. when i run my app...
Salesroom asked 7/11, 2015 at 15:2
3
Solved
In my Staggered Grid with 2 columns I use the effect of infinite list to automatically load elements 10 by 10, everything works fine except when I scroll up. The first two elements change their pos...
Donnydonnybrook asked 14/12, 2015 at 17:40
3
I have a RecyclerView inside of a ConstraintLayout whose top starts at the bottom of a textView, and whose bottom stretches down to the parent. I want the items in this RecyclerView to default to t...
Deel asked 28/11, 2017 at 19:15
15
Solved
I am trying to remove all the elements from my RecyclerView in my onRestart method so the items don't get loaded twice:
@Override
protected void onRestart() {
super.onRestart();
// first clear ...
Profusive asked 30/4, 2015 at 22:10
23
I have this code for a RecyclerView.
recyclerView = (RecyclerView)rootview.findViewById(R.id.fabric_recyclerView);
recyclerView.setLayoutManager(layoutManager);
recyclerView.addItemDecoration(new R...
Thrill asked 21/3, 2016 at 9:53
4
Solved
I'm currently working on Adding Friends with the help of firebase RecyclerView in which if a user tap on ADD button, he is added in database n that tapped item is needed to be removed permanently.....
Chickenlivered asked 27/3, 2016 at 20:47
13
I'm using RecyclerView as a list to show songs that can be downloaded. Each item has ProgressBar in its View. When the download starts, then I use a Handler to notify each item to update the Progre...
Alby asked 6/5, 2015 at 13:52
7
Solved
How do we know if user scrolled down or up in RecyclerView ?
I tried with RecyclerView#OnScrollListener , it gives the amount of vertical scroll and the scroll state. How do we get the last scroll ...
Somatoplasm asked 13/3, 2015 at 2:45
16
Solved
I am used to put an special view inside the layout file as described in the ListActivity documentation to be displayed when there is no data. This view has the id "android:id/empty".
<TextView
...
Butte asked 29/1, 2015 at 14:42
5
I have a fairly typical List functionality using a CoordinatorLayout, AppBarLayout, SwipeRefreshLayout and RecyclerView -
When the RecyclerView has enough content to scroll, the page seems fine. W...
Roentgen asked 5/2, 2016 at 13:12
6
The RecyclerView.scrollToPosition() is extremely strange.
for example, supposed a RecyclerView named "rv".
if now item 10 is under the current RecyclerView, call rv.scrollToPosition(10), the Recy...
Memorabilia asked 25/10, 2015 at 10:47
3
Solved
I have a RecyclerView with an adapter that uses AssyncListDiffer. The problem I have is that the recyclerview is not updated when changes happen in the LiveData. The observer is notified but the li...
Phenazine asked 9/5, 2020 at 12:49
53
Our QA has detected a bug: when rotating the Android device (Droid Turbo), the following RecyclerView-related crash happened:
java.lang.IndexOutOfBoundsException:
Inconsistency detected. Invali...
Ulysses asked 13/5, 2015 at 16:44
1
I am comparing the two list to find the differences between them using a custom implementation DiffUtil Callback but those two list have different size and when i logged the elements being compared...
Dunne asked 8/7, 2017 at 6:31
11
Solved
I am Trying to remove my item from recyclerview, but i always getting error
java.lang.IllegalStateException: Cannot call this method while
RecyclerView is computing a layout or scrolling
i a...
Martita asked 5/4, 2017 at 4:30
4
Solved
I'm planning to develop an app that shows some dynamic data inside a recyclerCardView. So i decided add a recyclerView called CheckBoxRecyclerView
inside my main recyclerView. This is my code for m...
Monica asked 2/1, 2016 at 18:25
2
In my app I am using, CollapsingtoolbarLayout together with RecyclerView. Both are working. But I am having a problem with scrolling them. What I want is I want whenever i scroll RecyclerView direc...
Ormond asked 8/12, 2023 at 10:38
12
The RecyclerView, unlike to ListView, doesn't have a simple way to set an empty view to it, so one has to manage it manually, making empty view visible in case of adapter's item count is 0.
Implem...
Chaperon asked 14/11, 2015 at 16:27
3
Design of my app
Screen - 1
<NestedScrollview>
<LinearLayout orientation:horizontal">
<RecyclerView-1>
<Framelayout>(contains Recyclerview-2)
</NestedScroll>
...
Oldline asked 9/6, 2018 at 4:44
8
Solved
I found out how to preview a list item by using
tools:listitem="@layout/my_item_layout"
Android studio however is previewing the recyclerview as a vertical list. Is there a way to tell Android ...
Discordancy asked 28/2, 2016 at 10:39
2
Solved
I have tried to search the answer like in this thread: RecyclerView LinearLayoutManager set item count
But it doesn't exactly solve my problem because it shows fixed items.
I want to make Recycle...
Accustom asked 5/2, 2019 at 9:23
10
Solved
Several developers have reported seeing the following stack trace since upgrading to Android Support 23.2.0:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.suppo...
Keary asked 4/3, 2016 at 0:54
3
Solved
I am building an Android TV app with the following layout:
Both lists on the left and on the right are RecyclerViews with vertical LinearLayoutManagers, Header view is static. Navigation with D-P...
Mohamedmohammad asked 4/2, 2016 at 14:35
2
I really want to set focus on a specific RecyclerView item.
I tried
recyclerView.scrollToPosition(1);
in my initializeRecyclerView method. I tried also
holder.setSelected(selectedItem==positio...
Cwmbran asked 27/11, 2017 at 22:59
© 2022 - 2024 — McMap. All rights reserved.