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
6
votes
3 answers

setOnItemClickListener() not working on gridView

I know this is already been asked, but somehow the solutions do not work for me. I have a gridView which is inflated by a relativeLayout. The adapter sets perfectly, When I add a clickListener to one of the childs of relativeLayout they also work…
faizanjehangir
  • 2,771
  • 6
  • 45
  • 83
6
votes
1 answer

Android StaggeredGridView Issue

I want GridView like pinterest, for that I have implemented StaggeredGridView lib. In that i got problem of scrolling. when i scrolling up, the top image are move to next row and top view is going to blank. I have post issue in following link with…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
6
votes
4 answers

Different Column number for each rows in GridView android

I have to create UI using the Gridview. The image are dynamic since it is coming from the webservice . I can define column number using the xml but the item at the zeroth index has to have one full image and then the rest should be divided into…
Terril Thomas
  • 1,486
  • 13
  • 32
6
votes
2 answers

Android using intent to open a fragment from an activity

I am implementing an app which has a gridview of images in one activity and one fragment for each image which contains the image in full screen. When i click on any of the images in the grid, it should open up the corresponding fragment. However, we…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
6
votes
5 answers

Add extra space to bottom of a GridView or ListView

Is it possible to add extra space (kinda like an empty row) to the bottom of a GridView? I would like it so when you scroll down to the bottom of a GridView, there will be an extra 50dp of empty space. I tried setting paddingBottom to 50dp, but it…
user499054
6
votes
4 answers

Android GridView Button Click Handler

I have an Android GridView with an ImageView, TextView and two Button's. The Grid is appearing fine but I am finding it difficult to handle button events within GridView. I am new to Android. Any help would be appreciated. Thanks.
user1404963
  • 415
  • 3
  • 6
  • 17
6
votes
3 answers

How to set an Android GridView with different column sizes

I have a GridView in my main layout as follows:
Mahorad
  • 1,258
  • 1
  • 15
  • 22
6
votes
3 answers

GridView content disappears during scrolling

I have a GridView in my application in which I want to show text and check boxes just like emails inbox page. I use an adapter for that but when I show more than 15 elements the text and check boxes of top rows disappear so when I scroll upside…
ADCDER
  • 61
  • 1
  • 4
5
votes
1 answer

Different Rowheights in Android GridView or equivalent

is there a way to implement the following feature in my app? Should have a Gridview like behavier, but with different rowheights. Or is there another wigdet, which provide such a feature? (Adapter, n-columns, etc) I spent the last 3 days with trying…
tobi.g
  • 924
  • 6
  • 23
5
votes
1 answer

Issue using GridView with ImageViews and TextViews

I'm trying to use a GridView with an ImageView and a TextView inside each cell. So i created the cell layout, the grid layout, the imageAdapter and the main activity, of course, but i keep getting the following problem: When i try this on the…
J_Ocampo
  • 445
  • 1
  • 7
  • 18
5
votes
1 answer

Android detect hover on Buttons in GridView

I have GridView with 6 buttons and I need to detect which button is the user currently on with his finger to vibrate when user reach edge of the particular button. Is it possible to do it somehow at the layer of the buttons in GridView, or is…
simekadam
  • 7,334
  • 11
  • 56
  • 79
5
votes
1 answer

Loading asynchronous images in a GridView (Android)

I have a GridView with pictures/text, loaded from different servers (I only know the URL). I tried to modify my code, based on the tutorial of ryac. In my Activity file, I set the GAdapter to my GridView like this: GridView mGridMain =…
johann
  • 1,115
  • 8
  • 34
  • 60
5
votes
5 answers

GridView or TableLayout?

http://img683.imageshack.us/img683/645/weatherscreenmockupoutl.png I am asking myself whats the best way to code this layout. Basicly i just need to know how to get seven columns with an equal width. Thanks in advance!
5
votes
4 answers

Force gridview to draw all tiles

I have an android gridview which i'm using some custom scrolling going on in, to let it scroll in two dimensions - this means that the default scrolling isn't called. I suspect this may be the reason that the rows that are off-screen are invisible.…
Andreas Eriksson
  • 8,979
  • 8
  • 47
  • 65
5
votes
7 answers

GridView onItemClickListener never gets invoked

I have a GridView with custom View in it, which is a Button and a TextView. I defined the setOnItemClickListener but it looks like it never invoked, please see peaces of code below. gridview = (GridView)…
Eugene
  • 59,186
  • 91
  • 226
  • 333