Java Code Examples for android.view.View.setScrollY()

The following are Jave code examples for showing how to use setScrollY() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: airgram   File: ViewProxy.java   View Source Code Vote up 6 votes
public static void setScrollY(View view, int value) {
    if (View10.NEED_PROXY) {
        View10.wrap(view).setScrollY(value);
    } else {
        view.setScrollY(value);
    }
}
 
Example 2
Project: CrazyDaily   File: AppBarLayoutOverScrollViewBehavior.java   View Source Code Vote up 6 votes
private void scale(AppBarLayout abl, View target, int dy) {
    mTotalDy += -dy;
    mTotalDy = Math.min(mTotalDy, TARGET_HEIGHT);
    mLastScale = Math.max(1f, 1f + mTotalDy / TARGET_HEIGHT);
    mTargetView.setScaleX(mLastScale);
    mTargetView.setScaleY(mLastScale);
    mLastBottom = mParentHeight + (int) (mTargetViewHeight / 2 * (mLastScale - 1));
    abl.setBottom(mLastBottom);
    target.setScrollY(0);
}
 
Example 3
Project: MultiTypeRecyclerViewAdapter   File: AppBarLayoutOverScrollViewBehavior.java   View Source Code Vote up 6 votes
private void scale(AppBarLayout abl, View target, int dy) {
    mTotalDy += -dy;
    mTotalDy = Math.min(mTotalDy, TARGET_HEIGHT);
    mLastScale = Math.max(1f, 1f + mTotalDy / TARGET_HEIGHT);
    mTargetView.setScaleX(mLastScale);
    mTargetView.setScaleY(mLastScale);
    mLastBottom = mParentHeight + (int) (mTargetViewHeight / 2 * (mLastScale - 1));
    abl.setBottom(mLastBottom);
    target.setScrollY(0);
}
 
Example 4
Project: PlusGram   File: ViewProxy.java   View Source Code Vote up 6 votes
public static void setScrollY(View view, int value) {
    if (View10.NEED_PROXY) {
        View10.wrap(view).setScrollY(value);
    } else {
        view.setScrollY(value);
    }
}
 
Example 5
Project: MaterialDesignDemo   File: CustomerBehavior2.java   View Source Code Vote up 6 votes
/**
 * 开始滚动前
 */
@Override
public void onNestedPreScroll(CoordinatorLayout coordinatorLayout, View child, View target, int dx, int dy, int[] consumed) {
    int scrollY = target.getScrollY();
    child.setScrollY(scrollY);
    super.onNestedPreScroll(coordinatorLayout, child, target, dx, dy, consumed);
}
 
Example 6
Project: LuaViewPlayground   File: ViewHelper.java   View Source Code Vote up 5 votes
static void setScrollY(View view, int scrollY) {
    view.setScrollY(scrollY);
}
 
Example 7
Project: exciting-app   File: ViewHelper.java   View Source Code Vote up 5 votes
static void setScrollY(View view, int scrollY) {
    view.setScrollY(scrollY);
}
 
Example 8
Project: boohee_v5.6   File: ViewHelper.java   View Source Code Vote up 5 votes
static void setScrollY(View view, int scrollY) {
    view.setScrollY(scrollY);
}
 
Example 9
Project: android-project-gallery   File: ViewHelper.java   View Source Code Vote up 5 votes
static void setScrollY(View view, int scrollY) {
    view.setScrollY(scrollY);
}
 
Example 10
Project: android_additive_animations   File: ScrollProperties.java   View Source Code Vote up 5 votes
@Override
public void set(View object, Float value) {
    object.setScrollY(value.intValue());
}