package Ġgithub . inform ram iz . aster iod radar . view . common extensions Ċ Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġgithub . inform ram iz . aster iod radar . R Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠRam iz ĠR aja Ġon Ġ 1 8 / 0 4 / 2 0 2 0 Ċ Ġ*/ Ċ @ Binding Adapter (" velocity Text ") Ċ fun ĠTextView . set Velocity Text ( velocity : ĠDouble ) Ġ{ ĊĠĠĠ Ġtext Ġ= Ġcontext . getString ( R . string . km _ s _ unit _ format , Ġvelocity ) Ċ } Ċ Ċ @ Binding Adapter (" km Unit Text ") Ċ fun ĠTextView . set A str onom ical Unit Text ( value : ĠDouble ) Ġ{ ĊĠĠĠ Ġtext Ġ= Ġcontext . getString ( R . string . km _ unit _ format , Ġvalue ) Ċ } Ċ Ċ @ Binding Adapter (" astr onom ical Unit Text ") Ċ fun ĠTextView . astr onom ical Unit Text ( value : ĠDouble ) Ġ{ ĊĠĠĠ Ġtext Ġ= Ġcontext . getString ( R . string . astr onom ical _ unit _ format , Ġvalue ) Ċ }