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

GridView adapter issue within android fragment on 4.1 Jellybean

I'm developing a calendar with a maximum date range of 90 days from today. I have an activity and fragments representing months available to select dates from. I'm using fragments as I'm using a viewpager for swipeability (I'm sure that's a…
ngatirauks
  • 779
  • 8
  • 18
0
votes
1 answer

how to not allow user interaction for 2 seconds

i am trying to do a flipcard app in which there is gridview of images showing a same image ,say a card_back . On clicking each image,it flips showing another image which is different for every item of gridview,say a card_front. if 2 cards are…
0
votes
1 answer

How to change GridView image item resource using OnItemClickListener?

I am having trouble changing the GridView image item resource when clicked using OnItemClickListener and not OnTouchListener. The main reason why I want to use OnItemClickListeneris that I can get the position of the item clicked. Once I have the…
0
votes
1 answer

Baseadapter's getView() showing irrelevant information

I am having two gridviews. (names that i gave) Top gridview : some number like "123456123456" bottom gridview : contains numbers from 0 - 9 Initially all the items in the gridview will be empty(something like invisible). Based on click of item in…
G_S
  • 7,068
  • 2
  • 21
  • 51
0
votes
3 answers

Staggered collections in Android app

Hi I just watch the last video of Android Design in Action: Collections and I would like how do you approach the following view: The first thing that I though was use a GridView, but how do you achieve the first item fill two items size? The other…
0
votes
0 answers

Android EditText going to blank when i hide soft input keyboard

I have previously posted EditText in GridView : How to get value from Multiple EditText Android : newView() and bindView() with SimpleCursorAdapter I got a little bit of success on the second question but I have one more problem like: My GridView…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
0
votes
3 answers

Android GridView items update from onActivityResult

I am having an issue with updation of GridView items once its back from child activity. Once the griditem is clicked a child activity is opened which has two options as yes or no. I have to show an extra image in a gridview for that particular…
Lavanya
  • 3,903
  • 6
  • 31
  • 57
0
votes
1 answer

Refresh one grid view from another in android

I am having a base adapter like below : public class GridViewAdapter extends BaseAdapter { Context cont; ........ @Override public View getView(int arg0, View convertView, ViewGroup arg2) { View v; TextView tv; GridItemObject…
G_S
  • 7,068
  • 2
  • 21
  • 51
0
votes
1 answer

Grid view like Album in iOS

I am developing an Android app. I want to create GridView like Album in iOS(image shown below), and implement the following features. Stack layout for the folder level Pinch out to expand the photos Pinch in to go back to folder level Enter edit…
Dragon warrior
  • 1,644
  • 2
  • 24
  • 37
0
votes
1 answer

Creating an Android GridView full of Buttons. Which Adapter?

I need to create a GridView full of Buttons, each labelled with text from a query. Which Adapter should I use? A ResourceCursorAdapter, a SimpleCursorAdapater or something else? (SimpleCursorAdpater seems like it would do the job, except I can't…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
2 answers

Image and textview above gridview layout

Am trying to place 4 image views and one textview above gridview and my layout should me like this(blue-textview, orange- imageview and next gridview) and inbetween the gap is also essential.I searched but couldn't achieve my view. I referred here…
AndroidOptimist
  • 1,419
  • 3
  • 23
  • 38
0
votes
1 answer

How do I calculate GridView content height in pixels?

I am having trouble in getting the GridView content height programmatically since I am placing it inside a ScrollView, I just need to stretch the GridView height dynamically by getting its content height in PIXELS. Here's what I did: @Override…
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
0
votes
1 answer

Gridview disabled tile

I have a Gridview and I populate it with a custom adapter that extends BaseAdapter. public class ImageAdapter extends BaseAdapter { ... } and I have these methods overridden to disable couple of the tiles @Override public boolean…
Professor Chaos
  • 8,850
  • 8
  • 38
  • 54
0
votes
1 answer

Android- Providing input to gridview from two different source

I am trying to design a custom gallery for android. I am able to display images, but something is going wrong with Videos. I am new to Android, any help would be appreciated :) The issue is I have two data source one for Images and other for Videos,…
0
votes
1 answer

StaggeredGridView null pointer

I've just imported StaggeredView demo to my workspace, I get no errors in eclipse, but when I'm trying to start the demo, I'm getting this errors in logCat: 09-17 14:01:06.111: E/AndroidRuntime(11611): FATAL EXCEPTION: main 09-17 14:01:06.111:…
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117