Android--制作开场动画/MediaPlayer OnCompletionListener
我们在玩游戏的时候常常会现有一个开场动画,要实现这个并不难,下面将给出一个实例实现开场动画。 这个实例需要两个Activity,一个作为开场动画,一个是主程序界面,由于并不需要演示其他的东西,所以在第二个Activity里只是一个简单的TextView。 下面给出这个程序的实现截图: 下面给出实现这个程序的代码: 1.两个布局文件 <? xml version = "1.0" encoding = "utf-8" ?> < LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:layout_width = "fill_parent" android:layout_height = "fill_parent" > < TextView android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:text = "@string/hello" /> </ LinearLayout > <? xml version = "1.0" encoding = "utf-8" ?> < LinearLayout xmlns:android = "http://schemas