做的一个简易QQ登陆界面,能够将账号及密码保存到手机中,并且再次启动该程序的时候会自动显示上次所保存下的账号及密码。
activityMain.xml :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin