📄 tweenlayoutactivity.java
字号:
package com.androidbook.ShapeShifter;
import android.app.Activity;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.LinearLayout;
public class TweenLayoutActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tweenoflayout);
// We will animate the imageview
LinearLayout layoutToAnimate = (LinearLayout)findViewById(R.id.LayoutRow);
// Load the appropriate animation
Animation an = AnimationUtils.loadAnimation(this, R.anim.snazzyintro);
// Start the animation
layoutToAnimate.startAnimation(an);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -