Questions tagged [gridlayoutmanager]

A RecyclerView.LayoutManager implementations that lays out items in a grid.

A RecyclerView.LayoutManager implementations that lays out items in a grid. More info on the docs: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html

403 questions
0
votes
1 answer

items in GridLayoutManager (RecyclerView) changes position on scroll android

What I have I have a GridLayoutManager (RecyclerView) that has position 0,2,5,7 fixed with custom images (relative layout converted to bitmaps) & rest positions are filled with server images My problem When I scroll the items in the layout changes…
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
0
votes
2 answers

How to have gridlayout and linearlayout using RecycleView Android from Menu list

I have a list but I want to make an option for the users to view it in List or Grid. The choices are in the menu. Here's the menu_user_list.xml
0
votes
1 answer

GridLayoutManager in both orientations at once

Is it possible to override GridLayoutManager to be able to use it in both directions (vertical and horizontal) at once? (User can scroll horizontally and vertically at the same time)
Mariusz
  • 1,825
  • 5
  • 22
  • 36
0
votes
1 answer

RecyclerView+GridLayoutManger in the ViewPager+Fragment cause NullPointerException

09-24 19:27:06.711 3474-3474/com.mstation.firstblood E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.mstation.firstblood, PID: 3474 java.lang.NullPointerException at…
0
votes
1 answer

Why does pack and grid override the parent widget's predefined dimensions?

I noticed each time I create a Tkinter widget and set its dimensions either during the widget instantiation or by configuring them later, these last ones take no effect as soon as I add child widgets inside the parent one where I organize them using…
user4772964
0
votes
1 answer

Put containers within Grid Layout

I am relatively new to programming java GUI's and I wanted to use the grid layout and put a container within that grid layout. I am not really sure how to do it but here is what I tried and it didn't work: Container pane = getContentPane(); …
andstu
  • 3
  • 1
-1
votes
1 answer

Recyclerview item custom span

I'm implementing an image selection screen that looks like the below image I want to use recyclerview to implement this but don't know how to do it. Help me to figure out it. Thanks in advance!! [Edit]: number of items is not fixed.
-1
votes
3 answers

i want to make this using gridlayoutmanager recyclerview

I want to show image listing like below image using gridlayoutmanager span.
Gundu Bandgar
  • 2,593
  • 1
  • 17
  • 21
-1
votes
1 answer

ScrollView with nested RecyclerViews and bidirectional scroll

I would like to achieve the result shown in the gif below Two list views which scroll vertically together and one of them can also scroll horizontally to show more contents. I saw it in a card from Google Discover and I would like to apply it in…
-1
votes
1 answer

How to get the number of spanCount(number of columns)

I am currently working on a refactoring task which requires replacing ListView(GridView) by RecyclerView. In a part of the job, it requires to get the span count. As the former code has a method to get the number of columns of GridView like…
Jack
  • 13
  • 4
-1
votes
1 answer

Load more than 10 items in RecyclerView with GridLayoutManager of 3 span count on first time

I using GridLayoutManager with 3 span count in recyclerView on my app, the problem is when I run the app first time it's showing only first 10 items due to the the restriction / pagiation of the items from server, when user refreshing with…
-1
votes
3 answers

Problem In Recycler View Grid Layout Manager,

I have created a grid layout Like this: But I want my grid layout some thing like this: I want my text to be appear on right side. Like Contacts List. Please tell me what changes I must have to do in my layout file. Waiting for a good response.
Asmat
  • 37
  • 1
  • 12
-1
votes
2 answers

dynamic child width in vertical GridLayoutManager

I have a table to be displayed in RecyclerView. Currently i'm using GridLayoutManager with vertical orientation. Since all my logic depends on the vertical orientation of GridLayoutManager, i'm unable to shift to horizontal orientation or…
Siva
  • 355
  • 1
  • 6
  • 19
-1
votes
1 answer

How to use GridBagConstraints to create this type of layout?

I have tried a lot to create one the following layout, but I am not able to. I tried using all sort of constraints but still I am not able to. I want the following layout. __________________________ | JLABEL | J | |_________________| B …
Ashish
  • 358
  • 2
  • 4
  • 15
-1
votes
1 answer

How to implement Slide-in and Slide-out animation on entire Recycler View

I have an RecyclerView customized as a calendar using GridLayoutManager. When I swipe the RecyclerView the data in the RecyclerView changes to reflect that the month has changed. I want to animate this swipe action. The current month view of the…
1 2 3
26
27