public final class SlideUpBuilder
extends java.lang.Object
Default constructor for SlideUp
| Constructor and Description |
|---|
SlideUpBuilder(android.view.View sliderView)
Construct a SlideUp by passing the view or his child to use for the generation
|
| Modifier and Type | Method and Description |
|---|---|
SlideUp |
build()
Build the SlideUp and add behavior to view
|
SlideUpBuilder |
withAutoSlideDuration(int duration)
Define duration of animation (whenever you use
SlideUp.hide() or SlideUp.show() methods) |
SlideUpBuilder |
withGesturesEnabled(boolean enabled)
Turning on/off sliding on touch event
|
SlideUpBuilder |
withHideSoftInputWhenDisplayed(boolean hide)
Define behavior of soft input
|
SlideUpBuilder |
withInterpolator(android.animation.TimeInterpolator interpolator)
Define interpolator for animation (whenever you use
SlideUp.hide() or SlideUp.show() methods) |
SlideUpBuilder |
withListeners(java.util.List<SlideUp.Listener> listeners)
Define a
SlideUp.Listener for this SlideUp |
SlideUpBuilder |
withListeners(SlideUp.Listener... listeners)
Define a
SlideUp.Listener for this SlideUp |
SlideUpBuilder |
withLoggingEnabled(boolean enabled)
Turning on/off debug logging for all handled events
|
SlideUpBuilder |
withSavedState(android.os.Bundle savedState) |
SlideUpBuilder |
withStartGravity(int gravity)
Define a start gravity, this parameter affects the motion vector slider
|
SlideUpBuilder |
withStartState(SlideUp.State startState)
Define a start state on screen
|
SlideUpBuilder |
withTouchableAreaDp(float area)
Define touchable area (in dp) for interaction
|
SlideUpBuilder |
withTouchableAreaPx(float area)
Define touchable area (in px) for interaction
|
public SlideUpBuilder(android.view.View sliderView)
Construct a SlideUp by passing the view or his child to use for the generation
public SlideUpBuilder withStartState(@NonNull SlideUp.State startState)
Define a start state on screen
startState - (default - SlideUp.State.HIDDEN)public SlideUpBuilder withStartGravity(int gravity)
Define a start gravity, this parameter affects the motion vector slider
gravity - (default - Gravity.BOTTOM)public SlideUpBuilder withListeners(@NonNull java.util.List<SlideUp.Listener> listeners)
Define a SlideUp.Listener for this SlideUp
listeners - List of listenerspublic SlideUpBuilder withListeners(@NonNull SlideUp.Listener... listeners)
Define a SlideUp.Listener for this SlideUp
listeners - array of listenerspublic SlideUpBuilder withLoggingEnabled(boolean enabled)
Turning on/off debug logging for all handled events
enabled - (default - false)public SlideUpBuilder withAutoSlideDuration(int duration)
Define duration of animation (whenever you use SlideUp.hide() or SlideUp.show() methods)
duration - (default - 300)public SlideUpBuilder withTouchableAreaPx(float area)
Define touchable area (in px) for interaction
area - (default - 300dp)public SlideUpBuilder withTouchableAreaDp(float area)
Define touchable area (in dp) for interaction
area - (default - 300dp)public SlideUpBuilder withGesturesEnabled(boolean enabled)
Turning on/off sliding on touch event
enabled - (default - true)public SlideUpBuilder withHideSoftInputWhenDisplayed(boolean hide)
Define behavior of soft input
hide - (default - false)public SlideUpBuilder withInterpolator(android.animation.TimeInterpolator interpolator)
Define interpolator for animation (whenever you use SlideUp.hide() or SlideUp.show() methods)
interpolator - (default - Decelerate interpolator)public SlideUpBuilder withSavedState(@Nullable android.os.Bundle savedState)
savedState - parameters will be restored from this bundle, if it contains thempublic SlideUp build()
Build the SlideUp and add behavior to view