Package com.alviere.android.payments.ui.extensions

Functions

addFragment
Link copied to clipboard
fun AppCompatActivity.addFragment(fragment: Fragment, @IdRes() containerViewId: Int, tag: String)
Add a fragment to the container without animations.
fun AppCompatActivity.addFragment(fragment: Fragment, @IdRes() containerViewId: Int, tag: String, @AnimatorRes() @AnimRes() enter: Int, @AnimatorRes() @AnimRes() exit: Int, @AnimatorRes() @AnimRes() popEnter: Int, @AnimatorRes() @AnimRes() popExit: Int)
Add a fragment to the container and set animations resources to run.
getNumberOfFragmentsInStack
Link copied to clipboard
fun AppCompatActivity.getNumberOfFragmentsInStack(): Int
Return the number of entries currently in the back stack.
goToFragmentWithoutHistory
Link copied to clipboard
fun AppCompatActivity.goToFragmentWithoutHistory(fragment: Fragment, @IdRes() containerViewId: Int)
Replace a fragment that was added to the container.
hideKeyboard
Link copied to clipboard
fun View.hideKeyboard()
Clear focus and closes the keyboard
replaceFragment
Link copied to clipboard
fun AppCompatActivity.replaceFragment(fragment: Fragment, @IdRes() containerViewId: Int)
Replace an existing fragment that was added to the container.
fun AppCompatActivity.replaceFragment(fragment: Fragment, @IdRes() containerViewId: Int, tag: String)
Replace a fragment that was added to the container.
fun AppCompatActivity.replaceFragment(fragment: Fragment, @IdRes() containerViewId: Int, tag: String, @AnimatorRes() @AnimRes() enter: Int, @AnimatorRes() @AnimRes() exit: Int)
Replace a fragment that was added to the container and set animations resources to run (not be played when popping the back stack).
fun AppCompatActivity.replaceFragment(fragment: Fragment, @IdRes() containerViewId: Int, @AnimatorRes() @AnimRes() enter: Int, @AnimatorRes() @AnimRes() exit: Int, @AnimatorRes() @AnimRes() popEnter: Int, @AnimatorRes() @AnimRes() popExit: Int)
Replace an existing fragment that was added to the container.
fun AppCompatActivity.replaceFragment(fragment: Fragment, @IdRes() containerViewId: Int, tag: String?, @AnimatorRes() @AnimRes() enter: Int, @AnimatorRes() @AnimRes() exit: Int, @AnimatorRes() @AnimRes() popEnter: Int, @AnimatorRes() @AnimRes() popExit: Int)
Replace a fragment that was added to the container and set animations resources to run.
showKeyboard
Link copied to clipboard
fun View.showKeyboard()
Request focus and open the keyboard