Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

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 ...
AndrWeisR's user avatar
  • 1,274
0 votes
1 answer
49 views

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 ...
Nathan Sokalski's user avatar
2 votes
4 answers
239 views

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 ...
Orbit's user avatar
  • 2,415
1 vote
0 answers
116 views

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 ...
Jaydeep Kasture's user avatar
1 vote
1 answer
159 views

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 ...
lifeisaquestion's user avatar
0 votes
1 answer
92 views

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 ...
Zampey's user avatar
  • 11
0 votes
1 answer
124 views

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 ...
Habibur Rahman's user avatar
0 votes
1 answer
65 views

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 ...
Tejas Khartude's user avatar
1 vote
0 answers
191 views

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 ...
Сергей Беляков's user avatar
0 votes
0 answers
44 views

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 ...
Alex Al's user avatar
  • 107
0 votes
1 answer
76 views

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 ...
Alma's user avatar
  • 3
1 vote
0 answers
18 views

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 ...
slarkwithskadi's user avatar
0 votes
1 answer
65 views

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:...
Gilad Shoham's user avatar
-2 votes
1 answer
221 views

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. ...
Bitwise DEVS's user avatar
  • 3,851
0 votes
1 answer
62 views

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....
Vinz Jose's user avatar
0 votes
2 answers
133 views

I followed this tutorial on youtube for my school project. The app is able to display selected images from gallery but the recycler view have gaps in every row. What do I code to fix this app? help. ...
Vinz Jose's user avatar
0 votes
1 answer
200 views

I'm using GridLayout for my items, I have 4 * 2 items in total. I use layout_rowWeight="1" and layout_columnWeight="1" for each item. However, the item are not divided equally. The ...
Hhry's user avatar
  • 953
0 votes
1 answer
142 views

I have a Grid with two columns, each with a label. I want the label on the 2nd column to align to the right: <androidx.gridlayout.widget.GridLayout android:layout_width="match_parent" ...
JamesL's user avatar
  • 431
0 votes
1 answer
277 views

I have a fairly simple Xamarin app with a primary interface that consists of two ImageViews, one overlayed on the other. The images are the same size, and I want them to expand to fill the screen. ...
Lisa's user avatar
  • 75
1 vote
1 answer
519 views

I have 4 different "Card List", "Card Magazine" , "Title" and "Grid" and view holders for each one to relate check my other question here. now I am trying to ...
Dr Mido's user avatar
  • 2,966
2 votes
1 answer
2k views

<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/...
John Wick's user avatar
1 vote
1 answer
4k views

<androidx.gridlayout.widget.GridLayout> ... </androidx.gridlayout.widget.GridLayout> In the grid layout, each column will automatically adapt to the widest view. In JetpackCompose, I ...
Hello_Berial's user avatar
1 vote
2 answers
1k views

I am making a movie list with RecyclerView and ConcatAdapter. The ConcatAdapter consists of three different adapters, HeaderAdapter, MovieAdapter and FooterAdapter. HeaderAdapter - displays either of ...
KisungTae's user avatar
  • 125
0 votes
0 answers
147 views

I have a gridlayout with fixed height and weight paramaters. When screensize change automatically ıts getting bigger or smaller. Iv tried all methods but not succeed. How to fix? My code ; private ...
cmsvs's user avatar
  • 3
1 vote
1 answer
2k views

I have a a RecyclerView that uses GridLayoutManager to display data, I'm trying to span an item fully if the ItemViewType matches being a title. I know how its done in java, but in Kotlin I cant get ...
SirHammouD's user avatar
0 votes
1 answer
82 views

I've made a Card View GUI containing 6 options and the vertical layout looks good in my 2 devices. However when doing a layout for landscape mode, I see it cropped in one device. Working Device ...
Andy's user avatar
  • 396
0 votes
1 answer
574 views

I am using an AndroidX GridLayout to display a 2x2 grid of content using the following XML layout: <androidx.gridlayout.widget.GridLayout android:id="@+id/gridlayout_first" ...
drmrbrewer's user avatar
  • 13.4k
1 vote
0 answers
819 views

I need to implement several views in the same recycler view, with different width and height size, take a look at this image Sometimes I will need to paint a item that takes two colums, as the first ...
Alexis Rivas's user avatar
1 vote
2 answers
651 views

I'm trying to create such a list of items in android, I am able to complete almost everything except the orange ribbon on the right top corner, I tried different methods to achieve this UI element but ...
Sreehari K's user avatar
1 vote
1 answer
410 views

I have a problem with recyclerview with inside items with string time text (08.03 , 08.09, ..., 10.51...). Initially the list of times is sort but when the user scroll the gridLayout the item lost the ...
T_TR_ZCS's user avatar
1 vote
1 answer
58 views

