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

Getting gridview image in new activity

Im trying to send my clicked/selected image to new activity here's my code public int getCount() { return mThumbIds.length; } public View getView(final int position, View convertView, ViewGroup parent) { ImageView imageView; if…
Mohsin Mushtaq
  • 133
  • 1
  • 5
  • 17
0
votes
1 answer

Gridview image data from sqlite

I have a grid view with images, when I click an image I start a new activity. What I need now is that I have specific data (text,images) about the image in the grid view, I want them to retrieve them from Sqlite, i need directions what all can I…
Mohsin Mushtaq
  • 133
  • 1
  • 5
  • 17
0
votes
1 answer

Cannot load my ListView of arrays into my GridView

What I am coding? A grid with 10 strings, just a display grid in an Activity. What is the problem? I know that I am calling the adapter twice, but I do not know how to call it once to load my data. I read the Android documentation, and saw that I…
0
votes
1 answer

GridLayout - showing basic info from data in sqlite

I had another description, but I am going direct to the point editing now, its better this way: I need to select and display 10 attributes from the sqlite database, for now only string types. Questions: 1) I will need to create a king of grid, to…
0
votes
1 answer

Get item inside GridView

Hello i try to make a calendar in a gridview. I want that every time that the user clicks on gricel hethe gricel will be marked. My problem is that i cant get the previous selected gricel unmarked. I tried using setOnItemClickListener for my…
dasdasd
  • 1,971
  • 10
  • 45
  • 72
0
votes
1 answer

Set images from file into GridView

I would simply like to add photos from a predetermined file to a GridView and I can't figure out how to do this. I have an Adapter that handles the GridView that I learned from this example and I haven't been able to figure out how to set the…
Ryan Sayles
  • 3,389
  • 11
  • 56
  • 79
0
votes
1 answer

Custom Views in a GridView

The Views of a GridView overlap when run on one (real) device running at 1024x600 and mdpi but are correct on another (also real) device running at 1280x720 and xhdpi as well as on several emulators, including one for the device producing the…
Calaf
  • 10,113
  • 15
  • 57
  • 120
0
votes
0 answers

Implementing android's default Gallery like view

In Gallery app, first it shows all Albums in Thumbnail. On click of each Albums it shows all images in GridView. Then on click of GridView images it opens full screen. What I have done: Initially, I'm loading images(http images) in…
DroidLearner
  • 2,115
  • 5
  • 31
  • 50
0
votes
1 answer

Android twoWayGridView onItemClickListenter not working

I've implemented the two-way-gridview library by adding libs and two-way-gridview to my Android project. The XML:
marienke
  • 2,465
  • 4
  • 34
  • 66
0
votes
2 answers

how to split gridview into equal parts that fill the screen

I'm new to the android world and this problem has been giving me headaches. I have a gridview with 4 buttons and I'd like to split the screen into 4 equal height and width buttons. (Without assigning custom dp) . I Tried to use layout_weight but it…
user2430929
  • 113
  • 5
  • 15
0
votes
3 answers

Android issue with image size in gridview

I am trying to create a grid layout of cards similar to what is used in google play like this The layout i am using and the layout obtained are these: For GridView:
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
1 answer

Android obtaining gridview similar to google play

I am looking to obtain a layout like this: I am trying to create a gridview item like the one used here for 'albums', but i am trying for a simpler version with just an image on top and text below it. Here is my XML code:
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
3 answers

Text Below Image in GridView

I am trying to add Text below my Image in Grid View. I am getting Null point Exception error. Below is the layout file:
Gaurav
  • 535
  • 1
  • 8
  • 28
0
votes
0 answers

Android xml layout while customising gridview item

I am trying to create a custom gridview item which looks something like how the movies are shown in this image: in the sense, that how they have an image at the top and two or three text views below it. I have used the following XML code for this…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
0
votes
1 answer

Recycling views shows same item multiple times

I have a gridview which shows all apps installed on the device. Whenever I try to recycle items (Using convertView == null etc.) the same icon and Text shows up multiple times in my grid. This is my code: @Override public View getView(int position,…
user754730
  • 1,341
  • 5
  • 31
  • 62