窗口的动画效果,淡入淡出什么的,有些游戏的欢迎动画,logo的淡入淡出效果就使用AlphaAnimation.AlphaAnimation(0.01f, 1.0f); 从0.01f到1.0f渐变.学过flash的,应该对alpha值很了解,0.0是完全透明,1.0完全不透明. public class MainActivity extends Activity { ImageView image; Button start; Button cancel; @Override public voi
1, you need to add this kind of code to the constructors of your custom view which must extend ViewGroup, and the parameter attachToRoot must be true. LayoutInflater.from(context).inflate(R.layout.yourLayout, this, true); 2,If you want to add your cu