https://github.com/codepath/android-custom-view-demos/blob/master/README.md
http://www.vogella.com/tutorials/AndroidCustomViews/article.html
https://github.com/codepath/android_guides/wiki/Basic-Painting-with-Views
2018.9.17
1.用法
https://www.jianshu.com/p/1a1491f059fc
2.用法
https://www.cnblogs.com/mengdd/p/3332882.html
3.自定义View
- create drawing objects
Canvas+Paint
- handle layout events
View.MeasureSpec
LayoutParams
onMeasure
https://developer.android.com/training/custom-views/custom-drawing
4.同样大的面积里会有不同个数的像素点,这就是造成高低分辨率的原因。
- pixel和dp的转换
- 布局大小(dp)和字体大小(sp)的单位
https://developer.android.com/training/multiscreen/screendensities
https://developer.android.com/guide/topics/graphics/drawables
https://developer.android.com/reference/android/graphics/package-summary
2018.9.20
Animator
https://blog.youkuaiyun.com/vanpersie_9987/article/details/51699595
ViewAnimator
https://blog.youkuaiyun.com/zhanhong39/article/details/78956553
https://abhiandroid.com/ui/viewanimator
ViewAnimation
https://blog.youkuaiyun.com/kisso143/article/details/52808272
https://blog.youkuaiyun.com/weixin_35791555/article/details/62883184
http://www.cnblogs.com/yc-755909659/p/4290114.html
https://github.com/daimajia/AndroidViewAnimations
https://github.com/lygttpod/AndroidCustomView
View in Camera
- 坑一
selector使用失败
- 坑二
LayoutParams所有控件都可以使用LinearLayout的这个类吗?
References
Android自定义View三(坐标系与View的绘制流程)
本文详细介绍了在Android中创建自定义视图的方法,包括Canvas与Paint的使用,处理布局事件,以及如何进行基本的绘图。同时,深入探讨了不同分辨率下像素点的影响,pixel与dp的转换,确保应用在各种设备上的一致性表现。此外,还讲解了Animator、ViewAnimator等动画组件的使用技巧,以及解决自定义视图中常见的问题。
772

被折叠的 条评论
为什么被折叠?



