animation
protected void onCreate(Bundle savedInstanceState) {
// TODO 自动生成的方法存根
super.onCreate(savedInstanceState);
setContentView(R.layout.layout);
img=(ImageView)findViewById(R.id.img);
Animation anim=AnimationUtils.loadAnimation(this, R.anim.scale);
anim.setFillAfter(true);
img.setAnimation(anim);
}