自定义View和Animator

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.csdn.net/vanpersie_9987/article/details/51699595

ViewAnimator

https://blog.csdn.net/zhanhong39/article/details/78956553

https://abhiandroid.com/ui/viewanimator

 

ViewAnimation

https://blog.csdn.net/kisso143/article/details/52808272

https://blog.csdn.net/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的绘制流程)

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值