Tween 静态动态加载
来源:互联网 发布:gps nema数据 编辑:程序博客网 时间:2024/06/14 12:32
Android Tween 动态加载 /静态加载 demo
静态加载
anim.xml
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"><scale android:duration="5000" android:repeatCount="-1" android:fromXScale="0.1" android:fromYScale="0.1" android:pivotX="50%" android:pivotY="50%" android:toXScale="3.0" android:toYScale="3.0" /></set>---
activity
public class TweenActivityB extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tween_st); Animation animation = AnimationUtils.loadAnimation(this,R.anim.tween_st); ImageView imageView = (ImageView) findViewById(R.id.image); imageView.startAnimation(animation); }}
动态加载
xml
public class TweenActivityA extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tween_st); Animation animation = new ScaleAnimation(0.1f,2.0f,0.1f,2.0f,Animation.RELATIVE_TO_PARENT,0.5f,Animation.RELATIVE_TO_SELF,0.5f); animation.setRepeatCount(-1); animation.setDuration(2000); ImageView imageView = (ImageView)findViewById(R.id.image); imageView.startAnimation(animation); }}
0 0
- Tween 静态动态加载
- 动态加载vs静态加载
- 动态加载和静态加载
- 静态加载与动态加载
- Fragment 动态加载 / 静态加载
- 动态加载vs静态加载
- 动态加载vs静态加载
- lib加载 动态和静态
- 动态(静态)加载DLL注意
- Apache模块动态加载和静态加载
- Apache模块动态加载和静态加载
- 静态加载dll和动态加载dll
- Apache模块动态加载和静态加载
- Apache模块动态加载和静态加载
- 静态加载dll和动态加载dll
- 静态加载dll和动态加载dll
- DLL的静态加载和动态加载
- 驱动的动态加载与静态加载
- MFC学习笔记之-对话框
- LIGHTOJ 1045 - Digits of Factorial 【阶乘取对数】
- php curl_init函数用法
- OC中的self、super理解
- LightOJ 1043 Triangle Partitioning
- Tween 静态动态加载
- 数据完整性约束
- zabbix配置问题
- 顺序表应用2:多余元素删除之建表算法
- hdu5787 数位dp
- struts学习遇到问题之一 action
- Codeforces Round #368 (Div. 2) A Brain's Photos(水)
- scrollview 包裹ListView recyclerview 为什么会不显示
- STL算法之移除性算法