package Ġcom . ah med adel sa id . github repos . kotlin . extensions Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . view . animation . Accel erate Interpolator Ċ import Ġandroid . view . animation . Alpha Animation Ċ import Ġandroid . view . animation . Animation Ċ import Ġandroid . view . animation . De cel erate Interpolator Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠAh med ĠA del Ġon Ġ 2 7 / 0 7 / 2 0 1 8 . Ċ Ġ* Ċ Ġ* ĠView ĠExtensions Ġthat Ġwill Ġbe Ġhelpful Ġfor Ġfurther Ġdevelopment Ġduring Ġthe Ġapp . Ċ Ġ*/ Ċ Ċ fun ĠView . fadeOut Animation ( animation Duration : ĠLong , Ġanimation Listener : ĠAnimation . Animation Listener ) Ġ{ ĊĠĠĠ Ġval Ġfade Out Ġ= ĠAlpha Animation ( 1 f , Ġ 0 f ) ĊĠĠĠ Ġfade Out . interpol ator Ġ= ĠAccel erate Interpolator () ĊĠĠĠ Ġfade Out . start Offset Ġ= Ġanimation Duration ĊĠĠĠ Ġfade Out . duration Ġ= Ġanimation Duration ĊĠĠĠ Ġfade Out . set Animation Listener ( animation Listener ) ĊĠĠĠ Ġstart Animation ( fadeOut ) Ċ } Ċ Ċ fun ĠView . fadeIn Animation ( animation Duration : ĠLong , Ġanimation Listener : ĠAnimation . Animation Listener ) Ġ{ ĊĠĠĠ Ġval ĠfadeIn Ġ= ĠAlpha Animation ( 0 f , Ġ 1 f ) ĊĠĠĠ ĠfadeIn . interpol ator Ġ= ĠDec el erate Interpolator () ĊĠĠĠ ĠfadeIn . duration Ġ= Ġanimation Duration ĊĠĠĠ ĠfadeIn . set Animation Listener ( animation Listener ) ĊĠĠĠ Ġstart Animation ( fadeIn ) Ċ }