I wanted to implement a chessboard with gridlayout & framelayout. When I hardcoded the xml everything works fine. But when I tried to implement it programmatically all things fall apart. In xml I ...
fuad_hasan's user avatar
0 votes
0 answers
858 views

I want to create a custom report which should look something like this in Android: The number of schools and number of years will be dynamic. I had created this using the Table Layout but since it is ...
Allie's user avatar
  • 354
0 votes
2 answers
1k views

I have a recyclerview with gridlayoutmanager having column span 4, I am able to achieve below output with following code recyclerGridLayout.addItemDecoration(new GridSpacingItemDecoration(spanCount, ...
barasingha's user avatar
0 votes
1 answer
489 views

have anyone done the same layout as fig. 1? i am currently using StaggeredGridLayoutManager but the result is fig 2. could anyone help me regarding this? Ps tried using grid layout but it just copy ...
Bryan.C's user avatar
  • 53
0 votes
0 answers
83 views

I'm having trouble creating a grid view with headers. And these headers still need to be synchronized with TabLayout as the screen scrolls. So far I've managed to create the view of items with ...
Roberto's user avatar
0 votes
0 answers
91 views

This is my Activity.xml file. ' <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
Himanshu's user avatar
1 vote
0 answers
149 views

I just coded a RecyclerView inside SwipeRefreshLayout and added a footer as a list item that prints the recyclerView to appear last. The problem I have, is that the recyclerView can change its ...
fesave's user avatar
  • 191
1 vote
0 answers
131 views

I have a RecyclerView that's using GridLayoutManager. It has some strange behaviour when the itemCount is not divided by the spanCount. It appears to resize the first item on the row above the last ...
Robert Peteleaza's user avatar
2 votes
3 answers
717 views

I am using a GridLayout to design a dashboard which a 2 columns based one. So I am just adding widgets and it directly define the Grid. The issue I have is that, I have 12 cells but some will be set ...
Seb's user avatar
  • 3,255
1 vote
1 answer
2k views

I want to use a gridlayout manager, the items to be in 2 columns. I want each row to be evenly split among the items and have some small space around the items too. I did: val manager = ...
Jim's user avatar
  • 4,529
0 votes
0 answers
225 views

So basically I want to create list items like this using grid layout in recyclerView So if I fixed my height and width of the list item it the content within it is not fitted and also it becomes ...
mayra's user avatar
  • 71
0 votes
0 answers
70 views

I need to create a layout exactly like in the picture. What layout can I use? If I use LinearLayout, I can't add the icons in front of the text fields without using so many nested LinearLayouts. With ...
user650708's user avatar
0 votes
1 answer
860 views

How can I programmatically create and add views to a GridLayout using C# in Xamarin.Android, while specifying column/row span?
NicholaiRen's user avatar
1 vote
1 answer
134 views

When objects do not fit in three lines, they go beyond, and I need that if there are too many of them they passed to the next row. Is it possible way to fix it? Thanks. columnCount is 2 columnCount is ...
Oleh Prukhnytskyi's user avatar
1 vote
2 answers
796 views

I want to achieve this type of dynamic height of grid layout in recycler view. If a cell is having two lines then other cells in the same row should be of same height despite of having one line in ...
Annie's user avatar
  • 2,617
1 vote
2 answers
1k views

I am trying to make an app using GridLayout, CardView and LinearLayout so everything works fine on the emulator but when I test my app on real devices the card view goes out of the screen I have ...
subhan7208's user avatar
1 vote
1 answer
1k views

I need to place 4 images into GridLayout. If I define their sizes hard-coded. e.g. android:layout_width="150dp" android:layout_height="200dp" It works fine. But my question is, if ...
Ilya's user avatar
  • 33
1 vote
2 answers
299 views

I want to create a GridLayout Here is my setting from server: items.add(listOf(4, 3, 0, 0)) -> start at x: 0 - y:0 expand horizontal : 4, vertical 3 items.add(listOf(1, 1, 0, 3)) -> start at x:...
famfamfam's user avatar
  • 552
1 vote
2 answers
1k views

I am using the latest Grid Layout implemented in Gradle as below: implementation 'com.google.android.material:material:1.3.0' Below is my MaterialCardView Inside a GridLayout <GridLayout ...
Emmanuel Njorodongo's user avatar
1 vote
0 answers
53 views

I'm trying to create a view that allows me to add pictures from the phone photos. In the Layout file I currently have a grid layout with nested LinearLayouts separated into 2 rows x 3 columns. The ...
Jzon Livingston jr's user avatar

1
2 3 4 5
15