package Ġcom . sim form . vide oc all demo . adapters Ċ Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . sim form . vide oc all demo . R Ċ Ċ class ĠBinding Adapter Ġ{ ĊĠ Ġcompanion Ġobject { ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġ@ Binding Adapter (" timer _ text ") ĊĠĠĠ Ġfun Ġset Timer Text ( textView : TextView , Ġseconds : Mutable LiveData < Int > ){ ĊĠĠĠĠĠ Ġval Ġsecond Ġ= Ġ( seconds . value ?. div ( 1 0 0 0 )) ?. rem ( 6 0 ) ĊĠĠĠĠĠ Ġval Ġminutes Ġ= Ġ( seconds . value ?. div ( 1 0 0 0 )) ?. div ( 6 0 ) ĊĠĠĠĠĠ ĠtextView . text Ġ= ĠtextView . context . getString ( R . string . msg _ call _ timer , minutes , second ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }