Questions tagged [android-gridview]

GridView is a subclass of AdapterView that displays items in a two-dimensional, scrollable grid.

GridView is a subclass of AdapterView that displays items in a two-dimensional, scrollable grid. The grid items are automatically inserted to the layout using a ListAdapter. The cell-data binding is made through an Adapter.

Reference

1627 questions
4
votes
0 answers

Change activity with Swipe

I want the user be able to change the activity of my Android application by using swipe up/down/left/right. I have so far been unable to find a way to do this, I have experimented with GridView and GridViewPager however these have so far been of no…
James B
  • 149
  • 2
  • 14
4
votes
2 answers

AsyncTask and setAdapter in onCreate methods

I am doing some heavy network tasks - downloading pictures (previews) - For my main UI to not be blocked it did that in an AsyncTask, I want to put them in a GridView but I set the adapter before the AsyncTask finishes. Some code will be more…
Spredzy
  • 4,982
  • 13
  • 53
  • 69
4
votes
1 answer

Android-How to display blank gridview with button

i want to display blank dynamic grids like this i tried to populate grid like this but for this i need to send drawable int array to baseadapter.I know its not right way to do this Please Consider this scenario: 1) User Will get this kind of screen…
androidXP
  • 1,692
  • 3
  • 27
  • 58
4
votes
1 answer

Android: how to implement grid with different columns/rows size

I need to implement something like this: Seems like StaggeredGridLayoutManager | GridLayoutManager can not do it, how to achieve it for now? GridView has good performance?
pvllnspk
  • 5,667
  • 12
  • 59
  • 97
4
votes
0 answers

populate each fragment in ViewPager with different JSON object without loading again

i have a ViewPager that has a Fragment which contains a GridView into it my code works fine only when i'm scrolling page with delay and each time retrieve's content's from internet again all i want to do is just get each page content's once and…
4
votes
4 answers

Custom Adapters With GridView

Can we set images in Gridview without making a CustomAdapter. I mean can we directly set predefined ArrayAdapter with GridView.? Like the following Code GridView gridview_object; ArrayAdapter adapter=new…
Jitender
  • 123
  • 1
  • 12
4
votes
2 answers

How to create AsymmetricGridView with different image sizes in row

I do lots of google and found many examples and also explore that but ~I want AsymmetricGridView different No of images and different images sizes in my grid. Please find below attached images for my requirement of grid.! Please help me for the…
Arvind Kanjariya
  • 2,089
  • 1
  • 18
  • 23
4
votes
1 answer

How to Pass JSON Array using JSON Object

GridView contains Categories, and when I do tap on any of the GridView item (i.e - any Category) i would like to show items those belongs to that particular Category only in ViewPager. For example, I have two categories first - Electronics and…
Sun
  • 6,768
  • 25
  • 76
  • 131
4
votes
1 answer

Espresso - click an image inside a gridview

I have a view hierarchy like below: GridView{id=2131362110, res-name=item_list_grid, | +----->RelativeLayout{id=2131362124, res-name=item_image_thumb_layout | +------------->ImageView{id=2131362125,…
philomath
  • 2,209
  • 6
  • 33
  • 45
4
votes
0 answers

Create a paged GridView

I need to create a paged GridView where each page contains some elements from a list, like launcher applications do to show the installed apps.The GridView only contains the elements that have enough space on the screen to be shown and the remaining…
Vektor88
  • 4,841
  • 11
  • 59
  • 111
4
votes
1 answer

GridView with filter menu button in Android

I have some troubles: I've got a simple GridView, in which I have two categories of items. I wanted to add three Menu Buttons to have a Filter for this GridView and show/hide the items with the category selected. For the example, with the…
4
votes
0 answers

GridView with incomplete row item does not scroll

I have a problem with my GridView when it receives incomplete row item number, it doesn't scroll anymore. My items are dynamic which are given by the server, I have 3 columns and if the number of GridView items are more than enough to enable…
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
4
votes
5 answers

List out all images from SD card

Hi I am developing android Gallery app . I am fetching the images from a folder in sd card and displaying it on a grid view as below public static ArrayList getFilePaths(){ ArrayList filePaths = new ArrayList(); File…
sanjana
  • 641
  • 2
  • 15
  • 36
4
votes
1 answer

Expandable Height GridView inside scrollview

i am using Expandableheightgrideview inside Scroll view, my problem is when i try to add content in gridview, the content is not expand properly, its displaying 2 scroll bar when its height is exist(its suppose to be an one common scroll bar for…
4
votes
2 answers

EditText in GridView : How to get value from Multiple EditText

I have created GridView using following XML code: grid_layout.xml
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437