package Ġcom . cr az yle g end . kotlin extensions . views Ċ Ċ import Ġandroid . graphics . drawable . Drawable Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . Button Ċ import Ġandroid . widget . ProgressBar ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby Ġh rist ij an Ġon Ġ 3 / 4 / 1 9 Ġto Ġlong Ġlive Ġand Ġpro sper Ġ! Ċ Ġ*/ ĊĊ Ċ private Ġvar Ġview Original Height : ĠInt Ġ= Ġ 0 Ċ Ċ fun ĠButton . enable Button With Loading ( progress Bar : ĠProgress Bar ) Ġ{ ĊĠĠĠ ĠprogressBar . visibility Ġ= ĠView . GONE ĊĠĠĠ Ġif Ġ( this . tag Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . text Ġ= Ġthis . tag . toString () ĊĠĠĠ Ġ} ĊĠĠĠ Ġthis . isEnabled Ġ= Ġtrue ĊĠĠĠ Ġthis . alpha Ġ= Ġ 1 f Ċ } Ċ Ċ fun ĠButton . disable Button With Loading ( progress Bar : ĠProgress Bar ) Ġ{ ĊĠĠĠ ĠprogressBar . visibility Ġ= ĠView . VISIBLE ĊĠĠĠ Ġthis . tag Ġ= Ġthis . text ĊĠĠĠ Ġthis . text Ġ= Ġ"" ĊĠĠĠ Ġthis . isEnabled Ġ= Ġfalse ĊĠĠĠ Ġthis . alpha Ġ= Ġ 0 . 7 . toFloat () Ċ } Ċ Ċ fun ĠButton . enable Button () Ġ{ ĊĠĠĠ Ġthis . isEnabled Ġ= Ġtrue ĊĠĠĠ Ġthis . alpha Ġ= Ġ 1 f Ċ } Ċ Ċ fun ĠButton . disable Button () Ġ{ ĊĠĠĠ Ġthis . isEnabled Ġ= Ġfalse ĊĠĠĠ Ġthis . alpha Ġ= Ġ 0 . 7 . toFloat () Ċ } Ċ Ċ var ĠButton . compound Drawable Start : ĠDrawable ? ĊĠĠĠ Ġget () Ġ= Ġcompound Draw ables Relative [ 0 ] ĊĠĠĠ Ġset ( value ) Ġ= Ġset Compound Draw ables Relative With Intr insic Bounds ( value , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 1 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 2 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 3 ]) Ċ Ċ var ĠButton . compound Drawable Top : ĠDrawable ? ĊĠĠĠ Ġget () Ġ= Ġcompound Draw ables Relative [ 1 ] ĊĠĠĠ Ġset ( value ) Ġ= Ġset Compound Draw ables Relative With Intr insic Bounds ( compound Draw ables Relative [ 0 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalue , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 2 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 3 ]) Ċ Ċ var ĠButton . compound Drawable End : ĠDrawable ? ĊĠĠĠ Ġget () Ġ= Ġcompound Draw ables Relative [ 2 ] ĊĠĠĠ Ġset ( value ) Ġ= Ġset Compound Draw ables Relative With Intr insic Bounds ( compound Draw ables Relative [ 0 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 1 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalue , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 3 ]) Ċ Ċ var ĠButton . compound Drawable Bottom : ĠDrawable ? ĊĠĠĠ Ġget () Ġ= Ġcompound Draw ables Relative [ 3 ] ĊĠĠĠ Ġset ( value ) Ġ= Ġset Compound Draw ables Relative With Intr insic Bounds ( compound Draw ables Relative [ 0 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 1 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcompound Draw ables Relative [ 2 ], ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalue )