public class AHBottomNavigationBehavior<V extends android.view.View> extends VerticalScrollingBehavior<V>
VerticalScrollingBehavior.ScrollDirection| Constructor and Description |
|---|
AHBottomNavigationBehavior() |
AHBottomNavigationBehavior(boolean behaviorTranslationEnabled) |
AHBottomNavigationBehavior(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
static <V extends android.view.View> |
from(V view) |
void |
hideView(V view,
int offset,
boolean withAnimation)
Hide AHBottomNavigation with animation
|
boolean |
layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency) |
boolean |
onDependentViewChanged(CoordinatorLayout parent,
V child,
android.view.View dependency) |
void |
onDependentViewRemoved(CoordinatorLayout parent,
V child,
android.view.View dependency) |
void |
onDirectionNestedPreScroll(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
int dx,
int dy,
int[] consumed,
int scrollDirection) |
boolean |
onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection) |
protected boolean |
onNestedDirectionFling(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
float velocityX,
float velocityY,
int scrollDirection) |
void |
onNestedVerticalOverScroll(CoordinatorLayout coordinatorLayout,
V child,
int direction,
int currentOverScroll,
int totalOverScroll) |
void |
resetOffset(V view,
boolean withAnimation)
Reset AHBottomNavigation position with animation
|
void |
setTabLayoutId(int tabId) |
void |
updateFloatingActionButton(android.view.View dependency)
Update floating action button bottom margin
|
void |
updateSnackbar(android.view.View child,
android.view.View dependency)
Update Snackbar bottom margin
|
getOverScrollDirection, getScrollDirection, onApplyWindowInsets, onNestedFling, onNestedPreFling, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onSaveInstanceState, onStartNestedScroll, onStopNestedScrollpublic AHBottomNavigationBehavior()
public AHBottomNavigationBehavior(boolean behaviorTranslationEnabled)
public AHBottomNavigationBehavior(android.content.Context context,
android.util.AttributeSet attrs)
public boolean onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection)
public boolean onDependentViewChanged(CoordinatorLayout parent,
V child,
android.view.View dependency)
public void onDependentViewRemoved(CoordinatorLayout parent,
V child,
android.view.View dependency)
public boolean layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency)
public void onNestedVerticalOverScroll(CoordinatorLayout coordinatorLayout,
V child,
int direction,
int currentOverScroll,
int totalOverScroll)
onNestedVerticalOverScroll in class VerticalScrollingBehavior<V extends android.view.View>direction - Direction of the overscroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNcurrentOverScroll - Unconsumed value, negative or positive based on the direction;totalOverScroll - Cumulative value for current directionpublic void onDirectionNestedPreScroll(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
int dx,
int dy,
int[] consumed,
int scrollDirection)
onDirectionNestedPreScroll in class VerticalScrollingBehavior<V extends android.view.View>scrollDirection - Direction of the overscroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNprotected boolean onNestedDirectionFling(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
float velocityX,
float velocityY,
int scrollDirection)
onNestedDirectionFling in class VerticalScrollingBehavior<V extends android.view.View>public static <V extends android.view.View> AHBottomNavigationBehavior<V> from(V view)
public void setTabLayoutId(int tabId)
public void hideView(V view, int offset, boolean withAnimation)
view - offset - public void resetOffset(V view, boolean withAnimation)
view - public void updateSnackbar(android.view.View child,
android.view.View dependency)
public void updateFloatingActionButton(android.view.View dependency)