Questions tagged [recyclerview-layout]

RecyclerView is a more advanced and flexible version of ListView. It was introduced with the Android L Developer Preview, but is also available as part of the Support Library.

RecyclerView is a more advanced and flexible version of ListView, introduced in the Android L Developer Preview but also backported to the Support Library. It is a container for large sets of views that can be recycled and scrolled very efficiently.

Yo use a RecyclerView, an adapter (extending RecyclerView.Adapter) and a layout manager (extending RecyclerView.LayoutManager) must be provided. By default, RecyclerView provides LinearLayoutManager, which shows the items in a vertical or horizontal scrolling list.

Official Documentation

Tag Usage:

436 questions
6
votes
1 answer

Get the column number where a view is on a GridLayoutManager

I have different types of items being rendered in a RecyclerView using a GridLayoutManager with dynamic column number. The problem is, I have an RecyclerView.ItemDecoration which is to be applied for let's say Type A items only. this…
6
votes
1 answer

Change focus sequence on next press button in recyclerview

My RecyclerView items contains three EditText. I want to move my focus from first EditText to second and third. Then after i want to set my focus on first EditeText of next RecyclerView's item. This all process will be happen when i press next…
Sumit Bhatt
  • 718
  • 4
  • 19
6
votes
0 answers

How to implement Google Photos feature of zooming to relayout image thumbnails

In the Google Photos app, we can see the photos grouped by the day, month or year that they were taken. To switch between the grouping modes, they have a great responsive animation where the size of the items in the grid changes according to the…
6
votes
2 answers

Android FlowLayout as RecyclerView LayoutManager

I want to implement a Tag Cloud with Android Chips. But i think the best way to do this is with a RecycleView and a custom LayoutManager. I search for a LayoutManager which layout its children like a FlowLayout but found nothing. Has someone found…
Happo
  • 1,375
  • 3
  • 16
  • 34
6
votes
0 answers

Custom vertical line can not show in RecyclerView

I want to create recyclerview by each list item has line vertical that custom. But I create list item then line do not show. custom_line line_story_view.xml
5
votes
1 answer

How to show partial item in Horizontal RecyclerView at last to indicate scrolling?

I have tried to search the answer like in this thread: RecyclerView LinearLayoutManager set item count But it doesn't exactly solve my problem because it shows fixed items. I want to make RecyclerView like the image below as you can see in the…
Alexa289
  • 8,089
  • 10
  • 74
  • 178
5
votes
2 answers

RecyclerView ScrollY always 0

I have a RecyclerView inside a fragment. I need to be notified of scroll changes, so I added a callback to the ScrollChange event (which corresponds to the SetOnScrollChangeListener in classical Android API): private void…
5
votes
1 answer

Fragment, Volley and RecyclerView

I hope someone out there can help me solve my problem. I have android app that have 3 tabs, i use fragment, first tab is recyclerView list, second tabs is map. the problem is in tabs 1, i need to fetch data with volley to recyclerView on tabs 1, if…
5
votes
3 answers

RIpple effect on RecyclerView not working on light tap

I have tried to implement the ripple effect on my RecyclerView. Here's my layout for it :
5
votes
1 answer

How to scroll the RecyclerView programatically by a specific pixels?

I had extended recyclerview so i can scale it. It works the way I wanted it but now I wanted to programmatically scroll by x amount of pixels. The user story for this is that, if I tap on the upper half part of the screen, it should scroll by x…
Neon Warge
  • 1,817
  • 6
  • 29
  • 53
4
votes
2 answers

RecyclerView setting a image in the wrong place

I have a recycle view, 2 differents adapter and I have a default Image. The problem is that when a user doesn't have an image, sometimes it loads an other user image instead of the default image. (I also check if user doesn't have imagelink, it…
4
votes
4 answers

Switch between RecyclerView layouts when click on AlertDialog item list

I have three different layouts cardsListLayout , titleLayout , cardMagazineLayoutand there may be more in the future, which used as a views on onCreateViewHolder method. I want to switch between views in onCreateViewHolder method so when user …
4
votes
2 answers

Item inserted at first position is not visible until scrolling up

Scenario: my adapter supports two different view types: A & B the adapter is notified about 100 items of type A - everything is rendered correctly the adapter is notified about one item of type B insertion using notifyItemRangeInserted at position…
Mariusz
  • 1,825
  • 5
  • 22
  • 36
4
votes
3 answers

Select All Items in a Recycler View with click on single item

I will Explain my question a little bit. There's a checkbox in my recycler view layout, who's is invisible at the start. When I click on one of the items of recycler view, I want the checkbox to be visible in all the items. I have searched the…
4
votes
0 answers

RecyclerView adapter getItemViewType method sometimes returns 2, 8, etc etc instead of 0 or 1

Below is the code which i am using: public class PaymentAndReceiptAdapter extends RecyclerView.Adapter { private static final int TYPE_HEADER = 0; private static final int TYPE_ITEM = 1; public Context context; …
Ankur
  • 677
  • 1
  • 7
  • 21
1 2
3
29 30