Relative Content

Tag Archive for androidandroid-recyclerview

recyclerview selected item overlap

I have a recyclerview a list of hours that I have something like a sticker I can drag and drop I manage to let the sticker overlap other items by

Recycler item not filling width without inflating from parent

I know similar questions have been asked multiple times, but the usual answer is simply use .inflate(R.layout.some_layout, parent, false). In my case, where the RecyclerView is nested within a ViewPager2 in combination with a TabLayout, the suggested solution does fill the width but then seems to lead to a fixed height for the recycler, which is not what i want.

Getting crash in Play Store because Android RecyclerView

I’m using a Adapter and RecyclerView. I try to change the color of the first and last item in my RecyclerView
But I get this Crashe in play store here my adapter class and main code
my RecyclerView in NestedScrollView I read some tips online and applied them but the crash is not gone

How to scroll to the specific view in RecycleView?

I have DelegateAdapter for RV with a bunch of viewholders with different types. One type of them is Anchor, and I have to scroll to different Anchors. I know position of Anchor in my adapter’s list, but it do not match with position in RV because not visible views in RV are not attached. How can i scroll to it?

recyclerView does not have parameters

I wanted to make a simple app that would open a PDF/txt file and audio file with the same name simultaneously, and I was following this guide as it seemed to be the closest to what I wanted to achieve.

recyclerView does not have parameters(beginner level explanation please)

I’m completely new to android (some basic self-taught only java experience in last year).
I wanted to make a simple app that would open a PDF/txt file and audio file with the same name simultanously, and I was following this guide https://www.youtube.com/watch?v=TQg98mQL2hs as it seemed to be the closest to what I wanted to achieve.

Gap above recycler view (other posts didnt help)

In my recycler view I show friends list but for some reason there is a gap above it and i cant for the life of me get rid of it, im uusing android studios “navigation” project so it already came with a navigation bar, i should have just implemented one myself this never happened before.