Commit 7a00ee2787bf70285270cc5794bc2f75213a1d90
1 parent
f633382ee8
Exists in
master
version3.3.8
更新bluePay支付,增加linepay 增加修改密码和重置密码功能
Showing 14 changed files with 214 additions and 73 deletions Inline Diff
- android/GameSDKRelease/libs/GameSDK_v3.3.7_proguard.jar
- android/GameSDKRelease/libs/GameSDK_v3.3.8_proguard.jar
- android/GameSDKRelease/res/layout/fragment_loging.xml
- android/GameSDKRelease/res/layout/fragment_mod_password.xml
- android/GameSDKRelease/res/layout/fragment_sign_choice.xml
- android/GameSDKRelease/res/layout/title.xml
- android/GameSDKRelease/res/values-pt/strings.xml
- android/GameSDKRelease/res/values-th/strings.xml
- android/GameSDKRelease/res/values-zh-rTW/strings.xml
- android/GameSDKRelease/res/values-zh/strings.xml
- android/GameSDKRelease/res/values/colors.xml
- android/GameSDKRelease/res/values/strings.xml
- android/GameSDKSample/AndroidManifest.xml
- android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
android/GameSDKRelease/libs/GameSDK_v3.3.7_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.3.8_proguard.jar
No preview for this file type
android/GameSDKRelease/res/layout/fragment_loging.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="wrap_content" | 3 | android:layout_width="wrap_content" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:background="@color/white_translucent" | 5 | android:background="@color/white_translucent" |
6 | android:minWidth="293dp" | 6 | android:minWidth="293dp" |
7 | android:orientation="vertical" > | 7 | android:orientation="vertical" > |
8 | 8 | ||
9 | <RelativeLayout | 9 | <RelativeLayout |
10 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
11 | android:layout_height="36dp" > | 11 | android:layout_height="36dp" > |
12 | 12 | ||
13 | <TextView | 13 | <TextView |
14 | android:id="@+id/switch_user" | 14 | android:id="@+id/switch_user" |
15 | android:layout_width="wrap_content" | 15 | android:layout_width="wrap_content" |
16 | android:layout_height="wrap_content" | 16 | android:layout_height="wrap_content" |
17 | android:layout_alignParentRight="true" | 17 | android:layout_alignParentRight="true" |
18 | android:layout_centerVertical="true" | 18 | android:layout_centerVertical="true" |
19 | android:layout_marginRight="17dp" | 19 | android:layout_marginRight="17dp" |
20 | android:text="@string/switch_user" | 20 | android:text="@string/switch_user" |
21 | android:textColor="@color/black_text" /> | 21 | android:textColor="@color/black_text" /> |
22 | 22 | ||
23 | <TextView | ||
24 | android:id="@+id/change_pwd" | ||
25 | android:layout_width="wrap_content" | ||
26 | android:layout_height="wrap_content" | ||
27 | android:layout_alignParentLeft="true" | ||
28 | android:layout_centerVertical="true" | ||
29 | android:layout_marginLeft="17dp" | ||
30 | android:text="@string/mod_pwd" | ||
31 | android:visibility="gone" | ||
32 | android:textColor="@color/black_text" /> | ||
33 | |||
23 | <View | 34 | <View |
24 | android:layout_width="fill_parent" | 35 | android:layout_width="fill_parent" |
25 | android:layout_height="1dp" | 36 | android:layout_height="1dp" |
26 | android:layout_alignParentBottom="true" | 37 | android:layout_alignParentBottom="true" |
27 | android:background="@color/light_gray" /> | 38 | android:background="@color/light_gray" /> |
28 | </RelativeLayout> | 39 | </RelativeLayout> |
29 | 40 | ||
30 | <ProgressBar | 41 | <ProgressBar |
31 | android:layout_width="wrap_content" | 42 | android:layout_width="wrap_content" |
32 | android:layout_height="wrap_content" | 43 | android:layout_height="wrap_content" |
33 | android:layout_gravity="center" | 44 | android:layout_gravity="center" |
34 | android:layout_marginBottom="17dp" | 45 | android:layout_marginBottom="17dp" |
35 | android:layout_marginTop="23dp" | 46 | android:layout_marginTop="23dp" |
36 | android:indeterminateBehavior="repeat" | 47 | android:indeterminateBehavior="repeat" |
37 | android:indeterminateDrawable="@drawable/loading_progress" | 48 | android:indeterminateDrawable="@drawable/loading_progress" |
38 | android:indeterminateDuration="800" | 49 | android:indeterminateDuration="800" |
39 | android:indeterminateOnly="true" /> | 50 | android:indeterminateOnly="true" /> |
40 | 51 | ||
41 | <TextView | 52 | <TextView |
42 | android:layout_width="wrap_content" | 53 | android:layout_width="wrap_content" |
43 | android:layout_height="wrap_content" | 54 | android:layout_height="wrap_content" |
44 | android:layout_gravity="center_horizontal" | 55 | android:layout_gravity="center_horizontal" |
45 | android:layout_marginBottom="17dp" | 56 | android:layout_marginBottom="17dp" |
46 | android:text="@string/loging" | 57 | android:text="@string/loging" |
47 | android:textColor="@color/black_text" /> | 58 | android:textColor="@color/black_text" /> |
48 | 59 | ||
49 | </LinearLayout> | 60 | </LinearLayout> |
android/GameSDKRelease/res/layout/fragment_mod_password.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="wrap_content" | 3 | android:layout_width="wrap_content" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:scrollbars="none" > | 5 | android:scrollbars="none" > |
6 | 6 | ||
7 | <LinearLayout | 7 | <LinearLayout |
8 | android:layout_width="wrap_content" | 8 | android:layout_width="wrap_content" |
9 | android:layout_height="wrap_content" | 9 | android:layout_height="wrap_content" |
10 | android:minWidth="292dp" | 10 | android:minWidth="292dp" |
11 | android:orientation="vertical" > | 11 | android:orientation="vertical" > |
12 | 12 | ||
13 | <include layout="@layout/title" /> | ||
14 | |||
13 | <LinearLayout | 15 | <LinearLayout |
14 | android:layout_width="match_parent" | 16 | android:layout_width="match_parent" |
15 | android:layout_height="wrap_content" | 17 | android:layout_height="wrap_content" |
16 | android:background="@color/white_translucent" | 18 | android:background="@color/white_translucent" |
17 | android:orientation="vertical" > | 19 | android:orientation="vertical" > |
18 | 20 | ||
19 | <View | 21 | <View |
20 | android:layout_width="match_parent" | 22 | android:layout_width="match_parent" |
21 | android:layout_height="1dp" | 23 | android:layout_height="1dp" |
22 | android:background="@color/light_gray" /> | 24 | android:background="@color/light_gray" /> |
23 | 25 | ||
24 | <EditText | 26 | <LinearLayout |
25 | android:id="@+id/username" | ||
26 | android:layout_width="match_parent" | 27 | android:layout_width="match_parent" |
27 | android:layout_height="31dp" | 28 | android:layout_height="31dp" |
28 | android:layout_marginBottom="10dp" | ||
29 | android:layout_marginLeft="35dp" | 29 | android:layout_marginLeft="35dp" |
30 | android:layout_marginRight="35dp" | 30 | android:layout_marginRight="35dp" |
31 | android:layout_marginTop="15dp" | 31 | android:layout_marginTop="13dp" |
32 | android:paddingLeft="8dp" | 32 | android:background="@color/white" > |
33 | android:background="@color/white" | 33 | |
34 | android:hint="@string/user_name_hint" | 34 | <ImageView |
35 | android:imeOptions="flagNoExtractUi" | 35 | android:layout_width="wrap_content" |
36 | android:textColor="@color/black_text" /> | 36 | android:layout_height="wrap_content" |
37 | android:layout_gravity="center_vertical" | ||
38 | android:layout_marginLeft="9.5dp" | ||
39 | android:layout_marginRight="9.5dp" | ||
40 | android:src="@drawable/ic_user" /> | ||
41 | |||
42 | <View | ||
43 | android:layout_width="1dp" | ||
44 | android:layout_height="20dp" | ||
45 | android:layout_gravity="center_vertical" | ||
46 | android:background="@color/light_gray" /> | ||
47 | |||
48 | <EditText | ||
49 | android:id="@+id/username" | ||
50 | android:layout_width="match_parent" | ||
51 | android:layout_height="match_parent" | ||
52 | android:background="@color/transparent" | ||
53 | android:hint="@string/user_name_hint" | ||
54 | android:paddingLeft="6dp" /> | ||
55 | </LinearLayout> | ||
37 | 56 | ||
38 | <EditText | 57 | <LinearLayout |
39 | android:id="@+id/old_pwd" | ||
40 | android:layout_width="match_parent" | 58 | android:layout_width="match_parent" |
41 | android:layout_height="31dp" | 59 | android:layout_height="31dp" |
42 | android:layout_marginBottom="10dp" | ||
43 | android:layout_marginLeft="35dp" | 60 | android:layout_marginLeft="35dp" |
44 | android:layout_marginRight="35dp" | 61 | android:layout_marginRight="35dp" |
45 | android:layout_marginTop="10dp" | 62 | android:layout_marginTop="16dp" |
46 | android:paddingLeft="8dp" | ||
47 | android:background="@color/white" | 63 | android:background="@color/white" |
48 | android:hint="@string/password_hint" | 64 | android:orientation="horizontal" > |
49 | android:imeOptions="flagNoExtractUi" | 65 | |
50 | android:inputType="textPassword" | 66 | <ImageView |
51 | android:textColor="@color/black_text" /> | 67 | android:layout_width="wrap_content" |
52 | <EditText | 68 | android:layout_height="wrap_content" |
53 | android:id="@+id/new_pwd" | 69 | android:layout_gravity="center_vertical" |
54 | android:layout_width="match_parent" | 70 | android:layout_marginLeft="12.5dp" |
55 | android:layout_height="31dp" | 71 | android:layout_marginRight="12.5dp" |
56 | android:layout_marginBottom="10dp" | 72 | android:src="@drawable/ic_pwd" /> |
57 | android:layout_marginLeft="35dp" | 73 | |
74 | <View | ||
75 | android:layout_width="1dp" | ||
76 | android:layout_height="20dp" | ||
77 | android:layout_gravity="center_vertical" | ||
78 | android:background="@color/light_gray" /> | ||
79 | |||
80 | <EditText | ||
81 | android:id="@+id/old_pwd" | ||
82 | android:layout_width="match_parent" | ||
83 | android:layout_height="match_parent" | ||
84 | android:background="@color/white" | ||
85 | android:hint="@string/old_pwd" | ||
86 | android:inputType="textPassword" | ||
87 | android:paddingLeft="6dp" /> | ||
88 | </LinearLayout> | ||
89 | |||
90 | <TextView | ||
91 | android:layout_width="wrap_content" | ||
92 | android:layout_height="wrap_content" | ||
93 | android:maxWidth="200dp" | ||
94 | android:textColor="@color/black_text" | ||
95 | android:layout_gravity="right" | ||
96 | android:layout_marginTop="8dp" | ||
58 | android:layout_marginRight="35dp" | 97 | android:layout_marginRight="35dp" |
59 | android:layout_marginTop="10dp" | 98 | android:textSize="10sp" |
60 | android:paddingLeft="8dp" | 99 | android:text="@string/reset_intro" /> |
61 | android:background="@color/white" | 100 | |
62 | android:hint="@string/password_hint" | 101 | <LinearLayout |
63 | android:imeOptions="flagNoExtractUi" | ||
64 | android:inputType="textPassword" | ||
65 | android:textColor="@color/black_text" /> | ||
66 | <EditText | ||
67 | android:id="@+id/confirm_pwd" | ||
68 | android:layout_width="match_parent" | 102 | android:layout_width="match_parent" |
69 | android:layout_height="31dp" | 103 | android:layout_height="31dp" |
70 | android:layout_marginBottom="10dp" | ||
71 | android:layout_marginLeft="35dp" | 104 | android:layout_marginLeft="35dp" |
72 | android:layout_marginRight="35dp" | 105 | android:layout_marginRight="35dp" |
73 | android:layout_marginTop="10dp" | 106 | android:layout_marginTop="12dp" |
74 | android:paddingLeft="8dp" | ||
75 | android:background="@color/white" | 107 | android:background="@color/white" |
76 | android:hint="@string/password_hint" | 108 | android:orientation="horizontal" > |
77 | android:imeOptions="flagNoExtractUi" | 109 | |
78 | android:inputType="textPassword" | 110 | <ImageView |
79 | android:textColor="@color/black_text" /> | 111 | android:layout_width="wrap_content" |
112 | android:layout_height="wrap_content" | ||
113 | android:layout_gravity="center_vertical" | ||
114 | android:layout_marginLeft="12.5dp" | ||
115 | android:layout_marginRight="12.5dp" | ||
116 | android:src="@drawable/ic_pwd" /> | ||
117 | |||
118 | <View | ||
119 | android:layout_width="1dp" | ||
120 | android:layout_height="20dp" | ||
121 | android:layout_gravity="center_vertical" | ||
122 | android:background="@color/light_gray" /> | ||
123 | |||
124 | <EditText | ||
125 | android:id="@+id/new_pwd" | ||
126 | android:layout_width="match_parent" | ||
127 | android:layout_height="match_parent" | ||
128 | android:background="@color/white" | ||
129 | android:hint="@string/new_pwd" | ||
130 | android:inputType="textPassword" | ||
131 | android:paddingLeft="6dp" /> | ||
132 | </LinearLayout> | ||
80 | </LinearLayout> | 133 | </LinearLayout> |
81 | 134 | ||
82 | <LinearLayout | 135 | <LinearLayout |
83 | android:layout_width="match_parent" | 136 | android:layout_width="match_parent" |
84 | android:layout_height="wrap_content" | 137 | android:layout_height="wrap_content" |
85 | android:background="@drawable/bottom_light_bg" > | 138 | android:background="@drawable/bottom_light_bg" |
139 | android:orientation="horizontal" > | ||
86 | 140 | ||
87 | <Button | 141 | <Button |
88 | android:id="@+id/submit" | 142 | android:id="@+id/reset" |
89 | android:layout_width="match_parent" | 143 | android:layout_width="match_parent" |
90 | android:layout_height="wrap_content" | 144 | android:layout_height="wrap_content" |
91 | android:layout_marginLeft="35dp" | 145 | android:layout_marginLeft="35dp" |
92 | android:layout_marginRight="35dp" | 146 | android:layout_marginRight="12dp" |
93 | android:layout_marginTop="8dp" | 147 | android:layout_marginTop="10dp" |
148 | android:layout_weight="1" | ||
94 | android:background="@drawable/btn_orange_bg" | 149 | android:background="@drawable/btn_orange_bg" |
95 | android:padding="5dp" | 150 | android:padding="5dp" |
96 | android:text="@string/signup" | 151 | android:text="@string/reset" |
152 | android:textColor="@android:color/white" | ||
153 | android:textSize="16sp" /> | ||
154 | |||
155 | <Button | ||
156 | android:id="@+id/submit" | ||
157 | android:layout_width="match_parent" | ||
158 | android:layout_height="wrap_content" | ||
159 | android:layout_marginLeft="12dp" | ||
160 | android:layout_marginRight="35dp" |
android/GameSDKRelease/res/layout/fragment_sign_choice.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:gravity="center" | 5 | android:gravity="center" |
6 | android:orientation="vertical" > | 6 | android:orientation="vertical" > |
7 | 7 | ||
8 | <LinearLayout | 8 | <LinearLayout |
9 | android:layout_width="match_parent" | 9 | android:layout_width="match_parent" |
10 | android:layout_height="wrap_content" | 10 | android:layout_height="wrap_content" |
11 | android:background="@color/white_translucent" | 11 | android:background="@color/white_translucent" |
12 | android:orientation="vertical" > | 12 | android:orientation="vertical" > |
13 | 13 | ||
14 | <LinearLayout | 14 | <LinearLayout |
15 | android:layout_width="match_parent" | 15 | android:layout_width="match_parent" |
16 | android:layout_height="31dp" | 16 | android:layout_height="31dp" |
17 | android:layout_marginLeft="35dp" | 17 | android:layout_marginLeft="35dp" |
18 | android:layout_marginRight="35dp" | 18 | android:layout_marginRight="35dp" |
19 | android:layout_marginTop="13dp" | 19 | android:layout_marginTop="13dp" |
20 | android:background="@color/white" > | 20 | android:background="@color/white" > |
21 | 21 | ||
22 | <ImageView | 22 | <ImageView |
23 | android:layout_width="wrap_content" | 23 | android:layout_width="wrap_content" |
24 | android:layout_height="wrap_content" | 24 | android:layout_height="wrap_content" |
25 | android:layout_gravity="center_vertical" | 25 | android:layout_gravity="center_vertical" |
26 | android:layout_marginLeft="9.5dp" | 26 | android:layout_marginLeft="9.5dp" |
27 | android:layout_marginRight="9.5dp" | 27 | android:layout_marginRight="9.5dp" |
28 | android:src="@drawable/ic_user" /> | 28 | android:src="@drawable/ic_user" /> |
29 | 29 | ||
30 | <View | 30 | <View |
31 | android:layout_width="1dp" | 31 | android:layout_width="1dp" |
32 | android:layout_height="20dp" | 32 | android:layout_height="20dp" |
33 | android:layout_gravity="center_vertical" | 33 | android:layout_gravity="center_vertical" |
34 | android:background="@color/light_gray" /> | 34 | android:background="@color/light_gray" /> |
35 | 35 | ||
36 | <EditText | 36 | <EditText |
37 | android:id="@+id/username" | 37 | android:id="@+id/username" |
38 | android:layout_width="match_parent" | 38 | android:layout_width="match_parent" |
39 | android:layout_height="match_parent" | 39 | android:layout_height="match_parent" |
40 | android:background="@color/transparent" | 40 | android:background="@color/transparent" |
41 | android:hint="@string/user_name_hint" | 41 | android:hint="@string/user_name_hint" |
42 | android:paddingLeft="6dp" /> | 42 | android:paddingLeft="6dp" /> |
43 | </LinearLayout> | 43 | </LinearLayout> |
44 | 44 | ||
45 | <LinearLayout | 45 | <LinearLayout |
46 | android:layout_width="match_parent" | 46 | android:layout_width="match_parent" |
47 | android:layout_height="31dp" | 47 | android:layout_height="31dp" |
48 | android:layout_marginLeft="35dp" | 48 | android:layout_marginLeft="35dp" |
49 | android:layout_marginRight="35dp" | 49 | android:layout_marginRight="35dp" |
50 | android:layout_marginTop="16dp" | 50 | android:layout_marginTop="16dp" |
51 | android:background="@color/white" | 51 | android:background="@color/white" |
52 | android:orientation="horizontal" > | 52 | android:orientation="horizontal" > |
53 | 53 | ||
54 | <ImageView | 54 | <ImageView |
55 | android:layout_width="wrap_content" | 55 | android:layout_width="wrap_content" |
56 | android:layout_height="wrap_content" | 56 | android:layout_height="wrap_content" |
57 | android:layout_gravity="center_vertical" | 57 | android:layout_gravity="center_vertical" |
58 | android:layout_marginLeft="12.5dp" | 58 | android:layout_marginLeft="12.5dp" |
59 | android:layout_marginRight="12.5dp" | 59 | android:layout_marginRight="12.5dp" |
60 | android:src="@drawable/ic_pwd" /> | 60 | android:src="@drawable/ic_pwd" /> |
61 | 61 | ||
62 | <View | 62 | <View |
63 | android:layout_width="1dp" | 63 | android:layout_width="1dp" |
64 | android:layout_height="20dp" | 64 | android:layout_height="20dp" |
65 | android:layout_gravity="center_vertical" | 65 | android:layout_gravity="center_vertical" |
66 | android:background="@color/light_gray" /> | 66 | android:background="@color/light_gray" /> |
67 | 67 | ||
68 | <EditText | 68 | <EditText |
69 | android:id="@+id/pwd" | 69 | android:id="@+id/pwd" |
70 | android:layout_width="match_parent" | 70 | android:layout_width="match_parent" |
71 | android:layout_height="match_parent" | 71 | android:layout_height="match_parent" |
72 | android:background="@color/white" | 72 | android:background="@color/white" |
73 | android:hint="@string/password_hint" | 73 | android:hint="@string/password_hint" |
74 | android:inputType="textPassword" | 74 | android:inputType="textPassword" |
75 | android:paddingLeft="6dp" /> | 75 | android:paddingLeft="6dp" /> |
76 | </LinearLayout> | 76 | </LinearLayout> |
77 | 77 | ||
78 | <TextView | ||
79 | android:id="@+id/mod_pwd" | ||
80 | android:layout_width="wrap_content" | ||
81 | android:layout_height="wrap_content" | ||
82 | android:layout_gravity="right" | ||
83 | android:layout_marginRight="35dp" | ||
84 | android:layout_marginTop="12dp" | ||
85 | android:text="@string/mod_pwd" | ||
86 | android:textColor="@color/black_text" | ||
87 | android:textSize="11sp" /> | ||
88 | |||
78 | <LinearLayout | 89 | <LinearLayout |
79 | android:layout_width="fill_parent" | 90 | android:layout_width="fill_parent" |
80 | android:layout_height="wrap_content" | 91 | android:layout_height="wrap_content" |
81 | android:layout_marginLeft="35dp" | 92 | android:layout_marginLeft="35dp" |
82 | android:layout_marginRight="35dp" | 93 | android:layout_marginRight="35dp" |
83 | android:layout_marginTop="16dp" | 94 | android:layout_marginTop="12dp" |
84 | android:orientation="horizontal" > | 95 | android:orientation="horizontal" > |
85 | 96 | ||
86 | <Button | 97 | <Button |
87 | android:id="@+id/gump_reg" | 98 | android:id="@+id/gump_reg" |
88 | android:layout_width="fill_parent" | 99 | android:layout_width="fill_parent" |
89 | android:layout_height="wrap_content" | 100 | android:layout_height="wrap_content" |
90 | android:layout_marginRight="10dp" | 101 | android:layout_marginRight="10dp" |
91 | android:layout_weight="1" | 102 | android:layout_weight="1" |
92 | android:background="@drawable/btn_green_bg" | 103 | android:background="@drawable/btn_green_bg" |
93 | android:text="@string/signup" | 104 | android:text="@string/signup" |
94 | android:textColor="@color/white" /> | 105 | android:textColor="@color/white" /> |
95 | 106 | ||
96 | <Button | 107 | <Button |
97 | android:id="@+id/gump_login" | 108 | android:id="@+id/gump_login" |
98 | android:layout_width="fill_parent" | 109 | android:layout_width="fill_parent" |
99 | android:layout_height="wrap_content" | 110 | android:layout_height="wrap_content" |
100 | android:layout_marginLeft="11dp" | 111 | android:layout_marginLeft="11dp" |
101 | android:layout_weight="1" | 112 | android:layout_weight="1" |
102 | android:background="@drawable/btn_orange_bg" | 113 | android:background="@drawable/btn_orange_bg" |
103 | android:gravity="center" | 114 | android:gravity="center" |
104 | android:text="@string/login" | 115 | android:text="@string/login" |
105 | android:textColor="@android:color/white" | 116 | android:textColor="@android:color/white" |
106 | android:textSize="15sp" | 117 | android:textSize="15sp" |
107 | android:textStyle="bold" /> | 118 | android:textStyle="bold" /> |
108 | </LinearLayout> | 119 | </LinearLayout> |
109 | 120 | ||
110 | <Button | 121 | <LinearLayout |
111 | android:id="@+id/play" | ||
112 | android:layout_width="fill_parent" | 122 | android:layout_width="fill_parent" |
113 | android:layout_height="wrap_content" | 123 | android:layout_height="wrap_content" |
114 | android:layout_marginBottom="16dp" | ||
115 | android:layout_marginLeft="35dp" | 124 | android:layout_marginLeft="35dp" |
116 | android:layout_marginRight="35dp" | 125 | android:layout_marginRight="35dp" |
117 | android:layout_marginTop="16dp" | 126 | android:orientation="horizontal" |
118 | android:background="@drawable/btn_orange_bg" | 127 | android:paddingBottom="16dp" |
119 | android:padding="5dp" | 128 | android:paddingTop="16dp" > |
120 | android:text="@string/quick_play" | 129 | |
121 | android:textColor="@android:color/white" | 130 | <Button |
122 | android:textSize="16sp" | 131 | android:id="@+id/play" |
123 | android:textStyle="bold" /> | 132 | android:layout_width="fill_parent" |
133 | android:layout_height="wrap_content" | ||
134 | android:background="@drawable/btn_orange_bg" | ||
135 | android:padding="5dp" | ||
136 | android:text="@string/quick_play" | ||
137 | android:textColor="@android:color/white" | ||
138 | android:textSize="16sp" | ||
139 | android:textStyle="bold" /> | ||
140 | </LinearLayout> | ||
124 | 141 | ||
125 | <ImageView | 142 | <ImageView |
126 | android:id="@+id/or_line" | 143 | android:id="@+id/or_line" |
127 | android:layout_width="fill_parent" | 144 | android:layout_width="fill_parent" |
128 | android:layout_height="wrap_content" | 145 | android:layout_height="wrap_content" |
129 | android:layout_marginLeft="35dp" | 146 | android:layout_marginLeft="35dp" |
130 | android:layout_marginRight="35dp" | 147 | android:layout_marginRight="35dp" |
131 | android:background="@drawable/horizontal_line" /> | 148 | android:background="@drawable/horizontal_line" /> |
132 | </LinearLayout> | 149 | </LinearLayout> |
133 | 150 | ||
134 | <LinearLayout | 151 | <LinearLayout |
135 | android:layout_width="match_parent" | 152 | android:layout_width="match_parent" |
136 | android:layout_height="wrap_content" | 153 | android:layout_height="wrap_content" |
137 | android:background="@drawable/bottom_light_bg" | 154 | android:background="@drawable/bottom_light_bg" |
138 | android:gravity="center_horizontal" > | 155 | android:gravity="center_horizontal" > |
139 | 156 | ||
140 | <ImageView | 157 | <ImageView |
141 | android:id="@+id/fb_login" | 158 | android:id="@+id/fb_login" |
142 | android:layout_width="wrap_content" | 159 | android:layout_width="wrap_content" |
143 | android:layout_height="wrap_content" | 160 | android:layout_height="wrap_content" |
144 | android:layout_marginTop="10dp" | ||
145 | android:layout_marginRight="5dp" | 161 | android:layout_marginRight="5dp" |
162 | android:layout_marginTop="10dp" | ||
146 | android:src="@drawable/ic_fb" /> | 163 | android:src="@drawable/ic_fb" /> |
147 | 164 | ||
148 | <ImageView | 165 | <ImageView |
149 | android:id="@+id/vk_login" | 166 | android:id="@+id/vk_login" |
150 | android:layout_width="wrap_content" | 167 | android:layout_width="wrap_content" |
151 | android:layout_height="wrap_content" | 168 | android:layout_height="wrap_content" |
152 | android:layout_marginTop="10dp" | ||
153 | android:layout_marginLeft="5dp" | 169 | android:layout_marginLeft="5dp" |
170 | android:layout_marginTop="10dp" |
android/GameSDKRelease/res/layout/title.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:id="@+id/title_bar" | ||
5 | android:background="@drawable/title_light_bg" > | 6 | android:background="@drawable/title_light_bg" > |
6 | 7 | ||
7 | <ImageView | 8 | <ImageView |
8 | android:id="@+id/btn_back" | 9 | android:id="@+id/btn_back" |
9 | android:layout_width="wrap_content" | 10 | android:layout_width="wrap_content" |
10 | android:layout_height="wrap_content" | 11 | android:layout_height="wrap_content" |
11 | android:layout_alignParentLeft="true" | 12 | android:layout_alignParentLeft="true" |
12 | android:layout_centerVertical="true" | 13 | android:layout_centerVertical="true" |
13 | android:layout_marginLeft="10dp" | 14 | android:layout_marginLeft="10dp" |
14 | android:paddingLeft="20dp" | 15 | android:paddingLeft="20dp" |
15 | android:paddingRight="10dp" | 16 | android:paddingRight="10dp" |
16 | android:src="@drawable/ic_back_dark" /> | 17 | android:src="@drawable/ic_back_dark" /> |
17 | 18 | ||
18 | <TextView | 19 | <TextView |
19 | android:id="@+id/up_txt" | 20 | android:id="@+id/up_txt" |
20 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" |
21 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" |
22 | android:layout_centerVertical="true" | 23 | android:layout_centerVertical="true" |
23 | android:layout_toRightOf="@id/btn_back" | 24 | android:layout_toRightOf="@id/btn_back" |
24 | android:textColor="@color/black_text" | 25 | android:textColor="@color/black_text" |
25 | android:textSize="18sp" /> | 26 | android:textSize="18sp" /> |
26 | 27 | ||
27 | <ImageView | 28 | <ImageView |
28 | android:id="@+id/log" | 29 | android:id="@+id/log" |
29 | android:layout_width="wrap_content" | 30 | android:layout_width="wrap_content" |
30 | android:layout_height="wrap_content" | 31 | android:layout_height="wrap_content" |
31 | android:layout_marginTop="27dp" | 32 | android:layout_marginTop="27dp" |
32 | android:layout_marginLeft="35dp" | 33 | android:layout_marginLeft="35dp" |
33 | android:visibility="gone" /> | 34 | android:visibility="gone" /> |
34 | 35 | ||
35 | <TextView | 36 | <TextView |
36 | android:id="@+id/title" | 37 | android:id="@+id/title" |
37 | android:layout_width="wrap_content" | 38 | android:layout_width="wrap_content" |
38 | android:layout_height="wrap_content" | 39 | android:layout_height="wrap_content" |
39 | android:layout_centerInParent="true" | 40 | android:layout_centerInParent="true" |
40 | android:textColor="@android:color/black" | 41 | android:textColor="@android:color/black" |
41 | android:textSize="18sp" /> | 42 | android:textSize="18sp" /> |
42 | 43 | ||
43 | </RelativeLayout> | 44 | </RelativeLayout> |
android/GameSDKRelease/res/values-pt/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="user_name_hint">Email</string> | 3 | <string name="user_name_hint">Email</string> |
4 | <string name="password_hint">Senha</string> | 4 | <string name="password_hint">Senha</string> |
5 | <string name="quick_play">jogo de hóspedes</string> | 5 | <string name="quick_play">jogo de hóspedes</string> |
6 | <string name="login">Login</string> | 6 | <string name="login">Login</string> |
7 | <string name="signup">Registrar</string> | 7 | <string name="signup">Registrar</string> |
8 | <string name="bind">Vincular ao email</string> | 8 | <string name="bind">Vincular ao email</string> |
9 | <string name="loading">Carregando</string> | 9 | <string name="loading">Carregando</string> |
10 | <string name="loging">Carregando</string> | 10 | <string name="loging">Carregando</string> |
11 | <string name="switch_user">Contas de comutação</string> | 11 | <string name="switch_user">Contas de comutação</string> |
12 | <!-- toast --> | 12 | <!-- toast --> |
13 | <string name="illegal_uname_tip">Email inválido</string> | 13 | <string name="illegal_uname_tip">Email inválido</string> |
14 | <string name="illegal_pwd_tip">Senha Inválida (6-20 caracteres)</string> | 14 | <string name="illegal_pwd_tip">Senha Inválida (6-20 caracteres)</string> |
15 | <string name="illegal_user_exist">Email já está em uso</string> | 15 | <string name="illegal_user_exist">Email já está em uso</string> |
16 | <string name="illegal_pwd_invalid">Senha incorreta, favor tentar novamente</string> | 16 | <string name="illegal_pwd_invalid">Senha incorreta, favor tentar novamente</string> |
17 | <string name="illegal_user_not_exist">Email Inválido</string> | 17 | <string name="illegal_user_not_exist">Email Inválido</string> |
18 | <string name="invalid_email">Favor inserir seu email</string> | 18 | <string name="invalid_email">Favor inserir seu email</string> |
19 | <string name="login_fail">Login falhou</string> | 19 | <string name="login_fail">Login falhou</string> |
20 | <string name="signup_fail">Registrar falhou</string> | 20 | <string name="signup_fail">Registrar falhou</string> |
21 | <string name="bind_fail">Vincular falhou</string> | 21 | <string name="bind_fail">Vincular falhou</string> |
22 | <string name="gen_quick_acc_err">Entre falhou, por favor tente novamente</string> | 22 | <string name="gen_quick_acc_err">Entre falhou, por favor tente novamente</string> |
23 | <string name="quick_login_err">Entre falhou, por favor tente novamente</string> | 23 | <string name="quick_login_err">Entre falhou, por favor tente novamente</string> |
24 | <!-- facebook id --> | 24 | <!-- 修改密码 --> |
25 | 25 | <string name="old_pwd">Current Password</string> | |
26 | <string name="new_pwd">New Password</string> | ||
27 | <string name="mod_pwd">Change Password</string> | ||
28 | <string name="cant_change_unknown">Reset fail, please contact customer service</string> | ||
29 | <string name="submit">Confirm new password</string> | ||
30 | <string name="reset">Reset Password</string> | ||
31 | <string name="reset_intro">Current password isn’t required when reset password</string> | ||
32 | <string name="mod_pwd_success">Reset Succeed</string> | ||
33 | <string name="mail_sent_success">An email has been sent to you, please follow the instructions in the email.</string> | ||
26 | </resources> | 34 | </resources> |
android/GameSDKRelease/res/values-th/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="user_name_hint">อีเมลล์</string> | 3 | <string name="user_name_hint">อีเมลล์</string> |
4 | <string name="password_hint">พาสเวิร์ด</string> | 4 | <string name="password_hint">พาสเวิร์ด</string> |
5 | <string name="quick_play">การเล่นของผู้เข้าพัก</string> | 5 | <string name="quick_play">การเล่นของผู้เข้าพัก</string> |
6 | <string name="login">ล็อกอิน</string> | 6 | <string name="login">ล็อกอิน</string> |
7 | <string name="signup">ลงทะเบียน</string> | 7 | <string name="signup">ลงทะเบียน</string> |
8 | <string name="bind">ผูกอีเมลล์</string> | 8 | <string name="bind">ผูกอีเมลล์</string> |
9 | <string name="loading">กำลังโหลด</string> | 9 | <string name="loading">กำลังโหลด</string> |
10 | <string name="loging">กำลังโหลด</string> | 10 | <string name="loging">กำลังโหลด</string> |
11 | <string name="switch_user">การสลับบัญชี</string> | 11 | <string name="switch_user">การสลับบัญชี</string> |
12 | <!-- toast --> | 12 | <!-- toast --> |
13 | <string name="illegal_uname_tip">อีเมลล์ไม่ถูกต้อง</string> | 13 | <string name="illegal_uname_tip">อีเมลล์ไม่ถูกต้อง</string> |
14 | <string name="illegal_pwd_tip">พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)</string> | 14 | <string name="illegal_pwd_tip">พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)</string> |
15 | <string name="illegal_user_exist">อีเมลล์นี้ได้ถูกใช้แล้ว</string> | 15 | <string name="illegal_user_exist">อีเมลล์นี้ได้ถูกใช้แล้ว</string> |
16 | <string name="illegal_pwd_invalid">พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง</string> | 16 | <string name="illegal_pwd_invalid">พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง</string> |
17 | <string name="illegal_user_not_exist">อีเมลล์ไม่ถูกต้อง</string> | 17 | <string name="illegal_user_not_exist">อีเมลล์ไม่ถูกต้อง</string> |
18 | <string name="invalid_email">ใส่อีเมลล์ของคุณ</string> | 18 | <string name="invalid_email">ใส่อีเมลล์ของคุณ</string> |
19 | <string name="login_fail">ล็อกอินผิดพลาด</string> | 19 | <string name="login_fail">ล็อกอินผิดพลาด</string> |
20 | <string name="signup_fail">ลงทะเบียนไม่สำเร็จ</string> | 20 | <string name="signup_fail">ลงทะเบียนไม่สำเร็จ</string> |
21 | <string name="bind_fail">ผูกอีเมลล์ไม่สำเร็จ</string> | 21 | <string name="bind_fail">ผูกอีเมลล์ไม่สำเร็จ</string> |
22 | <string name="signup_success">สำเร็จ</string> | 22 | <string name="signup_success">สำเร็จ</string> |
23 | <!-- facebook id --> | 23 | <!-- 修改密码 --> |
24 | <string name="old_pwd">พาสเวิร์ดปัจจุบัน</string> | ||
25 | <string name="new_pwd">พาสเวิร์ดใหม่</string> | ||
26 | <string name="mod_pwd">แก้ไขพาสเวิร์ด</string> | ||
27 | <string name="cant_change_unknown">แก้ไขล้มเหลว,กรุณาติดต่อแอดมิน</string> | ||
28 | <string name="submit">ยืนยัน</string> | ||
29 | <string name="reset">ตั้งพาสเวิร์ด</string> | ||
30 | <string name="reset_intro">ไม่สามารถตั้งพาสเวิร์ดซ้ำกับพาสเวิร์ดปัจจุบันได้</string> | ||
31 | <string name="mod_pwd_success">แก้ไข</string> | ||
32 | <string name="mail_sent_success">ระบบได้แจ้งข้อมูลการเปลี่ยนพาสเวิร์ดไปยังอีเมลล์สำรอง กรุณาทำตามขั้นตอนในอีเมลล์</string> | ||
24 | <!-- payment --> | 33 | <!-- payment --> |
25 | <string name="title_payment_choice">เลือกช่องทางชำระเงิน</string> | 34 | <string name="title_payment_choice">เลือกช่องทางชำระเงิน</string> |
26 | <!-- summary title --> | 35 | <!-- summary title --> |
27 | <string name="summary_title">ตารางแลกเปลี่ยน:</string> | 36 | <string name="summary_title">ตารางแลกเปลี่ยน:</string> |
28 | <string name="useranme_pattern">ชื่อผู้ใช้:%s</string> | 37 | <string name="useranme_pattern">ชื่อผู้ใช้:%s</string> |
29 | <!-- <string name="mol_channel_title">เลือกช่องทางชำระเงิน</string> --> | 38 | <!-- <string name="mol_channel_title">เลือกช่องทางชำระเงิน</string> --> |
30 | <string name="mol_card_hint">กรุณากรอกรหัสบัตร</string> | 39 | <string name="mol_card_hint">กรุณากรอกรหัสบัตร</string> |
31 | <string name="mol_pass_hint">กรุณาใส่รหัส</string> | 40 | <string name="mol_pass_hint">กรุณาใส่รหัส</string> |
32 | <string name="pay_ok">OK</string> | 41 | <string name="pay_ok">OK</string> |
33 | <string name="pay_error">การชำระล้มเหลว กรุณาลองใหม่อีกครั้ง</string> | 42 | <string name="pay_error">การชำระล้มเหลว กรุณาลองใหม่อีกครั้ง</string> |
34 | <string name="card_input_tip">กรุณากรอกรายละเอียดบัตร</string> | 43 | <string name="card_input_tip">กรุณากรอกรายละเอียดบัตร</string> |
35 | <string name="amount_choice_tip">กรุณาเลือกยอดเติมเงิน</string> | 44 | <string name="amount_choice_tip">กรุณาเลือกยอดเติมเงิน</string> |
36 | <!-- paypal --> | 45 | <!-- paypal --> |
37 | <string name="paypal_amount_hint">กรุณาใส่จำนวนเงินที่ต้องการ(%s-10000เป็นจำนวนเต็ม)</string> | 46 | <string name="paypal_amount_hint">กรุณาใส่จำนวนเงินที่ต้องการ(%s-10000เป็นจำนวนเต็ม)</string> |
38 | <string name="paypal_choice_tip">กรุณาเลือกยอดเติมเงิน</string> | 47 | <string name="paypal_choice_tip">กรุณาเลือกยอดเติมเงิน</string> |
39 | <!-- gp --> | 48 | <!-- gp --> |
40 | <string name="gp_choice_tip">กรุณาเลือกยอดเติมเงิน</string> | 49 | <string name="gp_choice_tip">กรุณาเลือกยอดเติมเงิน</string> |
41 | <string name="gen_quick_acc_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> | 50 | <string name="gen_quick_acc_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> |
42 | <string name="quick_login_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> | 51 | <string name="quick_login_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> |
43 | 52 | ||
44 | </resources> | 53 | </resources> |
android/GameSDKRelease/res/values-zh-rTW/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="user_name_hint">郵箱</string> | 3 | <string name="user_name_hint">郵箱</string> |
4 | <string name="password_hint">密碼</string> | 4 | <string name="password_hint">密碼</string> |
5 | <string name="login">登錄</string> | 5 | <string name="login">登錄</string> |
6 | <string name="signup">註冊</string> | 6 | <string name="signup">註冊</string> |
7 | <string name="bind">綁定郵箱</string> | 7 | <string name="bind">綁定郵箱</string> |
8 | <string name="loading">加載中……</string> | 8 | <string name="loading">加載中……</string> |
9 | <string name="loging">加載中……</string> | 9 | <string name="loging">加載中……</string> |
10 | <string name="switch_user">切換賬戶</string> | 10 | <string name="switch_user">切換賬戶</string> |
11 | <!-- toast --> | 11 | <!-- toast --> |
12 | <string name="illegal_uname_tip">郵箱格式不正確</string> | 12 | <string name="illegal_uname_tip">郵箱格式不正確</string> |
13 | <string name="illegal_pwd_tip">密碼格式不正確 (6–20字符)</string> | 13 | <string name="illegal_pwd_tip">密碼格式不正確 (6–20字符)</string> |
14 | <string name="illegal_user_exist">郵箱已註冊</string> | 14 | <string name="illegal_user_exist">郵箱已註冊</string> |
15 | <string name="illegal_pwd_invalid">密碼不正確,請重試</string> | 15 | <string name="illegal_pwd_invalid">密碼不正確,請重試</string> |
16 | <string name="illegal_user_not_exist">郵箱不存在</string> | 16 | <string name="illegal_user_not_exist">郵箱不存在</string> |
17 | <string name="invalid_email">請輸入正確的郵箱</string> | 17 | <string name="invalid_email">請輸入正確的郵箱</string> |
18 | <string name="login_fail">登錄失敗</string> | 18 | <string name="login_fail">登錄失敗</string> |
19 | <string name="signup_fail">註冊失敗</string> | 19 | <string name="signup_fail">註冊失敗</string> |
20 | <string name="bind_fail">綁定失敗</string> | 20 | <string name="bind_fail">綁定失敗</string> |
21 | <!-- facebook id --> | 21 | <!-- 修改密码 --> |
22 | 22 | <string name="old_pwd">當前密碼</string> | |
23 | <string name="new_pwd">新密碼</string> | ||
24 | <string name="mod_pwd">修改密碼</string> | ||
25 | <string name="cant_change_unknown">修改失敗,請與客服聯繫</string> | ||
26 | <string name="submit">確定修改</string> | ||
27 | <string name="reset">重置密碼</string> | ||
28 | <string name="reset_intro">重置密碼時可不填寫當前密碼</string> | ||
29 | <string name="mod_pwd_success">修改成功</string> | ||
30 | <string name="mail_sent_success">密碼重置郵件已發送到指定郵箱賬戶,請按郵件內的提示操作</string> | ||
23 | 31 | ||
24 | <!-- 支付相关 --> | 32 | <!-- 支付相关 --> |
25 | <!-- title --> | 33 | <!-- title --> |
26 | <string name="title_payment_choice">請選擇支付方式</string> | 34 | <string name="title_payment_choice">請選擇支付方式</string> |
27 | <!-- summary title --> | 35 | <!-- summary title --> |
28 | <string name="summary_title">兌換表:</string> | 36 | <string name="summary_title">兌換表:</string> |
29 | <string name="mol_card_hint">請輸入卡號</string> | 37 | <string name="mol_card_hint">請輸入卡號</string> |
30 | <string name="mol_pass_hint">請輸入密碼</string> | 38 | <string name="mol_pass_hint">請輸入密碼</string> |
31 | <string name="pay_ok">OK</string> | 39 | <string name="pay_ok">OK</string> |
32 | <string name="pay_error">支付失敗,請再重試。</string> | 40 | <string name="pay_error">支付失敗,請再重試。</string> |
33 | <string name="card_input_tip">請輸入點卡信息</string> | 41 | <string name="card_input_tip">請輸入點卡信息</string> |
34 | <string name="amount_choice_tip">請選擇支付金額</string> | 42 | <string name="amount_choice_tip">請選擇支付金額</string> |
35 | <!-- paypal --> | 43 | <!-- paypal --> |
36 | <string name="paypal_choice_tip">請選擇支付金額</string> | 44 | <string name="paypal_choice_tip">請選擇支付金額</string> |
37 | <!-- gp --> | 45 | <!-- gp --> |
38 | <string name="gp_choice_tip">請選擇支付金額</string> | 46 | <string name="gp_choice_tip">請選擇支付金額</string> |
39 | <string name="gen_quick_acc_err">登錄失敗,請重試</string> | 47 | <string name="gen_quick_acc_err">登錄失敗,請重試</string> |
40 | <string name="quick_login_err">登錄失敗,請重試</string> | 48 | <string name="quick_login_err">登錄失敗,請重試</string> |
41 | 49 | ||
42 | </resources> | 50 | </resources> |
android/GameSDKRelease/res/values-zh/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="user_name_hint">邮箱</string> | 3 | <string name="user_name_hint">邮箱</string> |
4 | <string name="password_hint">密码</string> | 4 | <string name="password_hint">密码</string> |
5 | <string name="quick_play">Guest Play</string> | 5 | <string name="quick_play">Guest Play</string> |
6 | <string name="login">登录</string> | 6 | <string name="login">登录</string> |
7 | <string name="signup">注册</string> | 7 | <string name="signup">注册</string> |
8 | <string name="bind">绑定邮箱</string> | 8 | <string name="bind">绑定邮箱</string> |
9 | <string name="loading">加载中……</string> | 9 | <string name="loading">加载中……</string> |
10 | <string name="loging">加载中……</string> | 10 | <string name="loging">加载中……</string> |
11 | <string name="switch_user">切换用户</string> | 11 | <string name="switch_user">切换用户</string> |
12 | <!-- toast --> | 12 | <!-- toast --> |
13 | <string name="illegal_uname_tip">请输入正确的邮箱</string> | 13 | <string name="illegal_uname_tip">请输入正确的邮箱</string> |
14 | <string name="illegal_pwd_tip">密码格式不正确 (6–20字符)</string> | 14 | <string name="illegal_pwd_tip">密码格式不正确 (6–20字符)</string> |
15 | <string name="illegal_user_exist">邮箱已注册</string> | 15 | <string name="illegal_user_exist">邮箱已注册</string> |
16 | <string name="illegal_pwd_invalid">密码不正确,请重试</string> | 16 | <string name="illegal_pwd_invalid">密码不正确,请重试</string> |
17 | <string name="illegal_user_not_exist">邮箱未注册</string> | 17 | <string name="illegal_user_not_exist">邮箱未注册</string> |
18 | <string name="invalid_email">请输入正确的邮箱</string> | 18 | <string name="invalid_email">请输入正确的邮箱</string> |
19 | <string name="login_fail">登录失败</string> | 19 | <string name="login_fail">登录失败</string> |
20 | <string name="signup_fail">注册失败</string> | 20 | <string name="signup_fail">注册失败</string> |
21 | <string name="bind_fail">绑定失败</string> | 21 | <string name="bind_fail">绑定失败</string> |
22 | <string name="net_error">网络无法连接,请查看网络设置</string> | 22 | <string name="net_error">网络无法连接,请查看网络设置</string> |
23 | <!-- facebook id --> | 23 | <!-- 修改密码 --> |
24 | <string name="old_pwd">当前密码</string> | ||
25 | <string name="new_pwd">新密码</string> | ||
26 | <string name="mod_pwd">修改密码</string> | ||
27 | <string name="cant_change_unknown">修改失败,请与客服联系</string> | ||
28 | <string name="submit">确定修改</string> | ||
29 | <string name="reset">重置密码</string> | ||
30 | <string name="reset_intro">重置密码时可不填写当前密码</string> | ||
31 | <string name="mod_pwd_success">修改成功</string> | ||
32 | <string name="mail_sent_success">密码重置邮件已发送到指定账户邮箱,请按邮件内的提示操作</string> | ||
33 | |||
24 | <!-- 支付 --> | 34 | <!-- 支付 --> |
25 | <!-- title --> | 35 | <!-- title --> |
26 | <string name="title_payment_choice">请选择支付方式</string> | 36 | <string name="title_payment_choice">请选择支付方式</string> |
27 | <!-- summary title --> | 37 | <!-- summary title --> |
28 | <string name="summary_title">兑换表:</string> | 38 | <string name="summary_title">兑换表:</string> |
29 | <!-- payment --> | 39 | <!-- payment --> |
30 | <string name="mol_card_hint">请输入卡号</string> | 40 | <string name="mol_card_hint">请输入卡号</string> |
31 | <string name="mol_pass_hint">请输入密码</string> | 41 | <string name="mol_pass_hint">请输入密码</string> |
32 | <string name="pay_ok">OK</string> | 42 | <string name="pay_ok">OK</string> |
33 | <string name="pay_error">充值失败,请重试</string> | 43 | <string name="pay_error">充值失败,请重试</string> |
34 | <string name="card_input_tip">请输入点卡信息</string> | 44 | <string name="card_input_tip">请输入点卡信息</string> |
35 | <string name="amount_choice_tip">请选择支付金额</string> | 45 | <string name="amount_choice_tip">请选择支付金额</string> |
36 | <!-- paypal --> | 46 | <!-- paypal --> |
37 | <string name="paypal_choice_tip">请选择支付金额</string> | 47 | <string name="paypal_choice_tip">请选择支付金额</string> |
38 | <!-- gp --> | 48 | <!-- gp --> |
39 | <string name="gp_choice_tip">请选择支付金额</string> | 49 | <string name="gp_choice_tip">请选择支付金额</string> |
40 | <string name="gen_quick_acc_err">登录失败,请重试</string> | 50 | <string name="gen_quick_acc_err">登录失败,请重试</string> |
41 | <string name="quick_login_err">登录失败,请重试</string> | 51 | <string name="quick_login_err">登录失败,请重试</string> |
42 | 52 | ||
43 | </resources> | 53 | </resources> |
android/GameSDKRelease/res/values/colors.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <resources> | 2 | <resources> |
3 | 3 | ||
4 | <color name="white">#FFFFFF</color> | 4 | <color name="white">#FFFFFF</color> |
5 | <color name="white_translucent">#D9FFFFFF</color> | 5 | <color name="white_translucent">#D9FFFFFF</color> |
6 | <color name="line">#e5e5e5</color> | 6 | <color name="line">#e5e5e5</color> |
7 | <color name="light_gray">#c9c9c9</color> | 7 | <color name="light_gray">#c9c9c9</color> |
8 | <color name="dark_gray">#d9d9d9</color> | 8 | <color name="dark_gray">#d9d9d9</color> |
9 | <color name="orange_normal">#f8b500</color> | 9 | <color name="orange_normal">#f8b500</color> |
10 | <color name="orange_pressed">#ffc62c</color> | 10 | <color name="orange_pressed">#ffc62c</color> |
11 | <color name="black_text">#3f3c38</color> | 11 | <color name="black_text">#3f3c38</color> |
12 | <!-- <color name="btn_white_normal">#f8f7f4</color> --> | 12 | <!-- <color name="btn_white_normal">#f8f7f4</color> --> |
13 | <!-- <color name="btn_white_pressed">#f8f7f4</color> --> | 13 | <!-- <color name="btn_white_pressed">#f8f7f4</color> --> |
14 | <color name="btn_green_normal">#3eb370</color> | 14 | <color name="btn_green_normal">#3eb370</color> |
15 | <color name="btn_green_pressed">#3cca79</color> | 15 | <color name="btn_green_pressed">#3cca79</color> |
16 | 16 | ||
17 | <color name="common_gray">#ecf0f0</color> | 17 | <color name="common_gray">#ecf0f0</color> |
18 | <color name="common_gray2">#e0e6e8</color> | 18 | <color name="common_gray2">#e0e6e8</color> |
19 | <color name="translucent">#7e000000</color> | 19 | <color name="translucent">#7e000000</color> |
20 | <color name="transparent">#00000000</color> | 20 | <color name="transparent">#00000000</color> |
21 | 21 | ||
22 | <color name="payment_common_bg">#f2efeb</color> | 22 | <color name="payment_common_bg">#f2efeb</color> |
23 | <color name="summary_bg">#d6d4d1</color> | 23 | <color name="summary_bg">#d6d4d1</color> |
24 | <color name="background_color">#00a0e9</color> | 24 | <color name="background_color">#00a0e9</color> |
25 | </resources> | 25 | </resources> |
android/GameSDKRelease/res/values/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="user_name_hint">Email</string> | 3 | <string name="user_name_hint">Email</string> |
4 | <string name="password_hint">Password</string> | 4 | <string name="password_hint">Password</string> |
5 | <string name="quick_login">Play(%sS)</string> | 5 | <string name="quick_login">Play(%sS)</string> |
6 | <string name="quick_play">Guest Play</string> | 6 | <string name="quick_play">Guest Play</string> |
7 | <string name="login">Login</string> | 7 | <string name="login">Login</string> |
8 | <string name="signup">Signup</string> | 8 | <string name="signup">Signup</string> |
9 | <string name="bind">Bound to email</string> | 9 | <string name="bind">Bound to email</string> |
10 | <string name="loading">Loading</string> | 10 | <string name="loading">Loading</string> |
11 | <string name="loging">Loding...</string> | 11 | <string name="loging">Loding...</string> |
12 | <string name="switch_user">Switching accounts</string> | 12 | <string name="switch_user">Switching accounts</string> |
13 | <!-- toast --> | 13 | <!-- toast --> |
14 | <string name="illegal_uname_tip">Invalid Email</string> | 14 | <string name="illegal_uname_tip">Invalid Email</string> |
15 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> | 15 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> |
16 | <string name="illegal_user_exist">Email has already used</string> | 16 | <string name="illegal_user_exist">Email has already used</string> |
17 | <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string> | 17 | <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string> |
18 | <string name="illegal_user_not_exist">Invalid Email</string> | 18 | <string name="illegal_user_not_exist">Invalid Email</string> |
19 | <string name="invalid_email">Invalid Email</string> | 19 | <string name="invalid_email">Invalid Email</string> |
20 | <string name="login_fail">Login failed</string> | 20 | <string name="login_fail">Login failed</string> |
21 | <string name="signup_fail">Signup failed</string> | 21 | <string name="signup_fail">Signup failed</string> |
22 | <string name="bind_fail">Bound failed</string> | 22 | <string name="bind_fail">Bound failed</string> |
23 | <string name="net_error">Internet unavailable, please check</string> | 23 | <string name="net_error">Internet unavailable, please check</string> |
24 | <string name="gump_login">Login</string> | 24 | <string name="gump_login">Login</string> |
25 | <string name="vk_login">Login with VK</string> | 25 | <string name="vk_login">Login with VK</string> |
26 | <string name="fb_login">Login with Facebook</string> | 26 | <string name="fb_login">Login with Facebook</string> |
27 | <string name="signup_success">Sign Up Successfully</string> | 27 | <string name="signup_success">Sign Up Successfully</string> |
28 | <string name="gen_quick_acc_err">Login failed, please try again</string> | 28 | <string name="gen_quick_acc_err">Login failed, please try again</string> |
29 | <string name="quick_login_err">Login failed, please try again</string> | 29 | <string name="quick_login_err">Login failed, please try again</string> |
30 | <!-- facebook --> | 30 | <!-- 修改密码 --> |
31 | 31 | <string name="old_pwd">Current Password</string> | |
32 | <string name="new_pwd">New Password</string> | ||
33 | <string name="mod_pwd">Change Password</string> | ||
34 | <string name="cant_change_unknown">Reset fail, please contact customer service</string> | ||
35 | <string name="submit">Confirm</string> | ||
36 | <string name="reset">Reset</string> | ||
37 | <string name="reset_intro">Current password isn’t required when reset password</string> | ||
38 | <string name="mod_pwd_success">Succeed</string> | ||
39 | <string name="mail_sent_success">An email has been sent to you, please follow the instructions in the email.</string> | ||
32 | 40 | ||
33 | <!-- 支付相关 --> | 41 | <!-- 支付相关 --> |
34 | 42 | ||
35 | 43 | ||
36 | <!-- title --> | 44 | <!-- title --> |
37 | <string name="title_mycard">Mycard點數儲值</string> | 45 | <string name="title_mycard">Mycard點數儲值</string> |
38 | <string name="title_mycard_member">Mycard會員扣點</string> | 46 | <string name="title_mycard_member">Mycard會員扣點</string> |
39 | <string name="title_mycard_billing">Mycard Billing</string> | 47 | <string name="title_mycard_billing">Mycard Billing</string> |
40 | <string name="title_mol">MOLPoints Gift Card</string> | 48 | <string name="title_mol">MOLPoints Gift Card</string> |
41 | <string name="title_mol_wallet">MOLPoints E-Wallet</string> | 49 | <string name="title_mol_wallet">MOLPoints E-Wallet</string> |
42 | <string name="title_12call">12Call</string> | 50 | <string name="title_12call">12Call</string> |
43 | <string name="title_tm">True Money</string> | 51 | <string name="title_tm">True Money</string> |
44 | <string name="title_zest">Zest</string> | 52 | <string name="title_zest">Zest</string> |
45 | <string name="title_gp">Google play</string> | 53 | <string name="title_gp">Google play</string> |
46 | <string name="title_paypal">Paypal</string> | 54 | <string name="title_paypal">Paypal</string> |
47 | <string name="title_rixty">Rixty</string> | 55 | <string name="title_rixty">Rixty</string> |
48 | <string name="title_ngan">NganLoung</string> | 56 | <string name="title_ngan">NganLoung</string> |
49 | <string name="title_easy2pay">Easy2Pay</string> | 57 | <string name="title_easy2pay">Easy2Pay</string> |
50 | <string name="title_boa">BOACompra</string> | 58 | <string name="title_boa">BOACompra</string> |
51 | <string name="title_indomog_voucher">Indomog</string> | 59 | <string name="title_indomog_voucher">Indomog</string> |
52 | <string name="title_indomog_account">Indomog Account Balance</string> | 60 | <string name="title_indomog_account">Indomog Account Balance</string> |
53 | <string name="title_yandex">Yandex</string> | 61 | <string name="title_yandex">Yandex</string> |
54 | <string name="title_vnpt_vnp">VinaPhone</string> | 62 | <string name="title_vnpt_vnp">VinaPhone</string> |
55 | <string name="title_vnpt_vms">MobiFone</string> | 63 | <string name="title_vnpt_vms">MobiFone</string> |
56 | <string name="title_vnpt_onc">Oncash</string> | 64 | <string name="title_vnpt_onc">Oncash</string> |
57 | <string name="title_vnpt_fpt">FPT</string> | 65 | <string name="title_vnpt_fpt">FPT</string> |
58 | <string name="title_vnpt_vtt">Viettel</string> | 66 | <string name="title_vnpt_vtt">Viettel</string> |
59 | <string name="title_vnpt_mgc">MegaCard</string> | 67 | <string name="title_vnpt_mgc">MegaCard</string> |
60 | <string name="title_coda">Coda Payment</string> | 68 | <string name="title_coda">Coda Payment</string> |
61 | <string name="title_cherry">Cherry Credits</string> | 69 | <string name="title_cherry">Cherry Credits</string> |
62 | <string name="title_payment_choice">Select payment methods</string> | 70 | <string name="title_payment_choice">Select payment methods</string> |
63 | 71 | ||
64 | <!-- summary title --> | 72 | <!-- summary title --> |
65 | <string name="summary_title">Price list:</string> | 73 | <string name="summary_title">Price list:</string> |
66 | 74 | ||
67 | <!-- payment --> | 75 | <!-- payment --> |
68 | <string name="useranme_pattern">Account:%s</string> | 76 | <string name="useranme_pattern">Account:%s</string> |
69 | <string name="mol_card_hint">Card No.</string> | 77 | <string name="mol_card_hint">Card No.</string> |
70 | <string name="mol_pass_hint">Password</string> | 78 | <string name="mol_pass_hint">Password</string> |
71 | <string name="pay_ok">OK</string> | 79 | <string name="pay_ok">OK</string> |
72 | <string name="pay_error">Charging Failed, please try again.</string> | 80 | <string name="pay_error">Charging Failed, please try again.</string> |
73 | <string name="card_input_tip">Card information</string> | 81 | <string name="card_input_tip">Card information</string> |
74 | <string name="amount_choice_tip">Please select the amount</string> | 82 | <string name="amount_choice_tip">Please select the amount</string> |
75 | 83 | ||
76 | <!-- paypal --> | 84 | <!-- paypal --> |
77 | <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string> | 85 | <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string> |
78 | <string name="paypal_choice_tip">Please select the amount</string> | 86 | <string name="paypal_choice_tip">Please select the amount</string> |
79 | <!-- gp --> | 87 | <!-- gp --> |
80 | <string name="gp_choice_tip">Please select the amount</string> | 88 | <string name="gp_choice_tip">Please select the amount</string> |
81 | <!-- yandex --> | 89 | <!-- yandex --> |
82 | <string name="yandex_money">Yandex Money</string> | 90 | <string name="yandex_money">Yandex Money</string> |
83 | <string name="yandex_bank">Yandex Bank</string> | 91 | <string name="yandex_bank">Yandex Bank</string> |
84 | <string name="yandex_cash">Yandex Cash</string> | 92 | <string name="yandex_cash">Yandex Cash</string> |
85 | 93 | ||
86 | </resources> | 94 | </resources> |
android/GameSDKSample/AndroidManifest.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | package="com.gumpsdk.wuruid" | 3 | package="com.gumpsdk.wuruid" |
4 | android:versionCode="6" | 4 | android:versionCode="6" |
5 | android:versionName="1.6" > | 5 | android:versionName="1.6" > |
6 | 6 | ||
7 | <uses-sdk | 7 | <uses-sdk |
8 | android:minSdkVersion="9" | 8 | android:minSdkVersion="9" |
9 | android:targetSdkVersion="22" /> | 9 | android:targetSdkVersion="22" /> |
10 | 10 | ||
11 | <uses-permission android:name="android.permission.INTERNET" /> | 11 | <uses-permission android:name="android.permission.INTERNET" /> |
12 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | 12 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
13 | <uses-permission android:name="android.permission.BLUETOOTH" /> | 13 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
14 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | 14 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
15 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | 15 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
16 | <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | 16 | <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
17 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | 17 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
18 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | 18 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
19 | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | 19 | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> |
20 | <uses-permission android:name="android.permission.SEND_SMS"/> | 20 | <uses-permission android:name="android.permission.SEND_SMS"/> |
21 | 21 | ||
22 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> | 22 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> |
23 | <uses-permission android:name="com.android.vending.BILLING" /> | 23 | <uses-permission android:name="com.android.vending.BILLING" /> |
24 | 24 | ||
25 | <application | 25 | <application |
26 | android:allowBackup="true" | 26 | android:allowBackup="true" |
27 | android:icon="@drawable/ic_launcher" | 27 | android:icon="@drawable/ic_launcher" |
28 | android:label="@string/app_name" > | 28 | android:label="@string/app_name" > |
29 | <activity | 29 | <activity |
30 | android:name="com.gumptech.loginsdk.sample.MainActivity" | 30 | android:name="com.gumptech.loginsdk.sample.MainActivity" |
31 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 31 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
32 | android:label="@string/app_name" | 32 | android:label="@string/app_name" |
33 | android:screenOrientation="portrait" > | 33 | android:screenOrientation="landscape" > |
34 | <intent-filter> | 34 | <intent-filter> |
35 | <action android:name="android.intent.action.MAIN" /> | 35 | <action android:name="android.intent.action.MAIN" /> |
36 | 36 | ||
37 | <category android:name="android.intent.category.LAUNCHER" /> | 37 | <category android:name="android.intent.category.LAUNCHER" /> |
38 | </intent-filter> | 38 | </intent-filter> |
39 | </activity> | 39 | </activity> |
40 | <activity | 40 | <activity |
41 | android:name="com.gumptech.sdk.ContainerActivity" | 41 | android:name="com.gumptech.sdk.ContainerActivity" |
42 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 42 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
43 | android:windowSoftInputMode="stateAlwaysHidden|adjustPan" | 43 | android:windowSoftInputMode="stateAlwaysHidden|adjustPan" |
44 | android:theme="@style/Theme.TransparentWin" > | 44 | android:theme="@style/Theme.TransparentWin" > |
45 | </activity> | 45 | </activity> |
46 | <activity | 46 | <activity |
47 | android:name="com.gumptech.sdk.PaymentActivity" | 47 | android:name="com.gumptech.sdk.PaymentActivity" |
48 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 48 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
49 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > | 49 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
50 | <intent-filter> | 50 | <intent-filter> |
51 | <category android:name="android.intent.category.DEFAULT" /> | 51 | <category android:name="android.intent.category.DEFAULT" /> |
52 | 52 | ||
53 | <action android:name="android.intent.action.VIEW" /> | 53 | <action android:name="android.intent.action.VIEW" /> |
54 | 54 | ||
55 | <category android:name="android.intent.category.BROWSABLE" /> | 55 | <category android:name="android.intent.category.BROWSABLE" /> |
56 | 56 | ||
57 | <data | 57 | <data |
58 | android:host="com.gump.sdk" | 58 | android:host="com.gump.sdk" |
59 | android:scheme="gump10044" /> | 59 | android:scheme="gump10022" /> |
60 | </intent-filter> | 60 | </intent-filter> |
61 | </activity> | 61 | </activity> |
62 | <activity | 62 | <activity |
63 | android:name="com.gumptech.sdk.ExchangeWindow" | 63 | android:name="com.gumptech.sdk.ExchangeWindow" |
64 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 64 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
65 | android:theme="@style/Theme.WinForExchange" > | 65 | android:theme="@style/Theme.WinForExchange" > |
66 | </activity> | 66 | </activity> |
67 | 67 | ||
68 | <service android:name="com.gumptech.sdk.PushService" > | 68 | <service android:name="com.gumptech.sdk.PushService" > |
69 | </service> | 69 | </service> |
70 | 70 | ||
71 | <!-- facebook --> | 71 | <!-- facebook --> |
72 | <activity | 72 | <activity |
73 | android:name="com.facebook.FacebookActivity" | 73 | android:name="com.facebook.FacebookActivity" |
74 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" | 74 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" |
75 | android:label="@string/app_name" | 75 | android:label="@string/app_name" |
76 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | 76 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
77 | <!-- vk --> | 77 | <!-- vk --> |
78 | <!-- <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> --> | 78 | <!-- <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> --> |
79 | <!-- <activity --> | 79 | <!-- <activity --> |
80 | <!-- android:name="com.vk.sdk.VKServiceActivity" --> | 80 | <!-- android:name="com.vk.sdk.VKServiceActivity" --> |
81 | <!-- android:label="ServiceActivity" --> | 81 | <!-- android:label="ServiceActivity" --> |
82 | <!-- android:theme="@style/VK.Transparent" /> --> | 82 | <!-- android:theme="@style/VK.Transparent" /> --> |
83 | </application> | 83 | </application> |
84 | 84 | ||
85 | </manifest> | 85 | </manifest> |
android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
1 | package com.gumptech.loginsdk.sample; | 1 | package com.gumptech.loginsdk.sample; |
2 | 2 | ||
3 | import android.app.Activity; | 3 | import android.app.Activity; |
4 | import android.content.Context; | 4 | import android.content.Context; |
5 | import android.os.Bundle; | 5 | import android.os.Bundle; |
6 | import android.text.ClipboardManager; | 6 | import android.text.ClipboardManager; |
7 | import android.util.Log; | 7 | import android.util.Log; |
8 | import android.view.View; | 8 | import android.view.View; |
9 | import android.widget.Button; | 9 | import android.widget.Button; |
10 | import android.widget.TextView; | 10 | import android.widget.TextView; |
11 | import android.widget.Toast; | 11 | import android.widget.Toast; |
12 | 12 | ||
13 | import com.gumptech.sdk.GumpPreference; | 13 | import com.gumptech.sdk.GumpPreference; |
14 | import com.gumptech.sdk.GumpSDK; | 14 | import com.gumptech.sdk.GumpSDK; |
15 | import com.gumptech.sdk.bean.GumpUser; | 15 | import com.gumptech.sdk.bean.GumpUser; |
16 | import com.gumptech.sdk.bean.PurchaseResult; | 16 | import com.gumptech.sdk.bean.PurchaseResult; |
17 | import com.gumptech.sdk.callback.InitializeCallback; | 17 | import com.gumptech.sdk.callback.InitializeCallback; |
18 | import com.gumptech.sdk.callback.LoginStateListener; | 18 | import com.gumptech.sdk.callback.LoginStateListener; |
19 | import com.gumptech.sdk.callback.PurchaseCallback; | 19 | import com.gumptech.sdk.callback.PurchaseCallback; |
20 | import com.gumpsdk.wuruid.R; | 20 | import com.gumpsdk.wuruid.R; |
21 | 21 | ||
22 | public class MainActivity extends Activity implements PurchaseCallback{ | 22 | public class MainActivity extends Activity implements PurchaseCallback{ |
23 | 23 | ||
24 | private static final String TAG = "MainActivity"; | 24 | private static final String TAG = "MainActivity"; |
25 | 25 | ||
26 | private TextView tvVersion; | 26 | private TextView tvVersion; |
27 | private TextView userInfo; | 27 | private TextView userInfo; |
28 | 28 | ||
29 | private Button btnLoginOrLogout; | 29 | private Button btnLoginOrLogout; |
30 | 30 | ||
31 | private String appId = "10044"; | 31 | private String appId = "10022"; |
32 | private String appKey = "9c16b0e83f09596202f402261f25c8a9"; | 32 | private String appKey = "93a27b0bd99bac3e68a440b48aa421ab"; |
33 | private String sessionKey; | 33 | private String sessionKey; |
34 | 34 | ||
35 | @Override | 35 | @Override |
36 | protected void onCreate(Bundle savedInstanceState) { | 36 | protected void onCreate(Bundle savedInstanceState) { |
37 | super.onCreate(savedInstanceState); | 37 | super.onCreate(savedInstanceState); |
38 | setContentView(R.layout.activity_main); | 38 | setContentView(R.layout.activity_main); |
39 | tvVersion = (TextView) findViewById(R.id.version); | 39 | tvVersion = (TextView) findViewById(R.id.version); |
40 | userInfo = (TextView) findViewById(R.id.user_info); | 40 | userInfo = (TextView) findViewById(R.id.user_info); |
41 | btnLoginOrLogout = (Button) findViewById(R.id.login_or_logout); | 41 | btnLoginOrLogout = (Button) findViewById(R.id.login_or_logout); |
42 | btnLoginOrLogout.setOnClickListener(new View.OnClickListener() { | 42 | btnLoginOrLogout.setOnClickListener(new View.OnClickListener() { |
43 | 43 | ||
44 | @Override | 44 | @Override |
45 | public void onClick(View v) { | 45 | public void onClick(View v) { |
46 | if (btnLoginOrLogout.getTag() == null || (Integer) btnLoginOrLogout.getTag() == 0) | 46 | if (btnLoginOrLogout.getTag() == null || (Integer) btnLoginOrLogout.getTag() == 0) |
47 | GumpSDK.start(MainActivity.this); | 47 | GumpSDK.start(MainActivity.this); |
48 | else | 48 | else |
49 | GumpSDK.logout(MainActivity.this); | 49 | GumpSDK.logout(MainActivity.this); |
50 | } | 50 | } |
51 | }); | 51 | }); |
52 | findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() { | 52 | findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() { |
53 | 53 | ||
54 | @Override | 54 | @Override |
55 | public void onClick(View v) { | 55 | public void onClick(View v) { |
56 | Bundle payInfo = new Bundle(); | 56 | Bundle payInfo = new Bundle(); |
57 | payInfo.putString("nick", "thi"); | 57 | payInfo.putString("nick", "thi"); |
58 | payInfo.putString("product", "元宝"); | 58 | payInfo.putString("product", "元宝"); |
59 | payInfo.putFloat("amount", 0.1f); | 59 | payInfo.putFloat("amount", 0.1f); |
60 | payInfo.putString("extraInfo", "This is demo!"); | 60 | payInfo.putString("extraInfo", "This is demo!"); |
61 | payInfo.putString("serverId", "100"); | 61 | payInfo.putString("serverId", "100"); |
62 | payInfo.putString("sessionKey", sessionKey); | 62 | payInfo.putString("sessionKey", sessionKey); |
63 | GumpSDK.pay(MainActivity.this, payInfo, MainActivity.this); | 63 | GumpSDK.pay(MainActivity.this, payInfo, MainActivity.this); |
64 | } | 64 | } |
65 | }); | 65 | }); |
66 | /** | 66 | /** |
67 | * 设置否是开启debug模式 | 67 | * 设置否是开启debug模式 |
68 | */ | 68 | */ |
69 | GumpSDK.setDebugState(true); | 69 | GumpSDK.setDebugState(false); |
70 | /** | 70 | /** |
71 | * 设置是否启用facebook登录 | 71 | * 设置是否启用facebook登录 |
72 | */ | 72 | */ |
73 | GumpSDK.setFBEnable(false); | 73 | GumpSDK.setFBEnable(false); |
74 | /** | 74 | /** |
75 | * 设置是否启用Vk登录 | 75 | * 设置是否启用Vk登录 |
76 | */ | 76 | */ |
77 | GumpSDK.setVKEnable(false); | 77 | GumpSDK.setVKEnable(false); |
78 | /** | 78 | /** |
79 | * 设置屏幕方向 | 79 | * 设置屏幕方向 |
80 | */ | 80 | */ |
81 | GumpSDK.setScreenLandscape(true); | 81 | GumpSDK.setScreenLandscape(true); |
82 | /** | 82 | /** |
83 | * 设置用户登录状态监听器 | 83 | * 设置用户登录状态监听器 |
84 | */ | 84 | */ |
85 | GumpSDK.setUserStateListener(new LoginStateListener() { | 85 | GumpSDK.setUserStateListener(new LoginStateListener() { |
86 | @Override | 86 | @Override |
87 | public void onLoginSuccess(GumpUser user) { | 87 | public void onLoginSuccess(GumpUser user) { |
88 | ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); | 88 | ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); |
89 | cm.setText(user.getSessionKey()); | 89 | cm.setText(user.getSessionKey()); |
90 | sessionKey = user.getSessionKey(); | 90 | sessionKey = user.getSessionKey(); |
91 | String userType=null; | 91 | String userType=null; |
92 | switch(user.getAccountType()){ | 92 | switch(user.getAccountType()){ |
93 | case GumpPreference.ACCOUNT_TYPE_FB: | 93 | case GumpPreference.ACCOUNT_TYPE_FB: |
94 | userType = "Facebook登录"; | 94 | userType = "Facebook登录"; |
95 | break; | 95 | break; |
96 | case GumpPreference.ACCOUNT_TYPE_QUICK_REG: | 96 | case GumpPreference.ACCOUNT_TYPE_QUICK_REG: |
97 | userType = "快速登录"; | 97 | userType = "快速登录"; |
98 | break; | 98 | break; |
99 | case GumpPreference.ACCOUNT_TYPE_REG: | 99 | case GumpPreference.ACCOUNT_TYPE_REG: |
100 | userType = "gump注册用户"; | 100 | userType = "gump注册用户"; |
101 | break; | 101 | break; |
102 | case GumpPreference.ACCOUNT_TYPE_VK: | 102 | case GumpPreference.ACCOUNT_TYPE_VK: |
103 | userType = "vk登录"; | 103 | userType = "vk登录"; |
104 | break; | 104 | break; |
105 | } | 105 | } |
106 | userInfo.setText(" Userid:" + user.getUid() + "\n accountType:(" + user.getAccountType()+") "+userType + "\n sessionKey:" + user.getSessionKey()); | 106 | userInfo.setText(" Userid:" + user.getUid() + "\n accountType:(" + user.getAccountType()+") "+userType + "\n sessionKey:" + user.getSessionKey()); |
107 | btnLoginOrLogout.setText("Logout"); | 107 | btnLoginOrLogout.setText("Logout"); |
108 | btnLoginOrLogout.setTag(1); | 108 | btnLoginOrLogout.setTag(1); |
109 | } | 109 | } |
110 | 110 | ||
111 | @Override | 111 | @Override |
112 | public void onLoginFailed(int code, String msg) { | 112 | public void onLoginFailed(int code, String msg) { |
113 | userInfo.setText(msg); | 113 | userInfo.setText(msg); |
114 | Toast.makeText(MainActivity.this, "Login failed:code="+code+",message="+msg, Toast.LENGTH_SHORT).show(); | 114 | Toast.makeText(MainActivity.this, "Login failed:code="+code+",message="+msg, Toast.LENGTH_SHORT).show(); |
115 | } | 115 | } |
116 | 116 | ||
117 | @Override | 117 | @Override |
118 | public void onLoginCanceled() { | 118 | public void onLoginCanceled() { |
119 | Toast.makeText(MainActivity.this, "operate be canceled", Toast.LENGTH_SHORT).show(); | 119 | Toast.makeText(MainActivity.this, "operate be canceled", Toast.LENGTH_SHORT).show(); |
120 | } | 120 | } |
121 | 121 | ||
122 | @Override | 122 | @Override |
123 | public void onLogout() { | 123 | public void onLogout() { |
124 | btnLoginOrLogout.setText("Login"); | 124 | btnLoginOrLogout.setText("Login"); |
125 | btnLoginOrLogout.setTag(0); | 125 | btnLoginOrLogout.setTag(0); |
126 | userInfo.setText("User is logout"); | 126 | userInfo.setText("User is logout"); |
127 | } | 127 | } |
128 | }); | 128 | }); |
129 | /** | 129 | /** |
130 | * 初始化sdk | 130 | * 初始化sdk |
131 | */ | 131 | */ |
132 | GumpSDK.init(getApplicationContext(), appId, appKey, "1000", new InitializeCallback() { | 132 | GumpSDK.init(getApplicationContext(), appId, appKey, "1000", new InitializeCallback() { |
133 | @Override | 133 | @Override |
134 | public void initComplete(int result) { | 134 | public void initComplete(int result) { |
135 | if (result == GumpSDK.CODE.OK) { | 135 | if (result == GumpSDK.CODE.OK) { |
136 | btnLoginOrLogout.setEnabled(true); | 136 | btnLoginOrLogout.setEnabled(true); |
137 | } | 137 | } |
138 | } | 138 | } |
139 | }); | 139 | }); |
140 | 140 | ||
141 | 141 | ||
142 | tvVersion.setText("SDK Version:" + GumpSDK.getVersion()); | 142 | tvVersion.setText("SDK Version:" + GumpSDK.getVersion()); |
143 | } | 143 | } |
144 | 144 | ||
145 | @Override | 145 | @Override |
146 | public void onPurchaseCompleted(PurchaseResult result) { | 146 | public void onPurchaseCompleted(PurchaseResult result) { |
147 | Log.i(TAG,"purchase completed"); | 147 | Log.i(TAG,"purchase completed"); |
148 | } | 148 | } |
149 | 149 | ||
150 | @Override | 150 | @Override |
151 | public void onPurchaseError(int code, String msg) { | 151 | public void onPurchaseError(int code, String msg) { |
152 | Log.i(TAG,"purchase error"); | 152 | Log.i(TAG,"purchase error"); |
153 | } | 153 | } |
154 | 154 | ||
155 | @Override | 155 | @Override |
156 | public void onPurchaseCanceled() { | 156 | public void onPurchaseCanceled() { |
157 | Log.i(TAG,"purchase canceled"); | 157 | Log.i(TAG,"purchase canceled"); |
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 |