4">54
+
55
+    @Override
56
+    public void onClick(View v) {
57
+        switch (v.getId()){
58
+            case R.id.btn_cancel_delete:
59
+                dismiss();
60
+                break;
61
+            case R.id.btn_exit_session_confirm:
62
+                dismiss();
63
+                if(listener!=null){
64
+                    listener.onClick(v);
65
+                }
66
+                break;
67
+        }
68
+    }
69
+}

二進制
app/src/main/res/drawable-xhdpi/btn_cancel_normal.9.png


二進制
app/src/main/res/drawable-xhdpi/btn_cancel_press.9.png


二進制
app/src/main/res/drawable-xhdpi/pop_btn_ok.9.png


二進制
app/src/main/res/drawable-xhdpi/pop_btn_ok_press.9.png


+ 8 - 0
app/src/main/res/drawable/pop_btn_cancel_selector.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+    <item android:drawable="@drawable/btn_cancel_press" android:state_focused="true"/>
5
+    <item android:drawable="@drawable/btn_cancel_press" android:state_pressed="true"/>
6
+    <item android:drawable="@drawable/btn_cancel_normal"/>
7
+
8
+</selector>

+ 8 - 0
app/src/main/res/drawable/pop_btn_ok_selector.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+    <item android:drawable="@drawable/pop_btn_ok_press" android:state_focused="true"/>
5
+    <item android:drawable="@drawable/pop_btn_ok_press" android:state_pressed="true"/>
6
+    <item android:drawable="@drawable/pop_btn_ok"/>
7
+
8
+</selector>

+ 86 - 0
app/src/main/res/layout/popup_exit_session_confirm.xml

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:layout_width="match_parent"
4
+    android:layout_height="match_parent">
5
+
6
+    <RelativeLayout
7
+        android:id="@+id/click_to_dismiss"
8
+        android:layout_width="match_parent"
9
+        android:layout_height="match_parent"
10
+        android:background="@color/popup_bg"
11
+        android:paddingLeft="25dp"
12
+        android:paddingRight="25dp">
13
+
14
+        <LinearLayout
15
+            android:id="@+id/popup_anima"
16
+            android:layout_width="280dp"
17
+            android:layout_height="148dp"
18
+            android:layout_centerInParent="true"
19
+            android:background="@color/pop_bg_color"
20
+            android:orientation="vertical">
21
+
22
+
23
+            <RelativeLayout
24
+                android:layout_width="match_parent"
25
+                android:layout_height="match_parent">
26
+
27
+                <TextView
28
+                    android:id="@+id/tv_pop_delete_title"
29
+                    android:layout_width="match_parent"
30
+                    android:layout_height="wrap_content"
31
+                    android:layout_marginTop="20dp"
32
+                    android:text="@string/exit_session_confirm"
33
+                    android:textColor="@color/black"
34
+                    android:layout_marginLeft="24dp"
35
+                    android:textSize="18sp" />
36
+
37
+
38
+                <TextView
39
+                    android:id="@+id/tv_pop_delete_hint"
40
+                    android:layout_width="match_parent"
41
+                    android:layout_height="wrap_content"
42
+                    android:layout_marginTop="56dp"
43
+                    android:layout_marginLeft="24dp"
44
+                    android:text="@string/exit_session_hint"
45
+                    android:textColor="@color/grey"
46
+                    android:textSize="16sp" />
47
+
48
+
49
+
50
+                <LinearLayout
51
+                    android:layout_width="match_parent"
52
+                    android:layout_height="wrap_content"
53
+                    android:layout_alignParentBottom="true"
54
+                    android:paddingBottom="14dp"
55
+                    android:gravity="center"
56
+                    android:orientation="horizontal">
57
+
58
+
59
+                    <Button
60
+                        android:id="@+id/btn_cancel_delete"
61
+                        android:layout_width="120dp"
62
+                        android:layout_height="36dp"
63
+                        android:gravity="center"
64
+                        android:textColor="@color/dark_grey"
65
+                        android:background="@drawable/pop_btn_cancel_selector"
66
+                        android:text="@string/cancel"
67
+                        android:textSize="16sp" />
68
+
69
+                    <Button
70
+                        android:id="@+id/btn_exit_session_confirm"
71
+                        android:layout_width="120dp"
72
+                        android:layout_height="36dp"
73
+                        android:gravity="center"
74
+                        android:textColor="@color/white"
75
+                        android:layout_marginLeft="8dp"
76
+                        android:background="@drawable/pop_btn_ok_selector"
77
+                        android:text="@string/ok"
78
+                        android:textSize="16sp" />
79
+
80
+                </LinearLayout>
81
+
82
+            </RelativeLayout>
83
+        </LinearLayout>
84
+    </RelativeLayout>
85
+
86
+</RelativeLayout>

+ 6 - 0
app/src/main/res/values/strings.xml

@@ -197,4 +197,10 @@
197 197
 
198 198
     <string name="back_to_work">返回</string>
199 199
 
