Java Code Examples for androidx.coordinatorlayout.widget.CoordinatorLayout#findViewWithTag()
The following examples show how to use
androidx.coordinatorlayout.widget.CoordinatorLayout#findViewWithTag() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppBarLayoutOverScrollViewBehavior.java From CrazyDaily with Apache License 2.0 | 5 votes |
@Override public boolean onLayoutChild(CoordinatorLayout parent, AppBarLayout abl, int layoutDirection) { boolean handled = super.onLayoutChild(parent, abl, layoutDirection); if (mTargetView == null) { mTargetView = parent.findViewWithTag(TAG); if (mTargetView != null) { initial(abl); } } return handled; }
Example 2
Source File: AppBarLayoutOverScrollViewBehavior.java From MultiTypeRecyclerViewAdapter with Apache License 2.0 | 5 votes |
@Override public boolean onLayoutChild(CoordinatorLayout parent, AppBarLayout abl, int layoutDirection) { boolean handled = super.onLayoutChild(parent, abl, layoutDirection); // 需要在调用过super.onLayoutChild()方法之后获取 if (mTargetView == null) { mTargetView = parent.findViewWithTag(TAG); if (mTargetView != null) { initial(abl); } } return handled; }
Example 3
Source File: AppBarLayoutOverScrollViewBehavior.java From AndroidAnimationExercise with Apache License 2.0 | 5 votes |
@Override public boolean onLayoutChild(CoordinatorLayout parent, AppBarLayout abl, int layoutDirection) { boolean handled = super.onLayoutChild(parent, abl, layoutDirection); // 需要在调用过super.onLayoutChild()方法之后获取 if (mTargetView == null) { mTargetView = parent.findViewWithTag(TAG); if (mTargetView != null) { initial(abl); } } return handled; }