Skip to content

ViewUtils

Shanti Ranjan Das edited this page Jan 25, 2020 · 3 revisions
  • addMarginInTabLayout(color: Int, width: Int, height: Int, paddingFromDivider: Int)
    Add Vertical margins between every tab in TabLayout(Like A | B | C). Requires TabLayout object to perform this operation.

Following functions require View object to perform below operations

  • hideView()
    Hide any view by just calling it in it. Like view.hideView().

  • showView()
    Show any view by just calling it in it.

  • visibility(visibility: Boolean)
    Show or Hide the view with true or false

  • showSoftKeyboard()
    Show keyboard on the basis of a view.

Clone this wiki locally