All Questions

117
votes
16answers
130893 views

recyclerview No adapter attached; skipping layout

just implemented Recyclerview in my code, replacing Listview. everything works fine. The objects are displayed. but logcat says 15:25:53.476 E/RecyclerView﹕ No adapter attached; skipping layou...
127
votes
18answers
120676 views

Android Recyclerview GridLayoutManager column spacing

How do you set the column spacing with a RecyclerView using a GridLayoutManager? Setting the margin/padding inside my layout has no effect.
69
votes
8answers
76139 views

RecyclerView expand/collapse items

I want to expand/collapse the items of my recyclerView in order to show more info. I want to achieve the same effect of the SlideExpandableListView. Basically in my viewHolder I have a view that is ...
75
votes
13answers
103778 views

How to properly highlight selected item on RecyclerView?

I am trying to use a RecyclerView as a horizontal ListView. I am trying to figure out how to highlight the selected item. When I click on one of the items, it gets selected and it is highlighted prope...
70
votes
12answers
114658 views

Get clicked item and its position in RecyclerView

I am replacing my ListView with RecyclerView, list showing ok, but I would like to know how to get clicked item and its position, similar to the method OnItemClickListener.onItemClick(AdapterView pare...
20
votes
1answers
5545 views

How to Overlap items in LinearLayoutManager - RecyclerView (like stacking cards)

Is that possible to overlap the items from RecyclerView ? I am trying that with LinearLayoutManager. My requirements are just the same as in LinearLayoutManager and I just need to overlap the items i...
16
votes
6answers
14613 views

StaggeredGridLayoutManager and moving items

I have created a very simple project, displaying 28 images with StaggeredGridLayoutManager by recyclerview. but as I scroll the recyclerview it moves items for example from left to right or swap the c...
1
votes
2answers
2413 views

Recycle-view inflating different row :- Getting exception while binding the data

I am working on the Recyceview with different item inflation. When i am NOT binding the data on onBindViewHolder method of RecycleView than it Does not crash.. But when i am binding the data inside t...
81
votes
13answers
35241 views

Equivalent of ListView.setEmptyView in RecyclerView

In RecyclerView, I want to set an empty view to be shown when the adapter is empty. Is there an equivalent of ListView.setEmptyView()?
45
votes
6answers
68618 views

How to update/refresh specific item in RecyclerView

I'm trying to refresh specific item in RecyclerView. Story: Whenever user clicks on item, it shows AlertDialog. User can type some text by clicking ok button. I want to show this text in this item an...

Previous Next