GridView

A view that shows items in a vertically or horizontally scrolling list using View Templates.

Examples

A vertical Grid with two columns showing images
<GridView items="#{myItems}" width="fill_parent" onItemClicked="#{onItemClicked(item)}"
	spanCount="2">
	<Template>
		<ImageView href="#{item.imageUrl}" width="fill_parent" height="120dp"/>
	</Template>
</GridView>

Children

One or more Template elements. Please refer to the View Templates documentation.

Attributes

Name Type Default Binding Description

Inherits all attributes from ListView and adds the following:

spanCount

unsigned int

1

Defines the number of items in one line (vertical orientation) or column (horizontal orientation).


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.

results matching ""

    No results matching ""