package Ġnet . app tr onic . test . commons _ sample _ app . bind ers Ċ Ċ import Ġnet . app tr onic . core . android . view model . View Binder Ċ import Ġnet . app tr onic . core . android . view model . bindings . bind ClickListener Ċ import Ġnet . app tr onic . core . android . view model . bindings . bind Text Ċ import Ġnet . app tr onic . test . commons _ sample _ app . R Ċ import Ġnet . app tr onic . test . commons _ sample _ app . databinding . Page Text Binding Ċ import Ġnet . app tr onic . test . commons _ sample _ app . pager . pages . Text Page ViewModel Ċ Ċ class ĠText Page View Binder Ġ: ĠView Binder < Text Page ViewModel >() Ġ{ ĊĊĠĠĠ Ġoverride Ġvar Ġlayout Res Id : ĠInt ? Ġ= ĠR . layout . page _ text ĊĊĠĠĠ Ġoverride Ġfun Ġon BindView () Ġ= Ġwith Binding ( Page Text Binding :: bind ) Ġ{ ĊĠĠĠĠĠĠĠ Ġbind Text ( text Page Number , ĠviewModel . number ) ĊĠĠĠĠĠĠĠ Ġbind Text ( text Page Value , ĠviewModel . text ) ĊĠĠĠĠĠĠĠ Ġbind ClickListener ( text Page Value , ĠviewModel :: on Text Click ) ĊĠĠĠ Ġ} Ċ Ċ }