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

Implement some functionality like in Instagram android app

There are two things which I like on the Instagram for Android app and I'd like to implement them in my app. 1. Infinite go back in history of fragments If you tap on a user, you can see his details, taping on followers will return a list of…
Alin
  • 14,809
  • 40
  • 129
  • 218
5
votes
5 answers

Remove item from GridView

I am very new to android development and I feel like this is very simple, yet, I haven't managed to find anyone on google with the same problem. I have a Gridview that is filled with a TextView (which has an image on top) and an ImageButton (to…
P.h. Dvrgne
  • 131
  • 1
  • 1
  • 7
5
votes
2 answers

GridView.setItemChecked(position, value)

I want to use a Master-Detail-Flow with a GridView on the left (master) side. According to the documentation, GridView has a method setItemChecked(position, value) that was added in API level 1. Eclipse however states that the method requires API…
fweigl
  • 21,278
  • 20
  • 114
  • 205
5
votes
1 answer

How to set a colspan in an android gridview cell

How do i have a GridView with some cells that span across columns? I have a several sets of data that need to be dynamically loaded(so grid layout is not what i need) and visually presented in different ways on the GridView. Below is a graphical…
kev
  • 1,148
  • 2
  • 14
  • 29
5
votes
1 answer

Android gridview images caching, on scroll images are repeated before replaced

I have GridView with imageviews that are loaded form image thumbnails of the gallery. Am loading these thumbnails from a class where i call a method with the image id and imageview, the method will sets the bitmap to passed imageview.Till here it…
5
votes
3 answers

Get GridView actual column width in Android

Hello fellow developers. I have a Grid View in an android application. The grid view has the setting to automatically fit the number of columns and has a minimum column width of 250 pixels. Inside the grid cells, I have a LinearLayout that has an…
Lefteris
  • 14,550
  • 2
  • 56
  • 95
5
votes
1 answer

updating database from gridview using an alertbox popup in android

I'm developing an Customer details for a shop using Grid view in android. I get the details of my Customers using my Database. I need to update the Stocks handled by the Customer using an alert box for entering the Stock Quantity while performing…
MGR
  • 382
  • 2
  • 7
  • 21
5
votes
1 answer

On Click Of Tabs(Radio Button) My Memory Getting Double

My layout is very complex. I have to make full page scrollable so what i did is - i have a gridView adapter for my gridview items and one custom adapter which has four tabs and then i set my gridview in that custom adapter. Then this whole view is…
user1414160
5
votes
1 answer

Change the behaviour of a GridView to make it scroll horizontally rather than vertically

I want to make a UI element like a GridView, I want it's complete functionality but want it to be horizontally scrollable rather than vertically. By horizontal scroll I mean it should be built that way and not put in a HorizontalScrollView. My would…
5
votes
4 answers

Checking if Android Gridview is scrolled to its top

I want to determine if my Gridview is scrolled to its top. Right now I'm using getChildAt(0).getTop() to do this. I save the value of getChildAt(0).getTop() on first draw and compare to getChildAt(0).getTop() on subsequent draws . However, this…
user1435114
  • 193
  • 1
  • 11
4
votes
1 answer

Absolute position in BaseAdapter of GrivView

I'm trying to write BaseAdapter to my GrivView but in public View getView(int position, View convertView, ViewGroup parent) { ... } the position while rendering next elements is: visible elements --------------- | 1 2 3 | | 4 5 6 | <---…
damienix
  • 6,463
  • 1
  • 23
  • 30
4
votes
2 answers

How can I dynamically add images to a GridView?

I have a GridView that is created based on an array of items. I need to add more images as the grid is scrolled to the bottom, but I'm not sure how to do that. Now I do understand the following: I have an adapter which parses the array and provides…
user1036005
  • 53
  • 1
  • 1
  • 4
4
votes
2 answers

How to set a background drawable on a clicked GridView item in Android?

I have a GridView with a bunch of icons and I need to select one. And by select I mean: I need the drawable id to store into a database (so I can access it later) I need to draw some kind of visual cue on the grid to let the user know which icon is…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
4
votes
2 answers

Working Multiple Layouts show in a GridView

I'm developing an Android app to show gauges. There are different type of gauges (gauge1.xml, gauge2.xml like that). What i want to do is load different types of gauge layout xml file to main grid view using JSON Array. Each Grid cell contains…
4
votes
2 answers

Android GridView Background Highlights

Normally in the Gridview, while you are pressing on an element in the grid, it highlights the specific squares background with a nice orange'ish well defined. I want to make it stay highlighted after you let go as well, basically turn it into a…
user522696
  • 41
  • 1
  • 2