package Ġcom . sch ib st ed . sp ain . pr ado . image provider Ċ Ċ import Ġandroid . graphics . drawable . Drawable Ċ import Ġandroid . widget . ImageView Ċ import Ġandroid . widget . Relative Layout Ċ import Ġcom . bump tech . glide . load . resource . drawable . G lide Drawable Ċ import Ġcom . bump tech . glide . request . animation . G lide Animation Ċ import Ġcom . bump tech . glide . request . target . G lide Drawable ImageView Target Ċ import Ġcom . github . chr is ban es . photo view . Photo View Att acher Ċ import Ġcom . sch ib st ed . sp ain . pr ado . extensions . center In Parent Ċ import Ġjava . lang . Exception ĊĊ Ċ internal Ġclass ĠG lide Drawable Photo View Att acher Target ( val ĠimageView : ĠImageView , Ġval Ġphoto View Att acher : ĠPhoto View Att acher ) Ġ: ĠG lide Drawable ImageView Target ( imageView ) Ġ{ ĊĊĠ Ġoverride Ġfun ĠonLoad Started ( placeholder : ĠDrawable ?) Ġ{ ĊĠĠĠ ĠimageView . scale Type Ġ= ĠImageView . Scale Type . CENTER _ C ROP ĊĠĠĠ ĠimageView . center In Parent ( Relative Layout . LayoutParams ( Relative Layout . LayoutParams . WRAP _ CONTENT , ĠRelative Layout . LayoutParams . WRAP _ CONTENT )) ĊĠĠĠ Ġsuper . on Load Started ( placeholder ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠonLoad Failed ( e : ĠException ?, Ġerror Drawable : ĠDrawable ?) Ġ{ ĊĠĠĠ ĠimageView . scale Type Ġ= ĠImageView . Scale Type . CENTER _ C ROP ĊĠĠĠ ĠimageView . center In Parent ( Relative Layout . LayoutParams ( Relative Layout . LayoutParams . WRAP _ CONTENT , ĠRelative Layout . LayoutParams . WRAP _ CONTENT )) ĊĠĠĠ Ġsuper . on Load Failed ( e , Ġerror Drawable ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Resource Ready ( resource : ĠG lide Drawable ?, Ġanimation : ĠG lide Animation < in ĠG lide Drawable > ?) Ġ{ ĊĠĠĠ ĠimageView . scale Type Ġ= ĠImageView . Scale Type . MATRIX ĊĠĠĠ ĠimageView . layout Params Ġ= ĠRelative Layout . LayoutParams ( Relative Layout . LayoutParams . MATCH _ PARENT , ĠRelative Layout . LayoutParams . MATCH _ PARENT ) ĊĠĠĠ Ġphoto View Att acher . update () ĊĠĠĠ Ġsuper . on Resource Ready ( resource , Ġnull ) ĊĠ Ġ} Ċ }