package Ġcom . ray w ender lich . android . us pace . binding adapters Ċ Ċ import Ġandroid . view . View Ċ import Ġandroidx . databinding . Binding Adapter Ċ Ċ @ Binding Adapter (" android : visibility ") Ċ fun ĠView . setVisibility ( visible : ĠBoolean ) Ġ{ ĊĠ Ġvisibility Ġ= Ġif Ġ( visible ) Ġ{ ĊĠĠĠ ĠView . VISIBLE ĊĠ Ġ} Ġelse Ġ{ ĊĠĠĠ ĠView . GONE ĊĠ Ġ} Ċ } Ċ