-
Notifications
You must be signed in to change notification settings - Fork 0
ViewUtils
Shanti Ranjan Das edited this page Feb 1, 2020
·
3 revisions
-
addMarginInTabLayout(color: Int, width: Int, height: Int, paddingFromDivider: Int)
Add Vertical margins between every tab in TabLayout(Like A | B | C). RequiresTabLayout
object to perform this operation.
Following functions require View object to perform below operations
-
hideView()
Hide any view by just calling it in it. Likeview.hideView()
. -
showView()
Show any view by just calling it in it. -
autoVisibility()
Reverse the visibility of the view. -
forceScrollGestures()
Set scroll gestures for layout or view inside a scrollview or scrolling view. -
visibility(visibility: Boolean)
Show or Hide the view with true or false -
showSoftKeyboard()
Show keyboard on the basis of a view. -
autoVisibility(allViews: Array<View>)
Reverse the visibility of the views. -
hide(allViews: Array<View>)
Hide all the views. -
show(allViews: Array<View>)
Show all the views.