One of the presentations from Android talks lectures, done by employees of Infinum Ltd.
GridView
Short overview of what can be done by using GridView component, as well as when and for what it should be used. (by Mirko Jurić Kavelj)
2. Što i kako?
●
Poopćenje ListView-a
– Slaže
kolekciju itema u tablicu (za 1 stupac
dobijemo ListView)
●
Kao i ListView
– Implementira
– Postavi
se adapter
se adapter nad GridViewom
●
Omogućava bolju iskoristivost ekrana kod tableta
●
Varijabilan broj stupaca
5. CAB
Omogućava izvršavanje iste akcije nad više
elemenata odjednom
●
●
Aktivira se dugim klikom na item
ChoiceMode treba biti postavljen na
MultipleChoiceModal (programatski ili u xml-u)
●
●
gridView.setMultiChoiceModeListener()
Potrebno implementirati
AbsListView.MultiChoiceModeListener()
●
●
Dobar primjer: Gallery