android
文章平均质量分 78
objs
记录、分享。
展开
-
android 自转动画
1.项目上一个简单需求,一个自旋转的imageview。 动画效果的代码:Animation animation = AnimationUtils.loadAnimation(mContext, R.anim.img_animation);LinearInterpolator interPolator = new LinearInterpolator();// 设置动画匀速运动animatio...原创 2018-04-23 18:51:51 · 842 阅读 · 0 评论 -
android点击效果selector
要做一个类似这样的组合按钮。点击的时候 改变背景颜色,改变图标颜色,改变字体颜色。看起来很容易嘛。一个垂直的LinearLayout + Imageview + Textview+几个点击的selector就搞定了。xml代码:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"原创 2018-05-08 17:52:17 · 2725 阅读 · 0 评论