Android 4.0 5.0 6.0特性

本文介绍了 Android 4.0 至 6.0 版本的一些新特性,包括转场动画、Fragment 布局使用、开源项目分类汇总等内容,并详细解释了 TranslateAnimation 的工作原理。

Android 4.0 5.0 6.0特性

转场动画

ActivityOptionsCompat.makeSceneTransitionAnimation

http://www.360doc.com/content/14/1218/18/13532434_433939191.shtml

超级FragmentLayout  android CoordinatorLayout的使用

http://blog.youkuaiyun.com/xyz_lmn/article/details/48055919

Android 开源项目分类汇总

http://blog.youkuaiyun.com/u014252406/article/details/47830837

圆形截图  https://github.com/hpfs0/DragScaleCircleView
原盘控件http://p.codekk.com/detail/Android/siwangqishiq/DiscView
LIstview进入和退出动画http://p.codekk.com/detail/Android/liangpengfei/CoolTodoCard
处理title问题https://github.com/ksoichiro/Android-ObservableScrollView
Android官方培训课程中文版 http://hukai.me/android-training-course-in-chinese/index.html
https://github.com/kesenhoo/android-training-course-in-chinese


colorPrimaryColor Toolbar的颜色
在layout文件中设置background属性
colorPrimaryDark 状态栏背景色
textColorPrimary 标题和更多菜单中文字的颜色
colorAccent 可勾选控件被选择的颜色
colorControlNormal 各控件预设的颜色
windowBackground App的背景色
navigationBarColor 导航栏的背景色(API Level需要大于5.0)




TranslateAnimation(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta)

  这个是我们最常用的一个构造方法,

  float fromXDelta:这个参数表示动画开始的点离当前View X坐标上的差值;

  float toXDelta, 这个参数表示动画结束的点离当前View X坐标上的差值;

  float fromYDelta, 这个参数表示动画开始的点离当前View Y坐标上的差值;

  float toYDelta)这个参数表示动画开始的点离当前View Y坐标上的差值;

  如果view在A(x,y)点 那么动画就是从B点(x+fromXDelta, y+fromYDelta)点移动到C 点(x+toXDelta,y+toYDelta)点.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值