Page 34 - Xamarin Android Application Development
P. 34

ListView                                                                                    30






















               As you see in the above code display, we are assigning the ArrayAdapter to the ListAdapter property
               of the ListActivity class. It has also the property for ChoiceMode. You could assign your required
               choice mode and it would work like ListView.
































               The above output shows the implementation of selective in the ListActivity.



               Selective ListActivity with Entity


               Previously, we have seen that, binding a string array to the ListAdapter and displaying data. If you
               have an entity collection, how do we bind?

               Consider WeekdayItem is the entity.
   29   30   31   32   33   34   35   36   37   38   39