android-gridlayout Questions
5
Solved
I want to make a GridLayout that when one of it's children's Visibility is set to GONE, it is replaced by the next child.
Using GridLayout, setting any child's visibility to View.Gone simply hides...
Halima asked 24/11, 2015 at 20:16
5
Hi i am trying to add TextView with drawableLeft to GridLayout.
I am adding this TextView in an Loop. The TextView are getting added properly but the are not aligned properly. Each textview should ...
Messalina asked 29/2, 2016 at 6:10
3
Solved
I'm posting this because I couldn't find exactly what I was looking for on SO and the rest of the web. I had a look at this, but I wasn't exactly sure how to solve the problem.
The issue surfaced ...
Alarcon asked 23/6, 2016 at 16:59
4
Solved
I need a dynamic gridlayout that can be toggled between 3 by 3 and 4 by 4. I can setRowCount and setColumnCount from 3 to 4 but not from 4 to 3. It will display following issue:
Caused by: java.la...
Illyes asked 22/10, 2014 at 18:36
5
Solved
I'm trying to build a GirdLayout programmatically with 2 columns and I want these columns to have equal width set at half the width of the screen.
I figured out you can do this since API 21 or wi...
Hensel asked 27/7, 2015 at 14:7
2
Solved
I am using GridLayout(support) for displaying ImageViews in my application. There are 3 columns and 5 rows. The problem is that the cells in the GridLayout automatically get some space between them...
Gallivant asked 30/1, 2014 at 11:40
9
Solved
Inside my fragment I'm setting my GridLayout in the following way:
mRecycler.setLayoutManager(new GridLayoutManager(rootView.getContext(), 2));
So, I just want to change that 2 for a 4 when the use...
Hectometer asked 11/4, 2015 at 15:49
25
Solved
I want to have a 2x2 grid with a buttons inside. This is only ICS so I am trying to use the new GridLayout given.
Here's the XML of my layout:
<?xml version="1.0" encoding="utf-8"?>
<Gr...
Se asked 4/4, 2012 at 17:33
4
Android Studio 3.1, Java 1.8, Gradle 4.1
I use GridLayout.
All work fine.
But I need to set space (e.g. 10dp) between columns and space between rows.
How I can do this?
main.xml:
<GridLayo...
Migratory asked 21/12, 2017 at 7:38
14
Solved
Using the new GridLayoutManager: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html
It takes an explicit span count, so the problem now becomes: how do you kn...
Hoxsie asked 31/10, 2014 at 1:22
5
Solved
I have a recyclerview with a gridlayout. What I want is when the user scrolls to the end of the list (see my bad mockup), there should be an empty space with a height of 50dp, which isn't the same ...
Crwth asked 18/4, 2015 at 16:58
4
I have an app that functions exactly as desired on an actual device Nexus 6P running API 23 and an emulated 6P, 5 & 4 running API 24, but is showing odd behaviour wrt GridLayout on emulated Nex...
Towner asked 22/12, 2016 at 3:26
6
I'm trying to create a GridLayout with 2 columns which will be centered.
My avtual design is:
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://sche...
Emmaline asked 24/7, 2014 at 8:23
3
Solved
I wanted to display variable number of columns in a row of GridLayoutManager while using RecyclerView. The number of columns to be displayed depends on the size of the column's TextView.
I don't k...
Chlorpromazine asked 24/9, 2015 at 14:3
8
Solved
I have a RecyclerView with a GridLayoutManager that displays Card Views. I want the cards to rearrange according to the screen size (the Google Play app does this kind of thing with its app cards)....
Muhammad asked 6/11, 2015 at 21:7
6
I have Recyclerview which is under Coordinatorlayout > NestedScrollview > ViewPager and ViewPager has 3 fragment, one has image gallery which is working with the help of Recyclerview. Whenever i tr...
Victor asked 21/5, 2020 at 3:57
3
Solved
I am trying to create a table/grid for some items within my app and I would like to have a border around each cell to divide the items up and have a coherent association of the setting with the ite...
Totally asked 24/4, 2013 at 18:33
3
Solved
I use the below grid layout with layout_columnWeight and layout_rowWeight to centralize my view in the grid cell.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="htt...
Spasmodic asked 10/10, 2016 at 8:43
5
I have an android project which utilizes GridLayout in most of its menus and screens. The problem however is that GridLayout is supported from API 14 and onwards.
Since I want to make the applica...
Splenitis asked 29/8, 2013 at 8:39
2
Solved
I have a grid layout which is filled with buttons. I want the buttons to be more distant from each other, what code should I write? I tried to search for it but only found a solution for GridView, ...
Farleigh asked 8/2, 2016 at 13:6
3
Solved
I am actually using a GridLayoutManager with two columns in my app and I would like to have one column depending on the view type used.
Here is the code I have in the method "onCreateView()" of my...
Aman asked 12/6, 2015 at 16:43
14
My problem is very similar to How to get a layout where one text can grow and ellipsize, but not gobble up the other elements on the layout, but read on below why I can't use TableLayouts as propos...
Altitude asked 15/7, 2013 at 13:53
2
Solved
I have cards with different width and I would like to create a Grid Layout where width = match the parent (filling the screen) and fixed height.
I would like to set the cards in the Grid layout so ...
Renege asked 23/4, 2018 at 4:4
2
Is it really not possible to easily force equal column widths in an Android GridLayout? Trying the obvious layout...
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmln...
Depolymerize asked 14/3, 2014 at 19:13
2
Solved
I'd like to use a GridLayout (not GridView) as board for a game like chess or checkers. As I'm a little reluctant to use an xml file with 64 child Views, I've tried adding them programmatically.
...
Inconclusive asked 24/2, 2016 at 11:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.