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

Retrieve the icons that stored in sqlite and display in gridview

I got source code from internet and i try to modify it so that, it can retrieve all the icons in one of the folder that stored in sd card and display it in gridview. Meanwhile, once the icon being clicked by users it will link to another activity.…
Hwl
  • 21
  • 5
0
votes
2 answers

How can I set images randomly in the imageview and gridview from the res/drawable folder

I am new in Android. I have done the operation of setting images in ImageView and GridView from the res/drawable-mdpi folder manually. Now I want to set images randomly as refreshing the activity may change the picture setting which is not…
Eclipse-fan
  • 597
  • 1
  • 5
  • 11
0
votes
1 answer

GridView, only open as Main Activity,

The problem that i am facing, is that my GridView, only Opens, from Main Menu, and not as child, or second Activity, . in my code, i am trying to open a Grid View (Second Activity), from my MainActivity (First GridView). the first grid view will…
asadnwfp
  • 733
  • 6
  • 10
0
votes
1 answer

Image Gallery in Fragment Error

I'm trying to make an app with an image gallery in it inside a fragment, but not getting errors in the code but getting this error below. Any help would be awesome, only a beginner. If you wish any more details just ask. Think its something to do…
user2407147
  • 1,508
  • 2
  • 22
  • 40
0
votes
2 answers

Android customize first child of grid view

I want a grid view in which first child alone should be there in first row with different layout design and remaining childs can be similar in their designs. How can I achieve this? Please refer to the screen shot to get the idea.
Ammu
  • 97
  • 1
  • 10
0
votes
1 answer

Add GridView inside ExpandableListView? - Custom Rich Layout

I want to add GridView inside ExpandableListView in android. I found one tutorial of a GridView inside ExpandableListView but this does not provide the insertion/addition of GridView in ExpandableListView. Here is the link: GridView inside…
Master
  • 2,945
  • 5
  • 34
  • 65
0
votes
1 answer

GridView behaves weird; duplicates TextView

So i got a GridView displaying some flags. Each GridView cell consists of an ImageView and a TextView. Only the ImageView is shown at start. When position 1 and 240 in the GridView loads, the TextView should become visible. @Override public View…
simon.vandel
  • 17
  • 1
  • 4
0
votes
2 answers

Fetching Images from Server into Grid View, getting java.lang.NullPointerException

I am trying to fetch images from Server to Grid View, but whenever i am running my app getting Unfortunately App has Stopped, due to java.lang.NullPointerException Error at:…
Sun
  • 6,768
  • 25
  • 76
  • 131
0
votes
2 answers

How to keep CheckBox persistence in Gridview Android (handling checkbox state)?

I am working on an app where i am using custom gridview with images & checkboxes. Displaying of gridview with images & checkboxes is working good. But here my issue is after make one checkbox checked if i scroll the gridview another checkbox is…
user2384424
  • 187
  • 1
  • 3
  • 13
0
votes
1 answer

GridView fake item

I need to create dashboard using GridView. One of the items will be an item that, when clicked, will add new item to an adapter array. I need to create that one item in a way that it will not be added to the adapter array, because i.e all items will…
userbb
  • 2,148
  • 5
  • 30
  • 53
0
votes
1 answer

StickyGridHeaders NullPointerException with Animation

I'm using StickyGridHeaders with an adapter. Everything works fine until I try to use an Animation on an item from the grid (I want to fade out an item wwhen it's deleted). This part of getView works: public View getView(int position, View…
fweigl
  • 21,278
  • 20
  • 114
  • 205
0
votes
1 answer

Android image grid scrolling issue

I have a following performance problem. I am developing an android tablet app and there is a gridview like a gallery. Each item has about 3 textviews (short text) and 2 image views (1 for background and 1 small icon for important items). Target…
0
votes
1 answer

gridview clickevent android

Iam newbie to android. I had created an application which contains a grid with single column and multiple rows. I had implemented onItemClick method. I need to identify which row has been selected. I cant achieve it through getId() as it returns…
user1242617
0
votes
1 answer

GridView is not updated with notifyDataSetChanged()

I have an Activity with GridView, with images in it. The images are parsed from the SD card of the device. Once the Activity starts, images are downloaded to the SD card using AsyncTask. The problem is that this GridView does not get updated when…
0
votes
1 answer

Search in GridView

I think the question says it all: What is the best and easiest way to search in a GridView? I want that the user can type a String in the searchbox of the actionbar and than display or hide some items (based on the search string) in the GridView.…
Cilenco
  • 6,951
  • 17
  • 72
  • 152