廢話很少說,直接上圖,android手機防盜時序圖:
android
- <!--Main.xml-->
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context=".MainActivity" >
- <EditText
- android:id="@+id/safeNumber"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/safe_phone"
- />
- <Button
- android:id="@+id/btn_startSafe"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/safeNumber"
- android:layout_alignParentLeft="true"
- android:text="@string/start_safe"
- />
- <Button
- android:id="@+id/btn_modify"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/safeNumber"
- android:layout_alignParentRight="true"
- android:text="@string/modify"
- />
- </RelativeLayout>
- <!--Dialog.xml-->
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <EditText
- android:id="@+id/et_UserName"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/user_text"
- />
- <EditText
- android:id="@+id/et_Password"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:password="true"
- android:hint="@string/password_text"
- />
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- >
- <Button
- android:id="@+id/btn_Ok"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
- <Button
- android:id="@+id/btn_cancle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
- </LinearLayout>
- </LinearLayout>