scalebig.xml:

<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" >    <scale        android:duration="1000"        android:fromXScale="1.0"        android:fromYScale="1.0"        android:pivotX="0"        android:pivotY="50%"        android:toXScale="1.5"        android:toYScale="1.5" >    </scale></set>

scalesmall.xml:

<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" >    <scale        android:duration="1000"        android:fromXScale="1.0"        android:fromYScale="1.0"        android:pivotX="0"        android:pivotY="50%"        android:toXScale="0.7"        android:toYScale="0.7" >    </scale></set>

调用方法:

Animation a = AnimationUtils.loadAnimation(context, R.anim.scalebig);    a.setFillAfter(true);    holder.content.startAnimation(a); 

更多相关文章

  1. android 几种发送短信的方法
  2. SystemUI源码分析
  3. 【Android】一种提高Android应用进程存活率新方法
  4. Android(安卓)P 指纹 Framework
  5. Android基本组件
  6. Android调用本机地图APP
  7. android ios vue 互调
  8. Android(安卓)浏览网页
  9. Android的NDK开发(1)————Android(安卓)JNI简介与调用流程

随机推荐

  1. [android]仿制新浪微博消息页面 图标切换
  2. 基于Android的图像处理演示软件介绍文档
  3. Android 线性布局:LinearLayout
  4. Android 通知(Notification)兼容到Androi
  5. 百度Android定位SDK4.2
  6. android 进程优先级
  7. Android实现获取本机中所有图片
  8. android 多彩文本实现
  9. android的frameworks层键盘事件处理流程
  10. Android自适应不同分辨率或不同屏幕大小