![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Andorid
文章平均质量分 81
Mcue
这个作者很懒,什么都没留下…
展开
-
关于自定义ViewGroup的理解和ViewDraghelper的使用
在layout中创建一个activity_main.xml xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertica原创 2016-06-13 10:22:29 · 7162 阅读 · 0 评论 -
关于Scroller的理解
/** * 关于Srcoller滑动处理器 * 作用:让控件自动缓慢滑动到目的地 * 注:是通过ScrollTo()实现,即通过目的坐标滑动,是滑动整个父View,从而改变显示位置。[ScrollBy()则是通过偏移量滑动,也是滑动整个父View] * * 1.scroller.startScroll(startX,startY,dx,dy); * startX 水平方向滚动的偏移值原创 2016-06-13 10:17:10 · 287 阅读 · 0 评论