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

Android modify Font type, font size, font color of text in ArrayAdapter in Gridview

Is it possible modify Font type, font size, font color of text in Gridview (Android API level 8 and above) ? How? public class MainActivity extends Activity { GridView gridView; static final String[] numbers = new String[] { …
Rohit
  • 6,941
  • 17
  • 58
  • 102
0
votes
0 answers

Get elements from BaseAdapter

I'd like to get elements added in a GridView with a BaseAdapter. Here is my code : GridView grid_ordi = (GridView)findViewById(R.id.grid_ordi); CaseAdapter casesOrdi = new CaseAdapter(this,…
thomas-hiron
  • 928
  • 4
  • 21
  • 40
0
votes
1 answer

How to set alternative colors to gridview cells without extending BaseAdapter in Fragment

I want to set colors on alternate cells of my gridview which i have filled with arrayadapter items and i dont want to extend BaseAdapter class also: code i have used: public class Fragment2 extends Fragment { public final static String…
Shiv
  • 4,569
  • 4
  • 25
  • 39
0
votes
2 answers

Adjust GridView (Android)

I have a problem with grid view layout on Android. I can't find solution to eliminate extra space in grid view.I mention the code fro gridview as below :-
void
  • 479
  • 2
  • 13
  • 27
0
votes
2 answers

Access individual item in a GridView in Android

I am facing issue in accessing individual item inside a gridview. I have a grid view of images. On Long press of individual item I am activating CAB menu with multi mode listener. Inside the listener, I am able to…
intrepidkarthi
  • 3,104
  • 8
  • 42
  • 75
0
votes
3 answers

Grid view overlapping other views android

I need to have a button, a grid view and a button, arranged vertically. I can see the Button and the GridView but can't see the button declared after the grid view. Why's that? This happens with any view below the grid view declaration.
Namratha
  • 16,630
  • 27
  • 90
  • 125
0
votes
1 answer

Android gridview streachmode="columnWidth", set the item content to fit in the view

I have a GridView with the following properties:
sukarno
  • 597
  • 2
  • 10
  • 31
0
votes
1 answer

communicating between gridviews inside a single fragment in android

I have a ViewPager using the Android support framework, which loads three fragments. The user can navigate between them by swiping. The second fragment contains two GridViews, each filled with Buttons, using an Adapter. The two GridViews are named…
tmhumble
  • 5
  • 4
0
votes
0 answers

Background image of ListView/GridView element get disappear while scrolling

On some devices-(Samsung tab(version 3.0),Nexus (version 4.1) and Htc one v (version 4.0)) but not all(Like galaxy (version 2.2),Htc WildFire (Version 2.3.3)),the background image of ListView/GridView disappears while scrolling 1-When no movement…
Atul Bhardwaj
  • 6,647
  • 5
  • 45
  • 63
0
votes
1 answer

Design looks bigger when using minsdkversion 3

I created an app, it's finely working as what i want on minsdkversion="3". But other activities look even bigger than usual. If i change the minsdkversion="8" or something, the other activities looks as normal, but i didn't get the output i…
Abdul Rahman
  • 2,097
  • 4
  • 28
  • 36
0
votes
1 answer

Determine the empty grid placeholder in the gridview and place the touched grid in the empty grid placeholder

I have a question regarding GridView implementation. The GridView which has been created in my project, is a 3 X 3 gridview. Each grid is consist of random numbers. This gridview is not a fully fledged 3 X 3 grid but rather there are only 8 grids…
Sohaib Rahman
  • 183
  • 2
  • 19
0
votes
2 answers

Set names or id in the images in drawable in android

I am trying to create one android application using gridView. In this application I am trying to add images randomly in to the GridView. I have 5 images and that images added in to the drawable like R.drawable.c0, R.drawable.c1, R.drawable.c2,…
Ann
  • 727
  • 1
  • 7
  • 19
0
votes
1 answer

Populate GridView in Android with SQLite database entries

I want to populate my Gridview with entries from my SQLite database but it does not work. In my main activity I set a adapter to the gridview: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Mokkapps
  • 2,028
  • 9
  • 42
  • 67
0
votes
1 answer

GridView scroll in scaled view not working

To have effect of zoom in gridView I have scale it with 2.0f value. Scaling (zoom effect) on that grid view works fine. As the view is zoomed I want to have a horizontal and vertical scroll in this view.
Jaynil
  • 128
  • 13
0
votes
1 answer

GridView repeating content on each call android

I have an Arraylist> with three records . I am displaying them using a CustomAdapter which extends BaseAdapter. In first call I am getting three records in gridview. In second call I am getting 3+3 = 6 records.(same 3…