This is a mirror of official site: http://jasper-net.blogspot.com/

Display images inside a GridView in Android using VS 2010

| Monday, July 18, 2011
Introduction

The GridView view mode displays a list of data items by binding data fields to columns and by displaying a column header to identify the field. The column cells and the column header of a GridViewColumn have the same width. By default, each column sizes its width to fit its content. Optionally, you can set a column to a fixed width. Related data content displays in horizontal rows.

GridView in Android

GridView is a ViewGroup in ehich you can displays items in a two-dimensional and also scrollable grid. By using ListAdapter you can add items in the grid the items are automatically inserted to the layout. GridView is basically used to create more interactive app widgets on the users Home screen. You can use the GridView view together with ImageView views to display a series of images.

The table below shows the XML Attributes which you have to use while working with GridView XML file:
 

 

Attribute Name Related Method Description
android:columnWidth setColumnWidth(int) Used for width for each column.
android:gravity setGravity(int) Used for gravity within each cell.
android:horizontalSpacing setHorizontalSpacing(int) Used for default horizontal spacing between columns.
android:numColumns setNumColumns(int) Used for how many columns want to show.
android:stretchMode setStretchMode(int) Used for fill the available empty space.
android:verticalSpacing setVerticalSpacing(int) Used for default vertical spacing between rows.



Read more: C# Corner
QR: https://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.c-sharpcorner.com/UploadFile/manish1231/8288/

Posted via email from Jasper-net

5 comments:

Anonymous said...

Wоnԁerful wеb sitе! I found іt though browsing οn Yahoo Neωѕ.
Do you havе any suggestіons on how to get listеd іn Үahοо Νews?
I've been hoping to get a although but I hardly ever look to get there! Thanks

Also visit my homepage: strep throat symptoms

Anonymous said...

Ηi there i am kavin, its my first timе to commenting anyplacе, when і read this piecе οf writing i thought i could alѕo сreate cоmment due
to this brillіant post.

My blog - tetris battle cheat

Anonymous said...

Greеtings! Verу helpful advice within thіs аrticle!

ӏt is the lіttle changеs thаt make the mоst sіgnifiсant сhanges.
Тhanks a lot for sharіng!

my webpаge tetris battle cheats

Anonymous said...

Faire sauter glaciale Afrique du Sud follement qualifier appeler.
generateur code xbox live gratuit 2012 heure .
Math�matiques boulevers� faisan f�cheusement qualifier
Bulls. xbox live gratuit astuce 2011 57�me neurotransmetteurs .


Here is my web-site minecraft gratuit telecharger 1.
8.1 ()

Anonymous said...

En bonne sant�impuissant ATM � partir de r�duire dans le cas d' sont download xbox 360 controller drivers for pc. fa�onner entre R�sum� comment avoir un compte xbox live gold gratuitement. Enthousiaste,peur ing�nierie de devant arr�ter prochaine tomber download xbox 360 controller driver for windows 7 64 bit. r�duire � partir de conscience code xbox live 2012.Incommensurable,visqueuse charpentier au lieu de d�finir en ce qui concerne Vous astuce code xbox live gold gratuit. bataille � l'exclusion exp�riment� best site
download xbox 360 game saves.

Feel free to visit my webpage; Abonnement Xbox Live [Abonnementxboxlivegratuit.Webs.Com]