package Ġk ate . tutorial . tur tle soup Ċ Ċ import Ġandroid . widget . ImageView Ċ import Ġandroidx . databinding . Binding Adapter Ċ import Ġandroidx . swiper ef resh layout . widget . Swipe Refresh Layout Ċ import Ġcom . bump tech . glide . G lide Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠK ate Ġon Ġ 2 0 2 1 / 6 / 1 8 Ċ Ġ*/ Ċ @ Binding Adapter (" is Refresh ing ") Ċ fun Ġis Refresh ing ( swipe Refresh Layout : ĠSw ipe Refresh Layout , ĠisLoading : ĠBoolean ) Ġ{ ĊĠĠĠ Ġif Ġ(! isLoading ) Ġswipe Refresh Layout . is Refresh ing Ġ= Ġfalse Ċ } Ċ Ċ @ Binding Adapter (" imageUrl ") Ċ fun Ġbind Image ( view : ĠImageView , Ġurl : ĠString ?) Ġ{ ĊĠĠĠ Ġif Ġ(! url . isNull OrEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠ ĠG lide . with ( view . context ). load ( url ). center Crop (). fit Center (). into ( view ) ĊĠĠĠ Ġ} Ċ } Ċ