社区
Android
帖子详情
ScrollView滑动到底部,点击底部控件出现回弹效果,如何解决
零度殇
2015-11-19 12:47:24
货物列表···那栏一直到· ··车辆已用空间 都在Scrollview中套着。。
只要scrollview滑动到最低部,点击车辆已用空间8个控件时,就会自动向上回弹一段 (如图二)
如果 scrollview没有滑动到最底部,点击则不会滑动。。(如图一)
请问如何解决 滑倒底部时不会出现回弹效果。
...全文
1044
4
打赏
收藏
ScrollView滑动到底部,点击底部控件出现回弹效果,如何解决
货物列表···那栏一直到· ··车辆已用空间 都在Scrollview中套着。。 只要scrollview滑动到最低部,点击车辆已用空间8个控件时,就会自动向上回弹一段 (如图二) 如果 scrollview没有滑动到最底部,点击则不会滑动。。(如图一) 请问如何解决 滑倒底部时不会出现回弹效果。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
孤独小书生
2015-11-20
打赏
举报
回复
我感觉是不是你把手机系统状态栏的高度给算进去了,我上次自定义一个view高度用的全屏就出现跟你一样的效果,你这个不是自定义view就多看看布局把
jklwan
2015-11-19
打赏
举报
回复
<RelativeLayout android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginTop="10dp" 这个android:layout_marginTop这句删掉,然后上面的LinearLayout加上android:layout_marginBottom="10dp"试试
零度殇
2015-11-19
打赏
举报
回复
引用 1 楼 jklwan 的回复:
需要看布局和你那底部几个控件点击事件
布局是ScrollView 中 嵌套有listview listview和Scrollview的焦点问题以解决 <ScrollView android:id="@+id/scr_fill" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@+id/lyt_buttom" android:layout_below="@+id/lyt_bb" android:scrollbars="none" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:orientation="vertical" > <com.elong.elonlogistics.view.ListViewForScrollView android:id="@+id/lst_fill" android:layout_width="fill_parent" android:layout_height="fill_parent" > </com.elong.elonlogistics.view.ListViewForScrollView> <RelativeLayout android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginTop="10dp" android:background="#ffffff" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:layout_marginLeft="10dp" android:text="车辆已用空间" android:textSize="15sp" /> <LinearLayout android:layout_width="175dp" android:layout_height="40dp" android:layout_marginLeft="17dp" android:layout_toRightOf="@+id/textView1" android:orientation="horizontal" > <ImageView android:id="@+id/img_1" android:layout_width="15dp" android:layout_height="30dp" android:layout_marginBottom="5dp" android:layout_marginTop="5dp" android:background="@drawable/aa_searchbox" /> <ImageView android:id="@+id/img_2" android:layout_width="15dp" android:layout_height="30dp" android:layout_marginBottom="5dp" android:layout_marginLeft="6dp" android:layout_marginTop="5dp" android:background="@drawable/aa_searchbox" /> </LinearLayout> <TextView android:id="@+id/txt_space" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_marginRight="10dp" android:text="0立方" android:textSize="15sp" /> </RelativeLayout> </LinearLayout> </ScrollView> 布局大概就这样 如果滑动到图2显示的位置 Scrollview没有达到最底部,则不会出现向上回弹的效果
jklwan
2015-11-19
打赏
举报
回复
需要看布局和你那底部几个控件点击事件
Android,自定义
ScrollView
,实现过度
滑动
时
回弹
效果
Android,自定义
ScrollView
,实现过度
滑动
时
回弹
效果
。纵向的
ScrollView
,过度
滑动
时,手指抬起即
出现
回弹
效果
,这是一种边界反馈。
scrollview
的
回弹
效果
有详细的代码注释,代码量少,易懂,当
scrollview
滑动
至顶部或者
底部
时,都可以在
回弹
安卓 惯性
滑动
回弹
ScrollView
实现 惯性
滑动
回弹
ScrollView
android
ScrollView
阻尼
回弹
效果
仿微信
微信朋友圈那种;图片隐藏一部分然后下拉;然后会弹回去;继续隐藏。主要是微信朋友圈那样的
效果
。
android
ScrollView
弹性
控件
,横向和纵向
滑动
和网络上的Rebound
ScrollView
类似,但是没有那些
滑动
BUG,并且有横向弹性
滑动
Android
80,472
社区成员
91,391
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章