1 欢迎界面的实现
Appstart.xml
<?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"
android:background="@drawable/welcome" >
</LinearLayout>
Appstart.java
package cn.buaa.myweixin;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.WindowManager;
public class Appstart extends Activity{
@Override
public void onCreate(Bundle savedInstanceState){
// TODO Auto-generated methodstub
super.onCreate(savedInstanceState);
setContentView(R.layout.appstart);
new Handler().postDelayed(newRunnable(){
@Override
public void run(){
Intent intent = new Intent(Appstart.this,Welcome.class);
startActivity(intent);
Appstart.this.finish();
}
}, 1000);
}
}
2实现密码登录界面
Login.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#eee"
android:orientation="vertical"
android:gravity="center_horizontal">
<RelativeLayout
android:id