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
0
votes
4 answers

Android recyclerView with cardview layout issue

I am creating a layout as show in the First image. I am using RecyclerView with Cardview to complete this screen but as you can see in the emulator output i am not getting the desired layout(shown in the first Image) as it looks crazy as all items…
0
votes
3 answers

Layer doesn't show with recycleview

I'm doing a bitcoin tracker app, so i can learn the basics of json parsing, but my app layer stays blank as i run the app. This is my RecycleViewAdapter: package Adapters; import android.content.Context; import…
specbk
  • 99
  • 2
  • 13
0
votes
1 answer

Layout_tostartof not working after inflating RelativeLayout in RecyclerView

I'm using RecyclerView with horizontal orientation of Linear Layout Manager for making horizontal scroll view. In my ViewHolder I use RelativeLayout, and at the bottom of my layout I have two small images "img_1" and "img_2", where "img_2" is…
0
votes
1 answer

RecyclerviewAdapter notifyItemInserted causes previous item blink when adding

I'm creating an app, where listitems are showing into recyclerview. And the newly listitem is showing at the end of the list. So I'm using below code to add the new list item into…
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
0
votes
1 answer

How can I create this specific view holder using recyclerView

I want the recyclerView to: enable the user to insert an image to be a background place the user's caption text on the light black ribbon at the bottom image. have the heart on the top right corner of the image, which can be clicked by a…
0
votes
3 answers

Recycler View background image gets shrink when keyboard popups through editText

I have a recycler-view with a sample background in my activity but I'm stuck in an error. Whenever keyboard popups in the activity, the background of recycler-view gets shrink. How to avoid this thing. Means how to stop it from being shrinking ?…
Ahsan Arif
  • 65
  • 1
  • 1
  • 7
0
votes
2 answers

How to set initial layout_width of cards in Recycler View to Match_Parent?

I am facing issue with rendering items in recycler view. The problem happens with the items that are initially loaded as you can see in the pic below that layout width doesn't become screen wide(match_parent). Now when I scroll, new items do span…
0
votes
1 answer

Multiple View Holdes vs Single view holder with all views defined and properly handling visibility. Which is better for Recycler View?

Which approach is better while using recycler view? Is it better to have different view holders for different views or single view holder with all the different layouts defined in it and handling the visibility of layouts appropriately? And why the…
0
votes
1 answer

ANDROID : better way of populating a recycler view from volley request, GETS DUPLICATE

My volley request is working however I have this problem. As shown below is my typical volley request. This is to get rows from a table and display them in a recyclerview with cardviews. I have put the whole process in a method for easy recalling. I…
0
votes
1 answer

Error occur in recyclerView

This app is getting data directly from API. When it goes to run such type of error occurs. Basically I think the error occurs in the getItemCount() method but i'm not be able to resolve the problem. I've attached the error file and the whole code.I…
0
votes
1 answer

recyclerview go to top when I clic on item and open dialog

When I clic on item I can open a dialog with the details of the item clicked. But the problem is when I clic on item the recyclervie go to top and then appear the dialog. I want the recyclerview keep its position when appear the dialog and when…
Pierre
  • 1
  • 2
  • 9
0
votes
0 answers

How can i have ExpandableRecyclerView and Recycler View at the same time?

i have a doubt about ExpandableRecyclerView and RecyclerView: I'm trying to make a menu using these two classes' children but i think i can't find anything that can add more "rows", this is what i've made: RecyclerView recycler =…
0
votes
1 answer

How to make placeholder for RecyclerView that takes up rest of vertical space?

I am currently making a RecyclerView with 1 header section and n content sections. __________________ | HEADER | |----------------| | CONTENT_1 | |----------------| | CONTENT_2 | |----------------| | | | …
AlanSTACK
  • 5,525
  • 3
  • 40
  • 99
0
votes
2 answers

Data from JSON does not appear on the RecyclerView layout

I have created RecyclerView and showing data from JSON. Issue I'm facing is, while Toast data is showing correctly, but in RecyclerView same data is not appear. Here is code: public class MainActivity extends AppCompatActivity { private static…
0
votes
0 answers

SurfaceView on top of a RecyclerView using FrameLayout

I try to put a SurfaceView on top of a RecyclerView using FrameLayout (wow that was the title :D). But even if I do not draw at all in the SurfaceView the screen gets black and I can not see the RecyclerView at all. The three initializes in my…
user3465614