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

Data in the gridview does not change upon update in realtime

I am facing a problem with regards to the grid view update.. My Grid View will contain all the words found by the user.. The records will only be shown when you exit the app.. When I open my app, it contains the updated list view... What should I do…
edmund02
  • 55
  • 8
0
votes
1 answer

Android GridView's method setAdapter how to work?

I am try to figure out the Android Adapter how to associate with AdapterView.But I didn't understand the following code: @Override public void setAdapter(ListAdapter adapter) { if (mAdapter != null && mDataSetObserver != null) { …
Thomas
  • 177
  • 1
  • 3
0
votes
2 answers

Grid Calendar not getting full view

I have grid view calendar in my application.But my grid view is not getting a full view in different screen size.It show only half of the page viewing instead of full view.So i am trying to set the row item's height and width statically in my…
Satheesh
  • 1,722
  • 25
  • 35
0
votes
1 answer

Create custom dialog with Grid of buttons

I am trying to add a custom dialog with custom buttons, is this possible? If so, how can we do it?
billsecond
  • 612
  • 3
  • 21
  • 50
0
votes
2 answers

How to delete multiple images in GridView using a button in Android?

Hello stackoverflow I'm trying to develop an application that display images from SD card and allow user to delete the images using a check box. I'm able to display images from SD card with CheckBox but I'm unable to delete the specific image which…
Chethan Shetty
  • 1,972
  • 4
  • 25
  • 45
0
votes
2 answers

Place an Image (loaded from URL) and Edit text box in Grid view in Android

Some one please help me to place an Image ( display image in the grid view from URL) and Edittextbox in Android Grid View This is my grid view xml lay out:
Jerry Abraham
  • 1,039
  • 18
  • 42
0
votes
1 answer

Android laggy performance while loading gridview of images

I am implementing a grid view of images which is opened using a button. The issue I am facing is regarding lagging/time delay for opening the gridview. Here is some of code snippets import android.os.Bundle; import android.app.ActionBar; import…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
0 answers

GridView not getting displayed inside horizontal scroll bar

I need your help in getting my GridView displayed inside a Horizontal Scroll Bar. While scrolling I want to display one GridView at a time. Each cell in GridView displays an image. I put break points at some relevant method in my Adapter class like…
Raj
  • 1,119
  • 4
  • 21
  • 41
0
votes
1 answer

Android image navigation

I have an app in which there is a gridview of small images and when you click on each gridview item, it opens a full screen version of the image in a new activity with button on it left and right to go to previous/next image which are also on…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
1 answer

Recycling Views in Custom Expanded GridView?

For my app, I'm using a library which implements it's own ScrollView throughout the entire layout. My issue is that I need to have a GridView in a fragment but doing so causes most of it to be chopped off like so: (Ignore the slider on top) I…
Pkmmte
  • 2,822
  • 1
  • 31
  • 41
0
votes
1 answer

Android changing particular image in gridview based on button click in next activity

I have implemented an app in which i have a grdiview of images, each of which uses an onItemClickListener to redirect to another activity with 4 buttons. How can i make the image of that particular grdiview item change, based on which button is…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
3 answers

Why am I getting "ImageView not initialized" error in GridView custom adapter?

I am making a custom GridView adapter which sets FrameLayout and its UI alements (images). The adapter itself is nothing complex, but yet I get compile-time error Variable imgThumb have not been initialized. What is worse, the code is exactly the…
sandalone
  • 41,141
  • 63
  • 222
  • 338
0
votes
0 answers

Activity crashes sometimes when starting the adapter

I got a really strange bug that do not seem to make any sense at all. I got an adapter that seems to just sometime crash at startup. It seems like at almost randomly manage to set an use my custom BaseAdapter from time to time to populate a custom…
Magakahn
  • 498
  • 9
  • 31
0
votes
1 answer

gridview in doInBackground giving AsyncTask exception

I am using a gridview in fragment. I am loading the gridview in doInBackground.However, I get AsyncTask#1 Fatal Exception. Below is the code that i have tried: public class Home extends Fragment implements TabHost.OnTabChangeListener, …
asifa
  • 771
  • 1
  • 28
  • 63
0
votes
3 answers

Gridview onclick listener its not working

I am using gridview of layout,its not working after the grid view items in the list,it shows "throwIndexOutOfBoundsException" in logcat error.without onclick function if i use toast its working,if i give an onlcick function for next activity its not…
Karthick M
  • 769
  • 2
  • 11
  • 29