waitMeOY

waitMeOY

V2EX 第 682557 号会员,加入于 2024-03-29 16:09:49 +08:00
1 G 21 S 43 B
根据 waitMeOY 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
waitMeOY 最近回复了
@prettybot 放了
<com.example.myapplication.ui.activity.viewpager.nestedsliding.NestedScrollingParent3Layout
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- ........省略头部内容-->
</FrameLayout>


<com.example.myapplication.ui.activity.viewpager.nestedsliding.WrapContentViewPager2
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>

</com.example.myapplication.ui.activity.viewpager.nestedsliding.NestedScrollingParent3Layout>
private void dispatchChildFling(float v1) {
startChildScrollWithScroller( v1);
// if (velocityY != 0) {
// double totalDistance = mFlingHelper.getSplineFlingDistance(velocityY);
// //根据速度求的距离大于滑动的距离时
// if (totalDistance > totalDy) {
// //求距离差的速度
// if (totalDistance > 0 && mChildrenScrollWrapperView != null) {
// // 开始子视图滚动
//
// } else {
// Log.d(TAG, "子视图无法滚动或剩余距离不足");
// }
// }
// }
}

/**
* 使用 Scroller 开始子视图滚动
*/
private void startChildScrollWithScroller( float velocity) {
if (mChildrenScrollWrapperView == null || mChildrenScrollWrapperView.isScrollToBottom()) {
Log.d(TAG, "子视图无法滚动");
return;
}
// 停止父视图的滚动
fling(0);
Log.d(TAG, "startChildScrollWithScroller=====" + velocity);
// 重置滚动状态
mLastScrollY = 0;
mChildrenScrollWrapperView.flingY((int) velocity);
}
private void initView(Context context) {
mFlingHelper = new FlingHelper2(context);
mScroller = new OverScroller(context);
mMaximumFlingVelocity = ViewConfiguration.get(context).getScaledMaximumFlingVelocity();
velocityDecayCalculator = new VelocityDecayCalculator(context);
Log.d(TAG, "速度限定为: " + mMaximumFlingVelocity);
setOnScrollChangeListener(new OnScrollChangeListener() {
@Override
public void onScrollChange(@NonNull NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {
Log.d("onScrollChange", "---------isFlinging-------" + velocityY + "");
if (isStartFling) {
totalDy = 0;
isStartFling = false;
}

if (scrollY == getTopViewHeight() && !mChildrenScrollWrapperView.isScrollToBottom()) {
//开始底部的滑动
// dispatchChildFlingImproved();
float v1 = NestedNSVOverScroller.invokeCurrentVelocity(NestedScrollingParent3Layout.this);
dispatchChildFling(v1);
}
totalDy += scrollY - oldScrollY;
}
});
}
代码传不上去,贴就提示 不受欢迎 ,访问被拒绝。现在有什么贴图的办法吗
推荐 bebebus 宇航员,如果娃小能用 6 个多月,咸鱼 150 可以收一个成色很好的,还是很值得的。
@lzq872904847 远超预算了。实际照顾 42 支出 2W8 。所以不做推荐了
85 天前
回复了 waitMeOY 创建的主题 问与答 想找大学生设计做几个页面
@Razio A I 不能提供 PSD 呀
@mbtfdwlx 我们之前母乳转奶粉一直绿边,今天终于黄灿灿的了。现在三个月,二月闹结束了,目前日奶量 500 ~ 700 之间,不算大
@mbtfdwlx 就怕吃着吃着过敏或者不吃了,我经常在邻居群二手群看到说转水解奶的。

@snappyone 工资也没那么高,不管是我父母还是岳父母带娃 都没自己放心。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2827 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 13:27 · PVG 21:27 · LAX 06:27 · JFK 09:27
♥ Do have faith in what you're doing.