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

Android android.widget.ImageView setCropToPadding() get around

I got this error setCropToPadding() NoSuchMethodError when running my app on version < 4.1. How do I set cropToPadding to the image loaded to a GridView cell without ImageView XML? Please help!
jerrytouille
  • 1,238
  • 1
  • 13
  • 28
0
votes
1 answer

How to add 'next' feature in GridView?

I have made a gridview in which i have tried to add next feature in that grid. When someone clicks on "next", the grid is loaded with new bunch of images. I have made a logic and somehow it is working but it is not stable. App gets stopped sometimes…
Shubham Arora
  • 167
  • 13
0
votes
1 answer

android gridview with contents inflated from xml has each row taking entire screen

I have a Gridview in Android where each element is inflated from xml and contains a LinearLayout holding an ImageView and a TextView. The GridView uses a custom Adapter which extends BaseAdapter. What I see is that each row rather than being just…
0
votes
1 answer

Android custom image gallery

I want to create an image gallery that will load images from the SDCARD. The gallery should look similar to the image shown below So that when clicking on the left image, the respective large image will be shown in the right. I know its possible to…
Ibad Baig
  • 2,276
  • 5
  • 22
  • 27
0
votes
2 answers

show two image one above another in android

I have a custom grid view for each and every grid I am using
A J
  • 4,542
  • 5
  • 50
  • 80
0
votes
1 answer

setImageDrawable image is blurred

I am using gridview for showing images as described here http://developer.android.com/guide/topics/ui/layout/gridview.html. My adapter getView() method is: @Override public View getView(int position, View convertView, ViewGroup parent) { …
Anshul
  • 7,914
  • 12
  • 42
  • 65
0
votes
1 answer

Creating single activity to rate products based on three different standards

I want to create an activity with four columns. The first column would be automatically filled with the names of the products (from database) and the other three with rating bars. Example: NAME | PRICE|DESIGN| COMPANY product1 | rtb1 | rtb2 |…
MavrosGatos
  • 529
  • 2
  • 6
  • 20
0
votes
2 answers

Android: what is the heap size per intent/activity?

As we all know, the VM Heap Size for Android Apps is limited. (mostly to 16,24,32,48 or 64 MB of RAM depending on the hardware) we can get the actual Heap Size with ActivityManager am =…
0
votes
1 answer

Gridview using custom adapter not displaying all results

firstly a big thanks to all the experts that answer questions and provide insight into challenges. Your work is appreciated. Now, i'm a newbie and just started using java and Android....but i'm loving it. secondly, do forgive my code. its my very…
0
votes
2 answers

Android run time errors

I wonder if any one can help me, I'm writing an android program and whenever I run the emulator, these errors show up: 03-24 15:06:17.464: E/AndroidRuntime(792): FATAL EXCEPTION: main 03-24 15:06:17.464: E/AndroidRuntime(792):…
lolo
  • 1
  • 2
0
votes
3 answers

Square cells in GridView

I'm using GridView in my app: Every cell in this GridView is ImageView:
BArtWell
  • 4,176
  • 10
  • 63
  • 106
0
votes
1 answer

gridview inside sherlockfragment cannot perform onItemClick

I have seen many post regarding this but cannot understand y my code doesn't work. i have a gridview in SherlockFragment and i updating the gridview items in an asyncTask. Here is my xml for gridView,
Tamilselvan Kalimuthu
  • 1,534
  • 1
  • 13
  • 28
0
votes
1 answer

EnldlessAdapter for GridView

Could anyone suggest how to show "loading" view when gridview reached the end and need to load another chunk of data using one of the existing endless adapter libraries or custom impementation? The main problem here is to add view to fill the space…
Roman Minenok
  • 9,328
  • 4
  • 26
  • 26
0
votes
1 answer

Gridview Multiscreen support?

Hey guys i have been working on Wallpaper app and it's almost done but when i tried to test it on various devices the Gridview images get stretched or overlapped i have read some docs about supporting MultiScreens and i think i should take in my…
Joseph27
  • 129
  • 3
  • 16
0
votes
1 answer

Pull to refresh GridView infinite loading/ fails to pull data

I can't seem to figure out what is going wrong with this, the code is pretty clean/ simple, but for some reason when I pull to refresh, it just shows me the loading icon infinity. Not only that, but I don't even receive any errors. The library I…
ChuckKelly
  • 1,742
  • 5
  • 25
  • 54