200
+    <string name="exit_session_confirm">退出提示</string>
201
+
202
+    <string name="exit_session_hint">确定要退出当前拍摄么</string>
203
+
204
+    <string name="cancel">取消</string>
205
+
200 206
 </resources>

+ 1 - 1
gradle.properties

@@ -16,7 +16,7 @@ org.gradle.parallel=true
16 16
 android.useDeprecatedNdk=true
17 17
 org.gradle.configureondemand=true
18 18
 
19
-COMPILE_SDK_VERSION=24
19
+COMPILE_SDK_VERSION=23
20 20
 BUILD_TOOLS_VERSION=25.0.2
21 21
 MIN_SDK_VERSION=15
22 22
 TARGET_SDK_VERSION=21

Kodo/kodo - Gogs: Go Git Service

62 次代码提交 (fbd31466609ec55af16194a8b1231a7809b50295)

作者 SHA1 备注 提交日期
  FFIB 9ef019cfea 移除拍爱项目相关 5 年之前
  huangqimin001 b6e7d9b08c :bug: Fix Bug: cannot import name ParamStatusCode 5 年之前
  huangqimin a5595665af :art: Format Codes 6 年之前
  FFIB 9ae3ab5c88 add clerk/query/coupon and clerk/writeoff/coupon 6 年之前
  huangqimin 212f24c882 MarketCode 6 年之前
  huangqimin 211ab99a32 :art: member/user/coupon/detail & member/user/coupon/use 6 年之前
  FFIB 609955cf1c 会员商品不足 6 年之前
  huangqimin 4ce7f5c87b :art: Member Relative APIs 6 年之前
  Brightcells f6e726578d :art: Opt 6 年之前
  FFIB 3c94a5c976 clerk/sale/submit 判断序列号是否重复 6 年之前
  FFIB e634358bf0 增添/clerk/checkout/serialNo 校验序列号 6 年之前
  Kimi.Huang b9200f9ed2 Sales 6 年之前
  Kimi.Huang 40e2a6b882 COUPON_HAS_EXPIRED 7 年之前
  Kimi.Huang 77c612316a queryusedsn 7 年之前
  Kimi.Huang 219acdedb1 Add field has_used 7 年之前
  Brightcells bf80400a5b CLERK_NOT_AUTH 7 年之前
  Brightcells a1d1421493 ScreenStatusCode.QRCODE_NOT_SCAN 7 年之前
  Brightcells 88c914df41 Guideline Login Error 7 年之前
  Brightcells 5fdb5b42fd Logfile Upload 8 年之前
  Brightcells e7dcf47e22 SaleclerkInfo 8 年之前
  Brightcells 62948fb5c3 Operator add/delete/update/list 8 年之前
  Brightcells 537c495621 Statistic 8 年之前
  Brightcells 44a6cdf337 Statistic 8 年之前
  Brightcells 2bac598d19 Clerk Sale Submit 8 年之前
  Brightcells 627187a7d7 Update Kodo 8 年之前
  Brightcells 49634dc097 Add api operator login 8 年之前
  Brightcells a6195fa70d Add outtake lensman 8 年之前
  Brightcells bb58496f42 Add StatusCode TOKEN_HAS_EXPIRED 8 年之前
  Brightcells 1fa63925f2 Separate comment_list_api from comment_submit_api 9 年之前
  Brightcells 1ecd4f276f Remove status code NO_XX_PERMISSION 9 年之前
  Brightcells fd73524af1 Add api group_delete_api 9 年之前
  Brightcells 7bcf74b5da ACTIVE_GROUP_NOT_FOUND 9 年之前
  Brightcells b27a2f135c Fix Bug: check whether have tour goup or not error 9 年之前
  Brightcells e7f3abdf56 Add admin relative api 9 年之前
  Brightcells d19a7d5efb Check tour guide group whether ended 9 年之前
  Brightcells 59def8d479 Add forbidden duplicate upload photo 9 年之前
  Brightcells b065bf7b3a Remove unnecessary u 9 年之前
  Brightcells 70f5faad11 Add tg_group_token_api/tg_group_transfer_api 9 年之前
  Brightcells ad69866b26 Add tour guide's name and phone in GroupInfo 9 年之前
  Brightcells f724e0f9c0 Add tour guide apis 9 年之前
  Brightcells 8a213207ea Add tour guide oauth 9 年之前
  Brightcells aac3532bd8 kkconst => StatusCode 9 年之前
  Brightcells c329660c26 Fix: const variable require all letters capital 9 年之前
  Brightcells 36e351b13d Update errno 9 年之前
  Brightcells 4ff159f583 update error code 9 年之前
  Brightcells 07da1c3383 add order_id for lensman_origin_photo_upload_api & check multi paid 9 年之前
  Brightcells 6626af8a8d add api lensman_wx_authorize_api 10 年之前
  Brightcells 6fb6025912 hideOptionMenu in wx & display status & forbidden modify after Actived 10 年之前
  Brightcells d0affd4b01 add lensman_oauth page 10 年之前
  Brightcells 92da943e9e check wx_uid for api wx_balance_withdraw_api 10 年之前