Skip to content

Extension Functions

Shanti Ranjan Das edited this page Jan 24, 2020 · 5 revisions

Categories of extensions

ActivityUtils

All the methods of this class will be called from an activity or from the activity scope.

  • hideKeyboard()
    This will hide the softinput

AnimationUtils

  • circularRevealEnter(view: View) Creates a material style circular reveal entrance animation similar to the one in Google Play. Just pass your view.

  • circularRevealExit(view: View)
    Creates a material style circular reveal exit animation similar to the one in Google Play. Just pass your view.

  • startAnimation(animId: Int, view: View) Provide the animation and view , to start the animation, pass anim id like R.anim. and view on which animation is to be performed. It will run in main thread.

  • startAnimation(animation: Animation, view: View) Provide the animation and view , to start the animation, pass animation and view on which animation is to be performed. It will run in main thread.

  • startAnimationInSeparateThread(animId: Int, view: View) Provide the animation and view , to start the animation, pass anim id like R.anim. and view on which animation is to be performed.

  • startAnimationInSeparateThread(animation: Animation, view: View) Provide the animation and view , to start the animation, pass animation and view on which animation is to be performed.

Clone this wiki locally