29,594 questions
Advice
0
votes
1
replies
64
views
Create a tableview in Android: How to define the column-width in RecyclerView with fixed header?
In android java I want to implement a table view using a RecyclerView
The table should have a fixed header (that is always visible) and there should be columns with different with-s.
My current ...
0
votes
1
answer
109
views
Handling EditText focus loss inside RecyclerView during scroll - how to emulate iOS behavior?
I'm running into an edge case with EditText inside a RecyclerView and wondering if anyone has found a clean workaround.
The Issue: We are tracking cursor positions in the adapter, so scrolling up and ...
1
vote
1
answer
128
views
How can I display Edittext and checkbox input (+showing checkbox labels) into a recyclerview (using 2 activities, 1 for input, 1 for display)
I'm wondering how can I make it so that in a recycler view, the input from the editTexts and the input from the checkboxes are displayed into that recycler view.
I mainly would like to see if the ...
Tooling
0
votes
5
replies
76
views
My app's LazyColumn Doesn't feel as "lightweight" or "loose" as other android apps
I am new to android development with Kotlin and jetpack compose, and i have no experience with xml and views.
I switched from flutter to kotlin because of the janky scrolling on flutter's ListView, ...
3
votes
0
answers
407
views
How can the RecyclerView's Observer return the current filtered list after item delete?
I have a RecyclerView list of CardViews with an Observer in the MainActivity and a ListAdapter to load the CardViews for the UI. I also set up a ViewModel, Repository, DAO and Room database to store ...
0
votes
0
answers
42
views
Recycler View Sums
I am trying to add all adjacent edit texts in each row of a recycler view and display the result of adjacent sums in each text view of that row. The issue is when my app launches everything seems fine ...
0
votes
0
answers
73
views
Problem with "moving" checkBox in xml layout
I have the following layout as a row in a recyclerview.
My problem is that the checkbox doesn't remain anchored to the right (end) of the screen.
Instead it attaches itself to the end of "title&...
0
votes
0
answers
136
views
How to show full UI and make RecyclerView scrollable in bottomsheet fragment?
I'm using BottomSheetDialogFragment with this layout:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android&...
2
votes
1
answer
163
views
Outline spot shadow has unwanted vertical offset if view shape has uneven corners and is used as a RecyclerView item
I'm facing a layout issue with a vertical RecyclerView whose items use are MaterialCards with custom shapeAppearanceOverlay which has asymmetric corners (top-left corner radius = 0dp, all other ...
1
vote
1
answer
96
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
69
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
103
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
106
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
448
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
42
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,...