Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6: Binding Data to Controls > Databinding in Mono for Android

Databinding in Mono for Android

The databinding story in Mono for Android is actually quite simple. Databinding is achieved primarily through the use of three different components:

  • A basic view: This view acts as the binding target, whose main responsibility is to carry the user interface layout for a single data entity within the data collection being bound. This will be the view that is repeated several times as the entire layout is generated.
  • Data adapter: This serves as the control for managing the bridge between a data set and the adapter view. The data adapter accomplishes this by controlling the generation of the basic data item views for each entity within the data set.
  • Adapter view: This is a type of viewgroup that supports the dynamic generation of child views for each data item contained within the bound data set. This view works like any other viewgroup in that it controls the layout and flow of the child controls. However, unlike a viewgroup, you cannot add or remove views directly.

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial