|
|
@@ -4,153 +4,384 @@
|
|
|
android:id="@+id/main"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:padding="20dp"
|
|
|
+ android:background="@color/white"
|
|
|
tools:context=".presentation.simple.SimpleProcessActivity">
|
|
|
|
|
|
<!-- 步骤0:开始执行按钮 -->
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_container_0"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_0"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
android:visibility="gone">
|
|
|
+
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_start"
|
|
|
- style="@style/SimpleButton"
|
|
|
- android:text="@string/simple_start_ticket"/>
|
|
|
- </RelativeLayout>
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_start_ticket"
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simpe_tip_execute"
|
|
|
+ android:padding="20dp"
|
|
|
+ android:layout_marginVertical="20dp"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_execute"
|
|
|
+ style="@style/SimpleBtnContainer">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_execute"
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_execute"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<!-- 步骤1 -->
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_container_1"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_1"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="@dimen/simple_container_padding"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
android:text="@string/simple_ticket_content"
|
|
|
- android:layout_centerHorizontal="true"/>
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
|
|
- <TextView
|
|
|
- style="@style/SimpleTextView"
|
|
|
- android:layout_width="@dimen/simple_ticket_tip_width"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:gravity="left"
|
|
|
- android:text="@string/simple_ticket_tip"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:background="@color/simple_tip_bg"
|
|
|
- android:padding="10dp"/>
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_tip_content"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_confirm"
|
|
|
- style="@style/SimpleButton"
|
|
|
- android:text="@string/simple_confirm"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_margin="50dp"/>
|
|
|
- </RelativeLayout>
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:textSize="@dimen/simple_small_text"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_confirm"
|
|
|
+ style="@style/SimpleBtnContainer">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_confirm"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<!-- 步骤2 -->
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_container_2"
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_2"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="@dimen/simple_container_padding"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
android:visibility="gone">
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
android:text="@string/simple_locking"
|
|
|
- android:layout_centerHorizontal="true"/>
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_wait_for_key_return"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process2"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_waiting"
|
|
|
+ style="@style/SimpleBtnContainer">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_waiting"/>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 步骤3 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:visibility="gone">
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_wait_for_key_return"
|
|
|
+ android:text="@string/simple_wait_for_colockers_confirm"
|
|
|
android:textSize="@dimen/simple_large_text"
|
|
|
- android:layout_centerInParent="true"/>
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_wati_for_lock_share"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process2"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:layout_width="@dimen/simple_ticket_tip_width"
|
|
|
- android:gravity="left"
|
|
|
- android:text="@string/simple_ticket_tip"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:background="@color/simple_tip_bg"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_shared"
|
|
|
android:padding="10dp"/>
|
|
|
- </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <!-- 步骤3 -->
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_container_3"
|
|
|
+ <!-- 步骤4 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_4"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="@dimen/simple_container_padding"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
android:visibility="gone">
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_wait_for_colockers_confirm"
|
|
|
- android:layout_centerHorizontal="true"/>
|
|
|
+ android:text="@string/simple_in_maintenance"
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_maintenance_workers"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process4"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:layout_width="150dp"
|
|
|
- android:text="@string/simple_colocker_tip"
|
|
|
- android:gravity="left"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:layout_marginTop="50dp"/>
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_shared"
|
|
|
+ android:padding="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
+ <!-- 步骤5 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_5"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:visibility="gone">
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_wait_for_colockers_action"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_marginBottom="50dp"/>
|
|
|
- </RelativeLayout>
|
|
|
+ android:text="@string/simple_maintenance_finished"
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
|
|
- <!-- 步骤4 -->
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/rl_container_4"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_locker_get_key"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process5"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_confirm_complete"
|
|
|
+ style="@style/SimpleBtnContainer">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_confirm"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 步骤6 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_6"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="@dimen/simple_container_padding"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
android:visibility="gone">
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_in_maintenance"
|
|
|
- android:layout_centerHorizontal="true"/>
|
|
|
+ android:text="@string/simple_unlock_in_progress"
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_wait_for_device_return"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:background="@drawable/tip_bg_yellow"
|
|
|
+ android:text="@string/simple_tip_process6"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ style="@style/SimpleBtnContainer">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_waiting"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 步骤7 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_container_7"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:layout_width="@dimen/simple_ticket_tip_width"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:gravity="left"
|
|
|
- android:text="@string/simple_maintenance_tip"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:background="@color/simple_tip_bg"
|
|
|
- android:padding="10dp"/>
|
|
|
+ android:text="@string/simple_ticket_is_done"
|
|
|
+ android:textSize="@dimen/simple_large_text"
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_wait_for_colockers_action"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_marginBottom="50dp"/>
|
|
|
- </RelativeLayout>
|
|
|
+ android:background="@drawable/tip_bg_white"
|
|
|
+ android:text="@string/simple_tip_complete"
|
|
|
+ android:padding="50dp"
|
|
|
+ android:layout_margin="10dp"/>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <!-- 步骤5 -->
|
|
|
+
|
|
|
+ <!-- 通用 -->
|
|
|
<RelativeLayout
|
|
|
- android:id="@+id/rl_container_5"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:padding="@dimen/simple_container_padding"
|
|
|
- android:visibility="gone">
|
|
|
+ android:id="@+id/rl_home"
|
|
|
+ style="@style/SimpleBtnContainer"
|
|
|
+ android:layout_alignParentBottom="true">
|
|
|
<TextView
|
|
|
style="@style/SimpleTextView"
|
|
|
- android:text="@string/simple_maintenance_finished"
|
|
|
- android:layout_centerHorizontal="true"/>
|
|
|
+ android:text="@string/simple_return_home"/>
|
|
|
</RelativeLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_return_home"
|
|
|
- style="@style/SimpleButton"
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_setting"
|
|
|
+ style="@style/SimpleBtnContainer"
|
|
|
android:layout_alignParentBottom="true"
|
|
|
- android:text="@string/simple_return_home"/>
|
|
|
+ android:layout_alignParentRight="true">
|
|
|
+ <TextView
|
|
|
+ style="@style/SimpleTextView"
|
|
|
+ android:text="@string/simple_setting"/>
|
|
|
+ </RelativeLayout>
|
|
|
</RelativeLayout>
|