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
0
votes
1 answer

Android GridView is not populated oncreate in activity

Trying to get the data behind a specific position item from my created and populated gridView. Below listener method setOnItemClickListener() works well,but what i need is to get info on rendering the screen(gridview) not only on item click. This is…
Gabriela Radu
  • 757
  • 2
  • 12
  • 33
0
votes
3 answers

Gridview does not fire OnLongClickListener

I have an empty gridview that fills a column in a tablelayout, I want to longpress that gridview and shou a quickaction popup. The empty gridview does not fire longpress event. gridTue.setOnLongClickListener(new OnLongClickListener() { …
0
votes
3 answers

How to find an ImageView inside a GridView?

I need to get a specific ImageView inside my GridView. I tried this, but it give a NullPointerException: ImageView imageView = (ImageView) myGridView.getChildAt(1); imageView.setSomething(); Can someone tell me how to fix this? Thank you
hyperloris
  • 346
  • 1
  • 7
  • 14
0
votes
1 answer

GridView item looks fine in Eclipse but is warped on devices and emulators

I've created a GridView item that consists of an ImageView with some metadata. The defined layout looks great when I preview it (Graphical Layout) in Eclipse but there is some wacky behavior when I test it on a device and my…
SemperFly
  • 1,563
  • 3
  • 17
  • 31
0
votes
1 answer

Uncaught handler error returning an image from a gridview as an activity result

Im currently using this tutorial http://www.androidhive.info/2012/02/android-gridview-layout-tutorial/ for a gridview. What I'm attempting is to manipulate it so that it returns the selected picture as an activity result to my main activity so I can…
0
votes
1 answer

How to inflate a gridview within a listview in android?

So I realised that I cant put other elements into an android gridview and I cant put the gridview into a scrollview, so I attempted to stick a gridview into an android listview with only 1 listview column to see if I could make that work, this was…
0
votes
1 answer

ViewHolder for a gridview -- checkbox checked with onclicklistener not working

I have a ViewHolder that has 3 textboxs, an image, and a checkbox in a gridview. The problem is that I can't seem capture/trigger onclicklistener after I added the checkbox to this viewholder. Only the checkbox seems to set to checked or unchecked.…
AliR
  • 2,065
  • 1
  • 27
  • 37
0
votes
1 answer

OnItemClickListener on GridView not responding inside a fragment

I am trying to get the image property when there is an onclick event happens on the images displayed in the Grid View inside a Fragment. I am trying to fetch values from the parameters passed to onItemClick method. When I try to access any…
0
votes
2 answers

Main menu using GridView to occupy whole screen

I want my main menu be a GridView of icons - 6 icons to be specific. When the phone is in the portrait layout i want them to be in 2 columns, when it is in horizontal layout - 3 columns --- have sorted that out. What I didnt sort out is how to…
Denys
  • 4,287
  • 8
  • 50
  • 80
0
votes
1 answer

GridView inside a Fragment: getView is never called

I have an Activity with a layout made of two Fragment. One of the fragments layout contains a GridView. public class PicturesGallery extends FragmentActivity { public void onCreate(Bundle savedInstanceState) { …
Vicent
  • 5,322
  • 2
  • 28
  • 36
0
votes
1 answer

How to add images programmatically from disk?

I've a NOT well-know number of images in a sdcard folder. I'd like to show them into a gridVew. Every tutorial explain me how to load from and array of drawable resources if, but... how to add 'n' images from a folder ? It's impotant in my app,…
realtebo
  • 23,922
  • 37
  • 112
  • 189
0
votes
1 answer

Tablelayout with selectable rows

I have a dynamically populated TableLayout. I'm developing for GoogleTV so I need to make the rows in the TableLayout selectable by the remote D-Pad. How can I achieve that? Am I using the wrong approach here? Should I use a GridView instead? Or…
0
votes
1 answer
0
votes
1 answer

Popup with gridview get onclick event

I am showing a popup with grid view of images and I am trying to do some work when user clicks on any of image of grid view. However, I can't get the onClick event of gridview. Any ideas?
Akhil
  • 13
  • 3
0
votes
1 answer

GridView item position

I have GridView:
alwx
  • 205
  • 1
  • 3
  • 14
1 2 3
99
100