- 博客(5)
- 收藏
- 关注
原创 android屏幕适配
使用wrap_content和match_parent应该在布局中使用wrap_content和match_content来确定它的宽与高。 如果使用了wrap_content,相应视图的宽和高就会被设定成刚好能够包含视图中的内容的最小值。如果使用了match_content则会充满整个布局使用RelativeLayout通过多层嵌套Linearlayout和组合使用wrap_content和ma
2017-02-08 16:13:02
426
原创 android 属性动画
ValueAnimator valueAnimator是整个属性动画机制当中最核心的一个类。 简单使用 ValueAnimator anim = ValueAnimator.ofFloat(0f,1f); anim.setDuration(1000); anim.addUpdateListener(new ValueAnimator.AnimatorUpd
2017-02-07 15:28:24
269
原创 android动画
AnimationsAnimations介绍 一.android是实现android UI界面动画效果的API,animations提供了很多动画效果,例如旋转、平移、缩放、渐入渐出等。这些效果可以运用在绝大多数控件中。 二.animations分类 animation从总体上大概可以分为两类 1.补间动画 该类提供了旋转(rotate)、平移(transl
2017-02-07 09:29:30
1970
原创 Android Intent传递数据
Intent intent = new Intent(First.this,Second.class); startActivity(intent); //使用intent,实现activity之间的跳转 使用Bundle在Activity之间交换数据 Bundle data = new Bundler(); data.putExtra(String name,Xxx value);//向
2016-01-06 17:05:22
313
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人