29,642 questions
0
votes
1
answer
42
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 ...
0
votes
1
answer
67
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 ...
2
votes
0
answers
398
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 ...
0
votes
1
answer
58
views
Initialization of recycler view using rootViewContext
fun RecyclerView.applyHorizontalDecoration(context: Context, spacing: Int){
with(this){
Log.i("sachin", "$context,,,,,,,, ${rootView.context}")
...
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 ...
1
vote
0
answers
37
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....
0
votes
1
answer
42
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 ...
1
vote
1
answer
86
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, ...
0
votes
1
answer
34
views
Why does RecyclerView.canScrollVertically occasionally throw "Attempt to invoke virtual method ...View.getLayoutParams()' on a null object reference"?
Layout:
<RelativeLayout
android:id="@+id/relativeLayoutMain"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="...
0
votes
0
answers
53
views
How to prefetch and cache RecyclerView items BEFORE they're visible
I have a RecyclerView that displays 100 videos in a vertically scrolling list. Each item in the list is a webview of the JWPlayer showing the thumbnail of the video. My list displayed 2 items in the ...
0
votes
0
answers
38
views
EditText in RecyclerView only allows one character input at a time
The EditText input is limited correctly to 7 characters using InputFilter.LengthFilter(7), and that part works as expected.
However, I'm having a strange issue: when I type into the EditText inside a ...
0
votes
2
answers
51
views
Cannot move TextView that is constraint to RecyclerView when RecyclerView items are dissapearing
I have 2 recycler views and one text view. What I am trying to do is when I click from top recyclerview(recyclerViewNotClickedItems) the items, they will disappear and they will appear in the bottom ...
1
vote
0
answers
36
views
RecyclerView bitmap generation - stop Progressbar animation
I use this example to generate pdf file from recyclerview. I call the getScreenshotFromRecyclerView function inside doInBackground of an AsyncTask and the bitmap is generated successfully.
The problem ...
-1
votes
1
answer
54
views
How can i check the button state in recyclerview?
I'm currently working on an app. There are three fragments. One is the home page fragment where there's a list of some popular locations of the world listed in a RecyclerView. And the other one is the ...
0
votes
0
answers
46
views
Show and hide notification red dot when the alarm is triggered in android
I have an item list in recylerview, whenever an alarm is triggered for an item, I want that item to have red dot on its corner to let the user know that they need to take some action. I have tried a ...
1
vote
1
answer
87
views
RecyclerView retains old data in ViewHolder when new items miss some attributes – how to properly reset?
I have a RecyclerView where each item can have dynamic attributes (e.g., some items have distance and difficulty, while others only have distance).
When a ViewHolder is reused, old attribute values ...
0
votes
0
answers
28
views
Android ConcatAdapter: disable scrolling of header adapter view
Trying to add custom static header to RecyclerView. ConcatAdapter looks good, but is it possible to freeze the header view at the top of list? Thanks.
0
votes
0
answers
18
views
Animation measure() function is not calculating full height issue
The measure() function is not calculating the correct height on the first click, which is causing the full height issue.
The RecyclerView is getting an incorrect height on the first click, but after ...
1
vote
1
answer
22
views
RecycleView with Swipe Gestures: Content is not Returning to its Original Position when I Interact with Another Item
As the title suggests, I'm trying to make a RecyclerView that reveals a button when swiped to the left, while making it so that the content will remain visible when it is swiped. I managed to do so by ...
0
votes
0
answers
15
views
How to "persist" data/view while scrolling RecyclerView
I'm implementing an Excel-like table with RecyclerView like this:
The RecyclerView is wrapped with a ScrollView, because the requirement is only the RecyclerView is scrollable, not the entire ...
0
votes
0
answers
41
views
Android recyclerview requestFocus when scrolling up and down for edittext items only
I have recyclerview consisting of edittexts only. Those edittexts have various length. I want to stop scrolling my recyclerview on onViewAttachedToWindow when holder.getAdapterPosition() == vhIndex.
...
0
votes
1
answer
105
views
firebase database user submitted posts retrieve to android recycler view in date wise
This is my HomeView Fragment Activity
public class HomeView extends Fragment {
private View view;
private RecyclerView recentPosts;
private DatabaseReference donor_ref;
FirebaseAuth mAuth;
private ...
0
votes
0
answers
18
views
How to Exclude Plugin Apps from System Apps in Android PackageManager?
I'm developing an Android app that categorizes installed applications into system apps and user apps using PackageManager. My current filtering logic for system apps is:
PackageManager packageManager =...
0
votes
1
answer
48
views
Activity with RecyclerView not calling OnCreate
I am trying to build a list with a recycler view. I created the recycler view, an adapter and set the adapter with default values in OnCreate and then later in that function I call a firebase async ...
0
votes
1
answer
53
views
RecyclerView Adapter onCreateViewHolder ReInvocation Issue Despite Single Item in List
Problem Statement :
I'm facing an issue where the onCreateViewHolder method in my RecyclerView.Adapter is being called multiple times, even though there is only one item in the list. This is ...