package Ġnet . cri ms on wood s . easy databinding . binding Ċ Ċ import Ġandroid . widget . ListView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġkotlin . math . round ToInt Ċ import Ġnet . cri ms on wood s . easy databinding . models . Bool Ċ import Ġnet . cri ms on wood s . easy databinding . models . Dimension Ċ import Ġnet . cri ms on wood s . easy databinding . models . Drawable Ċ Ċ @ Binding Adapter (" android : divider ") Ċ fun ĠListView . set Divider ( value : ĠDrawable ) Ġ{ ĊĠĠĠ Ġdivider Ġ= Ġvalue . to Drawable () Ċ } Ċ Ċ @ Binding Adapter (" android : divider Height ") Ċ fun ĠListView . set Divider Height ( value : ĠDimension ) Ġ{ ĊĠĠĠ Ġdivider Height Ġ= Ġvalue . to Px (). round ToInt () Ċ } Ċ Ċ @ Binding Adapter (" android : footer Div iders Enabled ") Ċ fun ĠListView . set Footer Div iders Enabled ( value : ĠBool ) Ġ{ ĊĠĠĠ Ġset Footer Div iders Enabled ( value . to Boolean ()) Ċ } Ċ Ċ @ Binding Adapter (" android : header Div iders Enabled ") Ċ fun ĠListView . setHeader Div iders Enabled ( value : ĠBool ) Ġ{ ĊĠĠĠ Ġset Header Div iders Enabled ( value . to Boolean ()) Ċ } Ċ