Lines Matching defs:AppBarLayout

44  * AppBarLayout is a vertical {@link LinearLayout} which implements many of the features of
53 * If you use AppBarLayout within a different {@link ViewGroup}, most of it's functionality will
56 * AppBarLayout also requires a separate scrolling sibling in order to know when to scroll.
77 * <android.support.design.widget.AppBarLayout
89 * </android.support.design.widget.AppBarLayout>
97 @CoordinatorLayout.DefaultBehavior(AppBarLayout.Behavior.class)
98 public class AppBarLayout extends LinearLayout {
106 * Interface definition for a callback to be invoked when an {@link AppBarLayout}'s vertical
111 * Called when the {@link AppBarLayout}'s layout offset has been changed. This allows
115 * @param appBarLayout the {@link AppBarLayout} which offset has changed
116 * @param verticalOffset the vertical offset for the parent {@link AppBarLayout}, in px
118 void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset);
137 public AppBarLayout(Context context) {
141 public AppBarLayout(Context context, AttributeSet attrs) {
145 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AppBarLayout,
173 * Add a listener that will be called when the offset of this {@link AppBarLayout} changes.
221 throw new IllegalArgumentException("AppBarLayout is always vertical and does"
228 * Sets whether this {@link AppBarLayout} is expanded or not, animating if it has already
231 * <p>As with {@link AppBarLayout}'s scrolling, this method relies on this layout being a
244 * Sets whether this {@link AppBarLayout} is expanded or not.
246 * <p>As with {@link AppBarLayout}'s scrolling, this method relies on this layout being a
434 * Set the elevation value to use when this {@link AppBarLayout} should be elevated
450 * Returns the elevation value to use when this {@link AppBarLayout} should be elevated
626 * The default {@link Behavior} for {@link AppBarLayout}. Implements the necessary nested
629 public static class Behavior extends ViewOffsetBehavior<AppBarLayout> {
659 public boolean onStartNestedScroll(CoordinatorLayout parent, AppBarLayout child,
679 public void onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child,
697 public void onNestedScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child,
714 public void onStopNestedScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child,
723 public boolean onInterceptTouchEvent(CoordinatorLayout parent, AppBarLayout child,
779 public boolean onTouchEvent(CoordinatorLayout parent, AppBarLayout child, MotionEvent ev) {
833 final AppBarLayout child, View target, float velocityX, float velocityY,
873 final AppBarLayout child, int offset) {
892 private boolean fling(CoordinatorLayout coordinatorLayout, AppBarLayout layout, int minOffset,
920 private final AppBarLayout mLayout;
922 FlingRunnable(CoordinatorLayout parent, AppBarLayout layout) {
939 public boolean onLayoutChild(CoordinatorLayout parent, AppBarLayout abl,
980 private int scroll(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout,
995 AppBarLayout appBarLayout, int newOffset) {
1001 AppBarLayout appBarLayout, int newOffset, int minOffset, int maxOffset) {
1038 private void dispatchOffsetUpdates(AppBarLayout layout) {
1051 private int interpolateOffset(AppBarLayout layout, final int offset) {
1056 final AppBarLayout.LayoutParams childLp = (LayoutParams) child.getLayoutParams();
1099 public Parcelable onSaveInstanceState(CoordinatorLayout parent, AppBarLayout appBarLayout) {
1123 public void onRestoreInstanceState(CoordinatorLayout parent, AppBarLayout appBarLayout,
1178 * nested scrolling to automatically scroll any {@link AppBarLayout} siblings.
1198 return dependency instanceof AppBarLayout;
1217 final AppBarLayout appBar = findFirstAppBarLayout(dependencies);
1220 // If the AppBarLayout is fitting system windows then we need to also,
1260 if (mOverlayTop != 0 && dependency instanceof AppBarLayout) {
1261 // If we have an overlap top, and the dependency is an AppBarLayout, we control
1264 final int scrollRange = ((AppBarLayout) dependency).getTotalScrollRange();
1275 * Set the distance that this view should overlap any {@link AppBarLayout}.
1284 * Returns the distance that this view should overlap any {@link AppBarLayout}.
1290 private static AppBarLayout findFirstAppBarLayout(List<View> views) {
1293 if (view instanceof AppBarLayout) {
1294 return (AppBarLayout) view;