725 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
44
views
Android GridLayout sometimes doesn't draw the cells
I have a GridLayout where I programmatically add cells via:
layout.removeAllViews();
layout.addView(...);
The function where I draw the grid is called from a background thread that sets up the grid ...
0
votes
1
answer
52
views
GridLayout Horizontally Flipped On Some Devices
While looking at the screenshots of my app on the Google Play Console Pre-launch Report, I noticed something very strange for 2 devices (Google Pixel 8 & Generic Small Desktop (x86)). Here are ...
2
votes
4
answers
242
views
Prevent GridLayout column width from stretching as if there were other columns
I have a programmatically created GridLayout that renders time slots within a specific day (such as an appointment time). At a maximum, each row should have 4 evenly spaced even width items, and at a ...
1
vote
0
answers
128
views
Ludo Game in Android Studio - Pawn Movement Issues on Different Devices
I am currently developing a Ludo game in Android Studio and have run into a significant issue regarding the movement of pawns across different devices.
Project Setup:
I have created a grid using ...
1
vote
1
answer
161
views
Cannot resolve symbol 'GridLayout'
When I try to program a program in Android Studio, I found this error but I did not know how to resolve it
Cannot resolve symbol 'GridLayout'
this error rises up in Android Studio
I search on internet ...
0
votes
1
answer
92
views
problem with displaying grid layout while app has different theme than system
i have a problem with my elements in Gridlayout which are not loading properly.
If my android app has a different theme than the system of my phone, elements are not visible.
I have normal grid layout ...
0
votes
1
answer
129
views
How to adjust empty cell in grid layout in android studio?
I am working on android project using kotlin and xml. I have design a screen in where there are six menu like below
When I set visibility gone to the menu named "Chuti". Then the screen ...
0
votes
1
answer
68
views
How to display both the cardviews of equal sizes?
I am trying to display two cards of equal size, one of the CardViews will display the image and another will display TextView. Currently both the CardViews are of different sizes as shown in the image
...
1
vote
0
answers
194
views
Vertical grid with different cells in Compose
There was a slightly interesting question: we need to make something like a vertical grid, without a fixed number of columns and clickable cells (available for selection) that adapt to the size of the ...
0
votes
0
answers
44
views
How can I make a RecyclerView with 2 columns with the contents attached to the sides of the RecyclerView?
I want to implement a RecyclerView using a GridLayoutManager with 2 columns which will contain Checkboxes. I want all the items of the first column to be 'attached' to the left side of the ...
0
votes
1
answer
79
views
grid layout and cardview not showing anything, android studio
while using grid layout and cardview it shows only white rectangle not even divided on my phone while working fine on the emulator, adding pics so you could see exactly what I'm talking about;
on the ...
1
vote
0
answers
18
views
Which element is better for build dynamic part of layout?
I'd like to make a layout like this:
sample layout image
This is gonna be a list of descriptions for items. Each big blue rectangle - single item which I get from database, or json, nevermind.
The ...
0
votes
1
answer
65
views
How to set a column width relative with the GridLayout width?
I want to set a column width to a quarter width of his parent (the GridLayout), even if there is a single column in the row.
<GridLayout
android:id="@+id/widget_place"
android:...
-2
votes
1
answer
234
views
How to create a Baccarat trend like graph in Android?
I need to create a graph that is similar to a Baccarat trend like this
What could be the best approach? I am thinking of using RecyclerView with GridLayout but I have no idea how to plot it this way. ...
0
votes
1
answer
62
views
GridLayoutManager. How show selected item at the first grid?
My app is called MyGram, a school project. I want this app to function like instagram, everytime you select an image, it should show at the top.
My code is
package com.example.mygram;
import androidx....