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

Custom adapter for gridview remember formatting options

I have some custom adapter for gridview in android app. When I start application first time everything is ok, but when I click button and call function refreshCalendar(), adapter "remember" text propertie (Typeface:BOLD). I check (List)…
masel.popowo
  • 1,383
  • 2
  • 8
  • 11
0
votes
2 answers

Images in gridview get replaced on scrolling

I have coded to display few images in gridview. The images are getting displayed from urls. The problem i am facing is that the images get replaced when i scroll.. and the order of images keeps on changing once started.. this leads to delay in…
Shubham Arora
  • 167
  • 13
0
votes
2 answers

Android: I want to swipe between cells of a grid where only one cell is visible at a time

I want a single cell of a grid to take up my whole screen and swipe up/down/left/right to access other cells (not smoothly, but switch to the next cell). What do you think is a good way of implementing this? I've partially implemented this in…
benwiz
  • 2,167
  • 3
  • 22
  • 33
0
votes
2 answers

GridView fit on screen in MDPI but not fit in HDPI and XHDPI

Grid View images not fit in hdpi and xhdpi. It properly fits in mdpi emulator and device.My image sizes are below(it follows 3:4:6:8 ratio). ldpi 366*225 mdpi 488*300 //it properly fits on emulator and device screen hdpi 732*450 Xhdpi …
Ramprasad
  • 7,981
  • 20
  • 74
  • 135
0
votes
1 answer

EditText in GridView

I want to display edit text in my grid view item. The problem is that in this case GridView doesn't handle ItemClick event (as it is written here) My GridView item looks like this:
Bersh
  • 2,789
  • 3
  • 33
  • 47
0
votes
1 answer

Grid view state not retained on restart of the Activity

I'm facing an issue of retaining the grid view state on orientation change. Initially, when the grid view is created only 9 images are loaded. As and when the user scrolls the grid view more images are added to the grid view and this works…
0
votes
1 answer

Trigger a method creates ListView in fragment from inner class, but content of ListView is disappeared sometimes

I have a bug in my code, but I couldn't figure out WHY because sometimes it works sometime it doesn't. Hope you can help me point out the problem. Here is issue: In a fragment, I setup a Gridview + ListView. When user click on a gridcell (the cell…
0
votes
2 answers

Skipped frames in android when i used GridView?

When i used GridView and add custom layout to GridView i see this error and my app work very slow 02-28 18:39:59.252: I/Choreographer(5586): Skipped 263 frames! The application may be doing too much work on its main thread. My code: public…
Musagil
  • 145
  • 1
  • 2
  • 12
0
votes
0 answers

GridAdapter shows view0 instead of view4 on screen orientation changed

I have a GridView with a BaseAdapter that shows 6 buttons like this: Portrait: B11 B12 B21 B22 B31 B32 Landscape: B11 B12 B21 B22 B31 B32 Everything works great, until I switch from landscape back to portrait. It then shows: Portrait: B11…
0
votes
1 answer

Applying a xml layout onto GridView in Android

I want to apply a .xml layout to a grid view... This is the gridlayout.xml:
MW_hk
  • 1,181
  • 4
  • 14
  • 39
0
votes
1 answer

How to make gridview inside DetailFragment runs perfectly?

This is Adapter for my GridView inside DetailFragment public class MyAdapter extends BaseAdapter { Context mContext; static final String TAG_SUCCESS = "success"; static final String TAG_MENU = "menu"; static final String TAG_MID =…
0
votes
2 answers

Grid view images not occupy whole activity

I try to make Main Menu Activity with 4 images using Grid View like Image1. But the images not occupy whole space of Activity. Image2 shows my grid view. How to align the 4 images without scrolling and to fit all screen like…
Ramprasad
  • 7,981
  • 20
  • 74
  • 135
0
votes
2 answers

Progressbar on Loading Imageview in Android

In my Android application i am retrieving all the gallery pictures and display in grid view. I have implemented the loading of images on Async task by using following reference…
0
votes
2 answers

Gridview inside listview in android facing android.view.InflateException problems

I have to create the custom gridview within text and listview in android application. Here i have to display the category name on gridview and if the categoryname is matches which means have to display the list is display on listview below the…
0
votes
2 answers

Image not loading using the Novoda / ImageLoader

I'm trying to load images from the internet using the ImageLoader library into a grid view. But, getting a null pointer exception at imageManager.getLoader().load(fView.pic);. Can someone tell me where i'm wrong. StartApp class : public class…
jasdmystery
  • 1,742
  • 1
  • 19
  • 31