29,641 questions
0
votes
1
answer
48
views
How to convert recyclerview items along with other layout data to bitmap
when capturing the layout to a Bitmap, the non-RecyclerView parts of my layout appear correctly, but the RecyclerView content is missing,
How can I correctly convert a layout containing a RecyclerView ...
1
vote
0
answers
36
views
Android (Java) usinf RecyclerView: 'ViewHolder' cannot be safely cast to 'RowViewHolder'?
Using AndroidStudio I had asked Google's Gemini to convert me a piece of code of my Android Java application from using a ScrollView to using a RecyclerView instead for more efficient scrolling ...
0
votes
1
answer
74
views
RecyclerView Item move animation and strange behavior of on item click
I created a simple RecyclerView in Java and implemented item click handling in the adapter's onBindViewHolder method with this action that the clicked item moves to position 0.
@Override
public void ...
0
votes
2
answers
97
views
IndexOutOfBoundsException when scrolling to end of RecyclerView
I'm new to Android development and have tried to implement a SearchView alongside a RecyclerView to display and filter restaurants. However, when I scroll down to the bottom of the listed restaurants, ...
2
votes
0
answers
412
views
Recycler view does not update until scrolled when using DiffUtil and submitList() with a reversed Array List
I have an array list of log entries, which consists of an a time and date with a description. I want the user to be able to reverse the direction from oldest to newest and back again.
I am using ...
1
vote
0
answers
40
views
Android Kotlin DiffUtil.ItemCallback seems to have a blind spot
In my RecyclerView, I used ListAdapter combined with DiffUtil.ItemCallback.
class CustomDiffCallback : DiffUtil.ItemCallback<TypeInterface>() {
override fun areItemsTheSame(p0: TypeInterface,...
0
votes
1
answer
64
views
Initialization of recycler view using rootViewContext
fun RecyclerView.applyHorizontalDecoration(context: Context, spacing: Int){
with(this){
Log.i("sachin", "$context,,,,,,,, ${rootView.context}")
...
0
votes
1
answer
69
views
onBindViewHolder in Android recylerview is not called when update is triggered via setOnCompletionListener
I have been having a problem since quite some time and I have tried many things to understand and get rid of it without any success. Actually I am developing a music app with different songs that can ...
0
votes
0
answers
62
views
RecyclerView IndexOutOfBoundsException with Paging3 and Selection Library (tryGetViewHolderForPositionByDeadline)
I am developing an Android app in Java that displays a grid of Japanese Kanji characters using RecyclerView with a GridLayoutManager. I'm using the Android Jetpack Paging3 library to load data from a ...
0
votes
0
answers
56
views
ItemTouchHelper drag gesture releases after moving one item in RecyclerView with ListAdapter
I'm implementing drag-and-drop functionality in a RecyclerView using ItemTouchHelper and a ListAdapter. Swiping items works perfectly, but I'm facing a strange issue with dragging.
The Problem
When I ...
1
vote
0
answers
41
views
Why doesn't the copy/paste context menu appear when I long-press on text inside a RecyclerView item?
During the recycling and reuse process of RecyclerView (items/views).Why doesn't the copy/paste context menu appear when I long-press on text inside a RecyclerView item?
If I use holder....
1
vote
1
answer
97
views
Android Studio Recycler View Adapter Holder Reference
So what I'm trying to achieve is the following:
I have a list of items in the recycler view (upto) 24 line items in the recycler.
In one list view item there will be a left and right item that a user ...
0
votes
1
answer
48
views
Android Adapter not always updating data
Hello I am having trouble with a problem where on my recycler view it displays sometimes the associated items given in the view. I had this problem earlier and what seem to make it work for the first ...
0
votes
0
answers
40
views
Android doOnLayout in recyclerView views
So this question is regarding the use of doOnLayout and the undesired effect it has when the view that is using it is being recycled.
So far I have been using this function to perform an action when ...
1
vote
1
answer
93
views
Android Complex UI : Initial Creation Takes ~100ms — Is This Expected or Can It Be Optimized?
I’m working on an Android app that uses a RecyclerView with a custom Adapter and ViewHolder. The RecyclerView contains EditText views, and the properties of these views (such as text, color, padding, ...