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

add Textview in gridview

Am just trying to implement the bitmap code provided in http://developer.android.com/training/displaying-bitmaps/index.html. I just want to add image name near every thumbnail image.. Weer to add my textview ? Any idea how to achieve this…
user2291423
  • 121
  • 2
  • 2
  • 14
0
votes
1 answer

Best Practice for handling lot of images and textview in Gridview

In my android mobile app, i have list of lot of (more than 200) images and textviews. For that currently i am using gridview. But my problem is if i am request all that content at once from server then its take too much time to load and render that…
user2058320
  • 97
  • 4
  • 12
0
votes
0 answers

How do i set gridview parameters to be const?

How do I set gridview to have same rows and columns and size in any screen resolution? I have tried to edit all the parameters in the xml file but it's no use. When I change the screen resolution I find the rows and columns messed and not in the…
Outflorks Usus
  • 319
  • 1
  • 3
  • 5
0
votes
1 answer

Android Drag and Drop GridView

I am trying to impement Androids drag and drop on my gridview. I set a dragListener for each view in the grid adapter. It works perfectly when the grid isn't long enough to be scrollable or if it is scrollable as long as the first view in the grid…
cange1
  • 641
  • 5
  • 5
0
votes
2 answers

GridView is giving NullPointerException

I am displaying data in gridview. But it is giving me nullpointerexception. When i do not display data by oid.setText(sdata.getOid()); then it is giving me values and not any exception. But when i want display data in textview. It is giving me…
user2160008
  • 379
  • 2
  • 5
  • 20
0
votes
0 answers

Gridview horizontal scroll with variable number of columns

I am having n number of images to be shown in a gridview. Prsently, I'm populating a gridview in an activity with three columns and one row. I provide a separate link to another activity, which populates another Gridview with these n images. What I…
Kunal S. Kushwah
  • 883
  • 1
  • 8
  • 19
0
votes
1 answer

Behavior of GridView in Android

I am having a GridView and added more than 50 images on it and performing delete operation on them. I observe that what images i am deleting,they are leaving the blank space from top, means other images are not taking that place which is look so…
Monty
  • 3,205
  • 8
  • 36
  • 61
0
votes
2 answers

Out of memory error when nesting gridview inside listview

I'm trying to add a GridView of images (ImageView) for my android application. I've successfully implemented lazy loading and caching of images and all of my high quality images work flawlessly when I have a simple GridView. However, the problem…
baekacaek
  • 1,527
  • 3
  • 22
  • 45
0
votes
1 answer

GridView CustomAdapter loads one imagebutton only

I have setup a custom gridView adapter, which looks like this public class ImageAdapter extends BaseAdapter { String[] urls = new String[10]; //....some code class MyTask extends AsyncTask{ @Override protected Void…
user1910290
  • 537
  • 4
  • 15
  • 28
0
votes
2 answers

Remove selected item from GridView

Is there any way to remove selected item from gridview. I want to delete the selected item from my gridview. I did not find any thing . my code is public class ImageAdapter extends BaseAdapter{ Context context; public ImageAdapter(Context…
Monty
  • 3,205
  • 8
  • 36
  • 61
0
votes
1 answer

using BaseAdapter o back the GridView

I've tried to build my app on top of a opensource project. The basic function is to use GridView to show a couple of images. The following is the code snippet. The comment line is the original code. In the original code, Images.imageThumbUrls is a…
Fihop
  • 3,127
  • 9
  • 42
  • 65
0
votes
0 answers

GridView inside ListView giving OutOfMemoryError

I am creating and gallery in which images are grouped by date. I am using an ListView which has Gridview at each row. When Gridview of a row contains large amount of images about 2000, app crashed giving OutOfMemoryError. How to fix this ? Adapter…
0
votes
2 answers

Changing adapter values in Gridview cause an exception

I am using a Gridview to show some TextViews in the inside. I have created a clear button that set a new Adapter with empty ArrayList and it works fine. When I tried to perform the same operation in another place, an exception happen. I have…
Sami Eltamawy
  • 9,874
  • 8
  • 48
  • 66
0
votes
2 answers

Center the content of a GridView

My GridView itself is centered but the the content of it is not centered within it. Here is a screen, where the light blue on the bottom and right is the background color I set of the GridView. You can see that the content is pushed up to the top…
ChrisWilson4
  • 195
  • 4
  • 23
0
votes
1 answer

Easy way to make an ImageView that is underneath a GridView match the GridView's size exactly?

My ImageView is displaying an image of a chess style board for a little game I'm making. It is covered by a GridView that displays the images of my pieces. I have it displaying underneath but it is not positioned properly. I want it to match exactly…
ChrisWilson4
  • 195
  • 4
  • 23