1,616 questions
0 votes
3 answers
68 views
GridView Adapter duplicate the same list every once I leave the fragment and re-open it again
Recently I noticed a problem in my app when I close viewAllfragment and re-open it again, I see the list is duplicated again and again each time with the same data, I tried to clear the list when the ...
0 votes
2 answers
49 views
Why are my Gridview elements overlapping the Toolbar in the android?
I have been using FrameLayout as parent view to display Gridview elements where I want to display them below Toolbar but it's not getting displayed below Toolbar but overlapping the Toolbar like this. ...
0 votes
0 answers
312 views
Is there any way to take a screenshot of an entire grid view including the elements not on the screen?
I have an android app with a grid view. The view typically has more elements than fit on the screen, and scrolling works normally to allow these to all be seen. When I take a screenshot (with power ...
0 votes
1 answer
2k views
How can I build a gridview with a dynamic height in Dart?
I am trying to build a GridView that adjusts its height automatically according to the data provided. However, I am encountering a problem where an additional line (Top Discount of the Sale) appears ...
1 vote
2 answers
358 views
Android app widget didn't load data for specific Android 12 device
I have implemented app widget option for my Android app which load the list of data from the app. However in Pixel 4 (Android 12) device it didn't load the data or is blank for the first time when I ...
0 votes
2 answers
626 views
Render specific item count on a GridView
I was working with the GridView for a while. Everything's working fine on runtime. However, I have always exactly 5 items on my GridView, and I am looking to make it "more realistic" when ...
1 vote
2 answers
2k views
How to make Flutter GridView change colors when tapped
I have asked this question previously but I am not receiving much help. I've created a GridView using GridView.count; however, I cannot get an indiviual container to change colors. The entire row ...
0 votes
2 answers
942 views
How do I sized of grid in Gridview flutter?
I want to change the dynamic size of children according to its array count. It is a way same like GridLayoutManger in android java. What I did in android(java) GridLayoutManager mng_layout = new ...
0 votes
1 answer
867 views
How to make Scrollable StaggeredGrid list like Pinteret in flutter
I tried using flutter_staggered_grid_view 0.6.1 I was able to create the list but not able to make the list Scrollable. If there is any other library I can use or is it any other way to make it ...
-1 votes
1 answer
232 views
Can I use a GridView instead of RecyclerView for smaller dataset?
I have a simple use case to show six images on screen and allow multiselection. The number of images is fixed here. Can I use GridView instead of a RecyclerView for this simple use case? I read an ...
0 votes
1 answer
63 views
GridView is not taking full space inside ExpandableListView in android
I have to create an ExpandableListView as shown in picture below I have added GridView inside ExpandableListView but it shows only first line of GridView as you can see in the pic below GridView is ...
0 votes
0 answers
83 views
How to make a GridView with headers synchronized to TabLayout?
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 ...
-2 votes
2 answers
642 views
what's the simplest way to implement an item grid of two columns in android studio [closed]
some guides say recyclerview. some say gridview. some say recyclerview with grid adapter... i have no idea what these methods have in differences as i'm still new to android development. i've tried ...
0 votes
1 answer
61 views
Incompatible Types - Android Gridview
Incompatible types. Found: 'android.view.View', required: 'com.example.listviewgridview.GridView'. I am not able to access my gridview in java file. How can I resolve this issue? GridView.java. ...
0 votes
0 answers
181 views
Auto adjust row height to fit screen in gridview
I've got a simple grid layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools=&...