public interface SwipeHideable
SwipeHideable
Created by Martin Forejt on 08.02.2018. me@martinforejt.cz
| Modifier and Type | Method and Description |
|---|---|
void |
enable(boolean enable)
Enable/disable view for swiping (touching)
|
int |
getDirection()
Returns current direction or 0 if not set
|
void |
hide()
Hide view using default speed
Changes
View.getVisibility() param using animation |
void |
hide(int speed)
Hide view using defined speed
Changes
View.getVisibility() param using animation |
boolean |
isSlideEnabled()
Check if view is enable for swiping (touching)
|
boolean |
isVisible()
Check if view is visible
|
void |
setDirection(int direction)
Sets direction of sliding
|
void |
setOnSwipeChangeListener(OnSwipeChangeListener listener)
Sets on swipe change listener
|
void |
show()
Shows view using default speed
Changes
View.getVisibility() param using animation |
void |
show(int speed)
Shows view using defined speed
Changes
View.getVisibility() param using animation |
void setDirection(int direction)
direction - direction constant from SwipeToHideLayoutdirections constantsint getDirection()
directions constantsvoid show()
View.getVisibility() param using animationvoid show(int speed)
View.getVisibility() param using animationspeed - speed of sliding animation (ms)void hide()
View.getVisibility() param using animationvoid hide(int speed)
View.getVisibility() param using animationspeed - speed of sliding animation (speed)boolean isVisible()
void enable(boolean enable)
enable - enable/disableboolean isSlideEnabled()
void setOnSwipeChangeListener(OnSwipeChangeListener listener)
listener - listener