下你所需,载你所想!
汇集开发技术源码资料

android animation实例

:51.235KB :1 :2021-11-30 15:45:18

部分简介

android animation实例如果对于本实例文件有需要的可以参考。
package com.test;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
android.widget.TextView text = (android.widget.TextView) this
.findViewById(R.id.text1);
android.view.animation.Animation ani = android.view.animation.AnimationUtils
.loadAnimation(this, R.anim.test);
text.setAnimation(ani);
ani.start();
}
}

android animation实例

热门推荐

相关文章