Commit f633382ee8e0d18c952d38b22bfc5796882c21fd
1 parent
af9c440cf4
Exists in
master
version3.3.7
升级bluePay的SDK,增加line支付
Showing 52 changed files with 1039 additions and 240 deletions Inline Diff
- android/GameSDKRelease/libs/BluePay_3.4.0.1209_pro.jar
- android/GameSDKRelease/libs/BluePay_3.6.2.0414pro.jar
- android/GameSDKRelease/libs/GameSDK_v3.3.6_proguard.jar
- android/GameSDKRelease/libs/GameSDK_v3.3.7_proguard.jar
- android/GameSDKRelease/res/anim/loading.xml
- android/GameSDKRelease/res/drawable-hdpi/blue_arrow_back.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_line.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_onetwocall.jpg
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_telenor.png
- android/GameSDKRelease/res/drawable-hdpi/bluep_logo_telkomsel.png
- android/GameSDKRelease/res/drawable-hdpi/btn_back.png
- android/GameSDKRelease/res/drawable-hdpi/btn_back_pressed.png
- android/GameSDKRelease/res/drawable-hdpi/gump_loading.png
- android/GameSDKRelease/res/drawable-hdpi/loading.png
- android/GameSDKRelease/res/drawable-hdpi/refresh.png
- android/GameSDKRelease/res/drawable-hdpi/refresh_down.png
- android/GameSDKRelease/res/drawable-ldpi/blue_arrow_back.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg.9.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg_hl.9.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg_selector.xml
- android/GameSDKRelease/res/drawable-ldpi/bluep_icon_one_calltip.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_icon_true_tip.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_input_bg.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_12call.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_happy.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_mobifone.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_truemoney.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_unipin.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_viettel.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_vinaphone.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_logo_vtc.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_payarrow.jpg
- android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_high.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_normal.png
- android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_selector.xml
- android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_bg.9.png
- android/GameSDKRelease/res/drawable-ldpi/bluepay_logo.png
- android/GameSDKRelease/res/drawable-xhdpi/gump_loading.png
- android/GameSDKRelease/res/drawable-xhdpi/loading.png
- android/GameSDKRelease/res/drawable/icon.png
- android/GameSDKRelease/res/drawable/loading_progress.xml
- android/GameSDKRelease/res/layout/activity_pay_ui.xml
- android/GameSDKRelease/res/layout/bluep_by_offline.xml
- android/GameSDKRelease/res/layout/bluep_by_otc_landscape.xml
- android/GameSDKRelease/res/layout/bluep_by_otc_portrait.xml
- android/GameSDKRelease/res/layout/bluep_smslist.xml
- android/GameSDKRelease/res/layout/fragment_mod_password.xml
- android/GameSDKRelease/res/layout/item_drop_down.xml
- android/GameSDKRelease/res/layout/view_loading.xml
- android/GameSDKSample/AndroidManifest.xml
- android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
- doc/AndroidDocument.md
android/GameSDKRelease/libs/BluePay_3.4.0.1209_pro.jar
No preview for this file type
android/GameSDKRelease/libs/BluePay_3.6.2.0414pro.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.3.6_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.3.7_proguard.jar
No preview for this file type
android/GameSDKRelease/res/anim/loading.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <rotate xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:repeatMode="restart" | ||
4 | android:fromDegrees="0" | ||
5 | android:toDegrees="+360" | ||
6 | android:pivotX="50%" | ||
7 | android:pivotY="50%" | ||
8 | android:interpolator="@android:anim/accelerate_interpolator" | ||
9 | android:duration="1500" | ||
10 | android:repeatCount="-1" | ||
11 | |||
12 | > | ||
13 | |||
14 | |||
15 | </rotate> | ||
16 |
android/GameSDKRelease/res/drawable-hdpi/blue_arrow_back.png
955 Bytes
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_line.png
44.2 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_onetwocall.jpg
7.31 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_telenor.png
17.8 KB
android/GameSDKRelease/res/drawable-hdpi/bluep_logo_telkomsel.png
18.7 KB
android/GameSDKRelease/res/drawable-hdpi/btn_back.png
3.01 KB
android/GameSDKRelease/res/drawable-hdpi/btn_back_pressed.png
2.87 KB
android/GameSDKRelease/res/drawable-hdpi/gump_loading.png
7.04 KB
android/GameSDKRelease/res/drawable-hdpi/loading.png
android/GameSDKRelease/res/drawable-hdpi/refresh.png
5.41 KB
android/GameSDKRelease/res/drawable-hdpi/refresh_down.png
3.36 KB
android/GameSDKRelease/res/drawable-ldpi/blue_arrow_back.png
955 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg.9.png
258 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg_hl.9.png
269 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_btnbg_selector.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <selector | ||
3 | xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | <item android:state_focused="true" android:drawable="@drawable/bluep_btnbg" /> | ||
5 | <item android:state_pressed="true" android:drawable="@drawable/bluep_btnbg_hl" /> | ||
6 | <item android:state_pressed="false" android:drawable="@drawable/bluep_btnbg" /> | ||
7 | </selector> | ||
8 |
android/GameSDKRelease/res/drawable-ldpi/bluep_icon_one_calltip.jpg
44.6 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_icon_true_tip.jpg
57.4 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_input_bg.png
380 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_12call.jpg
7.31 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_happy.jpg
17.7 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_mobifone.jpg
24.2 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_truemoney.png
4.96 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_unipin.png
11.2 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_viettel.jpg
23.3 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_vinaphone.jpg
25.4 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_logo_vtc.jpg
75.1 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_payarrow.jpg
11.5 KB
android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_high.png
715 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_normal.png
672 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_arrow_selector.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <selector | ||
3 | xmlns:android="http://schemas.android.com/apk/res/android"> | ||
4 | <item android:state_focused="true" android:drawable="@drawable/bluep_paylist_arrow_normal" /> | ||
5 | <item android:state_pressed="true" android:drawable="@drawable/bluep_paylist_arrow_high" /> | ||
6 | <item android:state_pressed="false" android:drawable="@drawable/bluep_paylist_arrow_normal" /> | ||
7 | </selector> | ||
8 |
android/GameSDKRelease/res/drawable-ldpi/bluep_paylist_bg.9.png
248 Bytes
android/GameSDKRelease/res/drawable-ldpi/bluepay_logo.png
13.4 KB
android/GameSDKRelease/res/drawable-xhdpi/gump_loading.png
11.2 KB
android/GameSDKRelease/res/drawable-xhdpi/loading.png
11.2 KB
android/GameSDKRelease/res/drawable/icon.png
20.8 KB
android/GameSDKRelease/res/drawable/loading_progress.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <rotate xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <rotate xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:drawable="@drawable/loading" | 3 | android:drawable="@drawable/gump_loading" |
4 | android:pivotX="50%" | 4 | android:pivotX="50%" |
5 | android:pivotY="50%" | 5 | android:pivotY="50%" |
6 | android:fromDegrees="0" | 6 | android:fromDegrees="0" |
7 | android:toDegrees="360" /> | 7 | android:toDegrees="360" /> |
8 | 8 | ||
9 | 9 |
android/GameSDKRelease/res/layout/activity_pay_ui.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="match_parent" | ||
4 | android:layout_height="match_parent" | ||
5 | android:orientation="vertical" > | ||
6 | |||
7 | <RelativeLayout | ||
8 | android:layout_width="match_parent" | ||
9 | android:layout_height="45dp" | ||
10 | android:background="#2DD1E2" > | ||
11 | |||
12 | <Button | ||
13 | android:id="@+id/btn_back" | ||
14 | android:layout_width="wrap_content" | ||
15 | android:layout_height="wrap_content" | ||
16 | android:layout_centerVertical="true" | ||
17 | android:text="Cancel" | ||
18 | android:background="@null" | ||
19 | android:textColor="@android:color/white" | ||
20 | android:onClick="backto" /> | ||
21 | |||
22 | <TextView | ||
23 | android:id="@+id/tv_payment" | ||
24 | android:layout_width="wrap_content" | ||
25 | android:layout_height="wrap_content" | ||
26 | android:layout_centerHorizontal="true" | ||
27 | android:layout_centerVertical="true" | ||
28 | android:text="BluePay" | ||
29 | android:textColor="@android:color/white" | ||
30 | android:textSize="25sp" /> | ||
31 | |||
32 | <Button | ||
33 | android:id="@+id/btn_complete" | ||
34 | android:layout_width="25dp" | ||
35 | android:layout_height="25dp" | ||
36 | android:layout_alignParentRight="true" | ||
37 | android:layout_centerVertical="true" | ||
38 | android:layout_marginRight="10dp" | ||
39 | android:background="@drawable/refresh" | ||
40 | android:onClick="complete" | ||
41 | android:textSize="15sp" | ||
42 | /> | ||
43 | |||
44 | </RelativeLayout> | ||
45 | <FrameLayout | ||
46 | android:layout_gravity="center" | ||
47 | android:layout_width="match_parent" | ||
48 | android:layout_height="match_parent"> | ||
49 | <TextView | ||
50 | android:layout_gravity="center" | ||
51 | android:layout_width="wrap_content" | ||
52 | android:layout_height="wrap_content" | ||
53 | android:id="@+id/tv_error"/> | ||
54 | <WebView | ||
55 | android:id="@+id/wb_content" | ||
56 | android:layout_width="match_parent" | ||
57 | android:layout_height="match_parent" /> | ||
58 | </FrameLayout> | ||
59 | |||
60 | </LinearLayout> |
android/GameSDKRelease/res/layout/bluep_by_offline.xml
File was created | 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 | android:orientation="vertical" > | ||
6 | |||
7 | <EditText | ||
8 | android:id="@+id/et_msisdn" | ||
9 | android:layout_width="match_parent" | ||
10 | android:layout_height="wrap_content" | ||
11 | android:ems="10" | ||
12 | android:hint="Silahkan masukan nomor telepon anda" > | ||
13 | |||
14 | <requestFocus android:layout_width="wrap_content" /> | ||
15 | </EditText> | ||
16 | |||
17 | |||
18 | <RadioGroup | ||
19 | android:id="@+id/rg_pay_channel" | ||
20 | android:layout_width="wrap_content" | ||
21 | android:layout_height="wrap_content" | ||
22 | android:layout_below="@+id/et_msisdn" | ||
23 | android:layout_centerHorizontal="true" | ||
24 | android:layout_marginTop="17dp" | ||
25 | android:orientation="horizontal" > | ||
26 | |||
27 | <RadioButton | ||
28 | android:id="@+id/rbtn_otc" | ||
29 | android:layout_width="wrap_content" | ||
30 | android:layout_height="wrap_content" | ||
31 | android:layout_alignParentRight="true" | ||
32 | android:layout_gravity="center_vertical" | ||
33 | android:layout_marginRight="30dp" | ||
34 | android:text="OTC" /> | ||
35 | |||
36 | <RadioButton | ||
37 | android:id="@+id/rbtn_atm" | ||
38 | android:layout_width="wrap_content" | ||
39 | android:layout_height="wrap_content" | ||
40 | android:layout_gravity="center_vertical" | ||
41 | android:text="ATM" /> | ||
42 | </RadioGroup> | ||
43 | |||
44 | <Spinner | ||
45 | android:id="@+id/sp_pay_channel" | ||
46 | android:layout_width="wrap_content" | ||
47 | android:layout_height="wrap_content" | ||
48 | android:layout_below="@+id/rg_pay_channel" | ||
49 | android:spinnerMode="dropdown" | ||
50 | android:layout_centerHorizontal="true" | ||
51 | /> | ||
52 | <TextView | ||
53 | android:id="@+id/tv_tips" | ||
54 | android:layout_width="wrap_content" | ||
55 | android:layout_height="wrap_content" | ||
56 | android:layout_below="@id/sp_pay_channel" | ||
57 | android:layout_alignParentLeft="true" | ||
58 | android:layout_margin="10dp" | ||
59 | android:textColor="#FF0000" | ||
60 | android:text="ssssssss" /> | ||
61 | |||
62 | |||
63 | </RelativeLayout> |
android/GameSDKRelease/res/layout/bluep_by_otc_landscape.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:id="@+id/scrollView1" | 3 | android:id="@+id/scrollView1" |
4 | android:layout_width="350sp" | 4 | android:layout_width="350sp" |
5 | android:layout_height="wrap_content" | 5 | android:layout_height="wrap_content" |
6 | android:layout_gravity="center" | ||
7 | android:layout_margin="10dp" | ||
6 | android:background="#ffffffff" > | 8 | android:background="#ffffffff" > |
7 | 9 | ||
8 | <LinearLayout | 10 | <LinearLayout |
9 | android:layout_width="fill_parent" | 11 | android:id="@+id/payByPortrait" |
10 | android:layout_height="380sp" | 12 | android:layout_width="fill_parent" |
11 | android:gravity="center" | 13 | android:layout_height="380sp" |
12 | android:id="@+id/payByPortrait" | 14 | android:layout_margin="10dp" |
13 | android:orientation="vertical" > | 15 | android:orientation="vertical" > |
14 | 16 | ||
15 | <RelativeLayout | 17 | <RelativeLayout |
16 | android:layout_width="fill_parent" | 18 | android:layout_width="fill_parent" |
17 | android:layout_height="50sp" > | 19 | android:layout_height="50sp" > |
18 | 20 | ||
19 | <ImageView | 21 | <ImageView |
20 | android:id="@+id/headerLogo" | 22 | android:id="@+id/headerLogo" |
21 | android:layout_width="200sp" | 23 | android:layout_width="200sp" |
22 | android:layout_height="wrap_content" | 24 | android:layout_height="wrap_content" |
23 | android:layout_alignParentLeft ="true" | 25 | android:layout_alignParentLeft="true" |
24 | android:layout_marginLeft="5sp" | 26 | android:layout_centerVertical="true" |
25 | android:layout_marginTop="5sp" | 27 | android:layout_marginLeft="5sp" |
26 | android:layout_centerVertical="true" | 28 | android:layout_marginTop="5sp" |
27 | android:background="@drawable/bluepay_logo" /> | 29 | android:background="@drawable/bluepay_logo" /> |
28 | 30 | </RelativeLayout> | |
29 | </RelativeLayout> | 31 | |
30 | |||
31 | <RelativeLayout | 32 | <RelativeLayout |
32 | android:layout_width="wrap_content" | 33 | android:layout_width="wrap_content" |
33 | android:layout_weight="0.6" | 34 | android:layout_height="wrap_content" |
34 | android:paddingTop="5sp" | 35 | android:layout_weight="0.6" |
35 | android:layout_height="wrap_content"> | 36 | android:paddingTop="5sp" > |
36 | 37 | ||
37 | |||
38 | <ImageView | 38 | <ImageView |
39 | android:id="@+id/tipIv" | 39 | android:id="@+id/tipIv" |
40 | android:layout_width="200sp" | 40 | android:layout_width="200sp" |
41 | android:layout_height="100sp" | 41 | android:layout_height="100sp" |
42 | android:layout_centerHorizontal="true" | 42 | android:layout_centerHorizontal="true" |
43 | android:src="@drawable/bluep_logo_onetwocall"/> | 43 | android:src="@drawable/bluep_logo_12call" /> |
44 | 44 | ||
45 | <LinearLayout | 45 | <LinearLayout |
46 | android:layout_width="wrap_content" | 46 | android:id="@+id/linearLayout1" |
47 | android:layout_height="wrap_content" | 47 | android:layout_width="wrap_content" |
48 | android:layout_below="@id/tipIv" | 48 | android:layout_height="wrap_content" |
49 | android:layout_centerHorizontal="true" | 49 | android:layout_below="@id/tipIv" |
50 | android:layout_marginTop="5sp" | 50 | android:layout_centerHorizontal="true" |
51 | android:orientation="vertical" > | 51 | android:layout_marginTop="5sp" |
52 | 52 | android:orientation="vertical" > | |
53 | <TextView | 53 | |
54 | android:id="@+id/textView1" | 54 | <!-- |
55 | android:layout_width="fill_parent" | 55 | android:inputType="number" |
56 | android:layout_height="wrap_content" | ||
57 | android:gravity="center_horizontal" | ||
58 | android:singleLine="true" | ||
59 | android:text="Please Input your Card No." | ||
60 | android:textSize="20px" | ||
61 | android:visibility="gone" /> | ||
62 | |||
63 | <EditText | ||
64 | android:id="@+id/payEdit" | ||
65 | android:layout_width="240sp" | ||
66 | android:layout_height="wrap_content" | ||
67 | android:layout_gravity="center" | ||
68 | android:layout_weight="1" | ||
69 | android:background="@drawable/bluep_input_bg" | ||
70 | android:ems="10" | ||
71 | android:gravity="left" | ||
72 | android:hint="Please Input your Card No." | ||
73 | android:inputType="number" | ||
74 | android:numeric="integer" | 56 | android:numeric="integer" |
75 | android:focusableInTouchMode="true" | 57 | --> |
76 | android:padding="10sp" | 58 | |
77 | android:textColor="#ff000000" | 59 | <TableLayout |
78 | android:textSize="18sp" > | 60 | android:layout_width="wrap_content" |
79 | 61 | android:layout_height="wrap_content" > | |
80 | </EditText> | 62 | |
81 | 63 | <TableRow | |
82 | <TextView | 64 | android:layout_width="wrap_content" |
83 | android:id="@+id/payTip" | 65 | android:layout_height="wrap_content" > |
84 | android:layout_width="wrap_content" | 66 | |
85 | android:layout_height="wrap_content" | 67 | <TextView |
86 | android:singleLine="true" | 68 | android:id="@+id/Bluep_payCardNoTip" |
87 | android:text="" | 69 | android:layout_width="fill_parent" |
88 | android:textColor="#ffff0000" | 70 | android:layout_height="40sp" |
89 | android:textSize="14px" | 71 | android:layout_marginRight="5sp" |
90 | android:layout_weight="0.4" | 72 | android:gravity="center_vertical" |
91 | android:visibility="gone" /> | 73 | android:singleLine="true" |
92 | </LinearLayout> | 74 | android:text="Card No. :" |
93 | 75 | android:textSize="16sp" | |
76 | android:visibility="visible" /> | ||
77 | |||
78 | <TableRow | ||
79 | android:layout_width="wrap_content" | ||
80 | android:layout_height="wrap_content" > | ||
81 | |||
82 | <EditText | ||
83 | android:id="@+id/Bluep_paySerialNoEdit" | ||
84 | android:layout_width="240sp" | ||
85 | android:layout_height="wrap_content" | ||
86 | android:layout_gravity="center" | ||
87 | android:layout_weight="1" | ||
88 | android:background="@drawable/bluep_input_bg" | ||
89 | android:ems="10" | ||
90 | android:focusableInTouchMode="true" | ||
91 | android:gravity="left" | ||
92 | android:hint="Please Input your serial No." | ||
93 | android:padding="10sp" | ||
94 | android:singleLine="true" | ||
95 | android:textColor="#ff000000" | ||
96 | android:textSize="18sp" > | ||
97 | </EditText> | ||
98 | |||
99 | <LinearLayout | ||
100 | android:id="@+id/rl_serialNo_for_unipin" | ||
101 | android:layout_width="240sp" | ||
102 | android:layout_height="wrap_content" | ||
103 | android:layout_gravity="center" | ||
104 | android:layout_weight="1" | ||
105 | android:visibility="gone" > | ||
106 | |||
107 | <EditText | ||
108 | android:inputType="number" | ||
109 | android:id="@+id/et_Seral_first" | ||
110 | android:layout_width="70sp" | ||
111 | android:layout_height="wrap_content" | ||
112 | android:layout_gravity="center" | ||
113 | android:layout_weight="999" | ||
114 | android:background="@drawable/bluep_input_bg" | ||
115 | android:ems="10" | ||
116 | android:focusableInTouchMode="true" | ||
117 | android:gravity="center" | ||
118 | android:hint="0000" | ||
119 | android:singleLine="true" | ||
120 | android:textColor="#ff000000" | ||
121 | android:textSize="18sp" > | ||
122 | </EditText> | ||
123 | |||
124 | <TextView | ||
125 | android:layout_width="10sp" | ||
126 | android:layout_height="match_parent" | ||
127 | android:gravity="center" | ||
128 | android:text=" - " | ||
129 | android:textColor="#ff000000" | ||
130 | android:textSize="18sp" /> | ||
131 | |||
132 | <EditText | ||
133 | android:id="@+id/et_Seral_second" | ||
134 | android:layout_width="70sp" | ||
135 | android:layout_height="wrap_content" | ||
136 | android:layout_gravity="center" | ||
137 | android:layout_weight="999" | ||
138 | android:background="@drawable/bluep_input_bg" | ||
139 | android:ems="10" | ||
140 | android:focusableInTouchMode="true" | ||
141 | android:gravity="center" | ||
142 | android:inputType="number" | ||
143 | android:hint="1111" | ||
144 | android:singleLine="true" | ||
145 | android:textColor="#ff000000" | ||
146 | android:textSize="18sp" > | ||
147 | </EditText> | ||
148 | |||
149 | <TextView | ||
150 | android:layout_width="10sp" | ||
151 | android:layout_height="match_parent" | ||
152 | android:gravity="center" | ||
153 | android:text=" - " | ||
154 | android:textColor="#ff000000" | ||
155 | android:textSize="18sp" /> | ||
156 | |||
157 | <EditText | ||
158 | android:id="@+id/et_Seral_third" | ||
159 | android:layout_width="70sp" | ||
160 | android:layout_height="wrap_content" | ||
161 | android:layout_gravity="center" | ||
162 | android:layout_weight="999" | ||
163 | android:inputType="number" | ||
164 | android:background="@drawable/bluep_input_bg" | ||
165 | android:ems="10" | ||
166 | android:focusableInTouchMode="true" | ||
167 | android:gravity="center" | ||
168 | android:hint="2222" | ||
169 | android:singleLine="true" | ||
170 | android:textColor="#ff000000" | ||
171 | android:textSize="18sp" > | ||
172 | </EditText> | ||
173 | |||
174 | <TextView | ||
175 | android:layout_width="10sp" | ||
176 | android:layout_height="match_parent" | ||
177 | android:gravity="center" | ||
178 | android:text=" - " | ||
179 | android:textColor="#ff000000" | ||
180 | android:textSize="18sp" /> | ||
181 | |||
182 | <EditText | ||
183 | android:id="@+id/et_Seral_fourth" | ||
184 | android:layout_width="70sp" | ||
185 | android:layout_height="wrap_content" | ||
186 | android:layout_gravity="center" | ||
187 | android:layout_weight="999" | ||
188 | android:inputType="number" | ||
189 | android:background="@drawable/bluep_input_bg" | ||
190 | android:ems="10" | ||
191 | android:focusableInTouchMode="true" | ||
192 | android:gravity="center" | ||
193 | android:hint="3333" | ||
194 | android:singleLine="true" | ||
195 | android:textColor="#ff000000" | ||
196 | android:textSize="18sp" > | ||
197 | </EditText> | ||
198 | </LinearLayout> | ||
199 | </TableRow> | ||
200 | </TableRow> | ||
201 | |||
202 | <TableRow | ||
203 | android:layout_width="wrap_content" | ||
204 | android:layout_height="wrap_content" | ||
205 | android:layout_marginTop="5sp" > | ||
206 | |||
207 | <TextView | ||
208 | android:id="@+id/Bluep_paySerialNoTip" | ||
209 | android:layout_width="fill_parent" | ||
210 | android:layout_height="fill_parent" | ||
211 | android:layout_marginRight="5sp" | ||
212 | android:gravity="center_vertical" | ||
213 | android:singleLine="true" | ||
214 | android:text="Serial No. :" | ||
215 | android:textSize="16sp" | ||
216 | android:visibility="visible" /> | ||
217 | |||
218 | <TableRow | ||
219 | android:layout_width="wrap_content" | ||
220 | android:layout_height="wrap_content" > | ||
221 | |||
222 | <EditText | ||
223 | android:id="@+id/payEdit" | ||
224 | android:layout_width="240sp" | ||
225 | android:layout_height="wrap_content" | ||
226 | android:layout_gravity="center" | ||
227 | android:layout_weight="1" | ||
228 | android:background="@drawable/bluep_input_bg" | ||
229 | android:ems="10" | ||
230 | android:focusableInTouchMode="true" | ||
231 | android:gravity="left" | ||
232 | android:hint="Please Input your Card No." | ||
233 | android:padding="10sp" | ||
234 | android:textColor="#ff000000" | ||
235 | android:textSize="18sp" > | ||
236 | </EditText> | ||
237 | |||
238 | <LinearLayout | ||
239 | android:id="@+id/rl_CardNo_for_unipin" | ||
240 | android:layout_width="240sp" | ||
241 | android:layout_height="wrap_content" | ||
242 | android:layout_gravity="center" | ||
243 | android:layout_marginTop="3sp" | ||
244 | android:layout_weight="1" | ||
245 | android:focusableInTouchMode="true" | ||
246 | android:gravity="left" | ||
247 | android:orientation="horizontal" | ||
248 | android:visibility="gone" > | ||
249 | |||
250 | <TextView | ||
251 | android:layout_width="60sp" | ||
252 | android:layout_height="match_parent" | ||
253 | android:gravity="center_vertical" | ||
254 | android:text="IDMB - " | ||
255 | android:textColor="#ff000000" | ||
256 | android:textSize="18sp" /> | ||
257 | |||
258 | <EditText | ||
259 | android:id="@+id/et_unipin_first_input" | ||
260 | android:layout_width="30sp" | ||
261 | android:layout_height="match_parent" | ||
262 | android:background="@drawable/bluep_input_bg" | ||
263 | android:ems="10" | ||
264 | android:inputType="number" | ||
265 | android:focusableInTouchMode="true" | ||
266 | android:gravity="center" | ||
267 | android:hint="1" | ||
268 | android:singleLine="true" | ||
269 | android:textColor="#ff000000" | ||
270 | android:textSize="18sp" > | ||
271 | </EditText> | ||
272 | |||
273 | <TextView | ||
274 | android:layout_width="40sp" | ||
275 | android:layout_height="match_parent" | ||
276 | android:gravity="center" | ||
277 | android:text="- S -" | ||
278 | android:textColor="#ff000000" | ||
279 | android:textSize="18sp" /> | ||
280 | |||
281 | <EditText | ||
282 | android:id="@+id/et_unipin_last_input" | ||
283 | android:layout_width="match_parent" | ||
284 | android:layout_height="match_parent" | ||
285 | android:background="@drawable/bluep_input_bg" | ||
286 | android:ems="10" | ||
287 | android:focusableInTouchMode="true" | ||
288 | android:gravity="center" | ||
289 | android:inputType="number" | ||
290 | android:hint="00000000" | ||
291 | android:singleLine="true" | ||
292 | android:textColor="#ff000000" | ||
293 | android:textSize="18sp" > | ||
294 | </EditText> | ||
295 | </LinearLayout> | ||
296 | </TableRow> | ||
297 | </TableRow> | ||
298 | </TableLayout> | ||
299 | |||
300 | <TextView | ||
301 | android:id="@+id/payTip" | ||
302 | android:layout_width="wrap_content" | ||
303 | android:layout_height="wrap_content" | ||
304 | android:layout_marginTop="2sp" | ||
305 | android:layout_weight="0.4" | ||
306 | android:singleLine="true" | ||
307 | android:text="" | ||
308 | android:textColor="#ffff0000" | ||
309 | android:textSize="20sp" | ||
310 | android:visibility="gone" /> | ||
311 | </LinearLayout> | ||
94 | </RelativeLayout> | 312 | </RelativeLayout> |
95 | 313 | ||
96 | <RelativeLayout | 314 | <RelativeLayout |
97 | android:layout_width="match_parent" | 315 | android:layout_width="match_parent" |
98 | android:layout_marginTop="5sp" | 316 | android:layout_height="40sp" |
99 | android:layout_weight="0.6" | 317 | android:layout_marginTop="5sp" |
100 | android:layout_height="40sp" > | 318 | android:layout_weight="0.6" > |
101 | 319 | ||
102 | <Button android:id="@+id/paybyYes" | 320 | <Button |
103 | android:layout_width="wrap_content" | 321 | android:id="@+id/paybyYes" |
104 | android:layout_height="wrap_content" | 322 | android:layout_width="wrap_content" |
105 | android:layout_marginLeft="65sp" | 323 | android:layout_height="wrap_content" |
106 | android:layout_alignParentLeft="true" | 324 | android:layout_alignParentLeft="true" |
107 | android:layout_centerVertical="true" | 325 | android:layout_centerVertical="true" |
108 | android:text="Ok" | 326 | android:layout_marginLeft="65sp" |
109 | android:textColor="#ffffffff" | 327 | android:background="@drawable/bluep_btnbg_selector" |
110 | android:background="@drawable/bluep_btnbg_selector" /> | 328 | android:text="Ok" |
111 | 329 | android:textColor="#ffffffff" /> | |
112 | <Button | 330 | |
113 | android:id="@+id/paybyNo" | 331 | <Button |
114 | android:layout_width="wrap_content" | 332 | android:id="@+id/paybyNo" |
115 | android:layout_height="wrap_content" | 333 | android:layout_width="wrap_content" |
116 | android:layout_marginRight="65sp" | 334 | android:layout_height="wrap_content" |
117 | android:layout_alignParentRight="true" | 335 | android:layout_alignParentRight="true" |
118 | android:layout_centerVertical="true" | 336 | android:layout_centerVertical="true" |
119 | android:text="Cancel" | 337 | android:layout_marginRight="65sp" |
120 | android:textColor="#ffffffff" | 338 | android:background="@drawable/bluep_btnbg_selector" |
121 | android:background="@drawable/bluep_btnbg_selector" /> | 339 | android:text="Cancel" |
122 | 340 | android:textColor="#ffffffff" /> | |
123 | <!-- <ImageButton | 341 | |
342 | <!-- | ||
343 | <ImageButton | ||
124 | android:id="@+id/paybyYes" | 344 | android:id="@+id/paybyYes" |
125 | android:layout_width="wrap_content" | 345 | android:layout_width="wrap_content" |
126 | android:layout_height="wrap_content" | 346 | android:layout_height="wrap_content" |
127 | android:paddingLeft="5sp" | 347 | android:paddingLeft="5sp" |
128 | android:layout_alignParentLeft="true" | 348 | android:layout_alignParentLeft="true" |
129 | android:layout_centerVertical="true" | 349 | android:layout_centerVertical="true" |
130 | android:src="@drawable/g_yes_selector" | 350 | android:src="@drawable/g_yes_selector" |
131 | android:background="@null" /> | 351 | android:background="@null" /> |
132 | 352 | ||
133 | <ImageButton | 353 | <ImageButton |
134 | android:id="@+id/paybyNo" | 354 | android:id="@+id/paybyNo" |
135 | android:layout_width="wrap_content" | 355 | android:layout_width="wrap_content" |
136 | android:layout_height="wrap_content" | 356 | android:layout_height="wrap_content" |
137 | android:paddingRight="5sp" | 357 | android:paddingRight="5sp" |
138 | android:layout_alignParentRight="true" | 358 | android:layout_alignParentRight="true" |
139 | android:layout_centerVertical="true" | 359 | android:layout_centerVertical="true" |
140 | android:src="@drawable/g_no_selector" | 360 | android:src="@drawable/g_no_selector" |
141 | android:background="@null" /> --> | 361 | android:background="@null" /> |
142 | 362 | --> | |
143 | 363 | ||
144 | </RelativeLayout> | 364 | </RelativeLayout> |
145 | 365 | ||
146 | </LinearLayout> | 366 | <TextView |
367 | android:id="@+id/txtView_line" |
android/GameSDKRelease/res/layout/bluep_by_otc_portrait.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:id="@+id/scrollView1" | 3 | android:id="@+id/scrollView1" |
4 | android:layout_width="300sp" | 4 | android:layout_width="300sp" |
5 | android:layout_height="wrap_content" | 5 | android:layout_height="wrap_content" |
6 | android:layout_gravity="center" | ||
7 | android:layout_margin="10dp" | ||
6 | android:background="#ffffffff" > | 8 | android:background="#ffffffff" > |
7 | 9 | ||
8 | <LinearLayout | 10 | <LinearLayout |
9 | android:layout_width="fill_parent" | 11 | android:id="@+id/payByPortrait" |
10 | android:layout_height="400sp" | 12 | android:layout_width="fill_parent" |
11 | android:gravity="center" | 13 | android:layout_height="400sp" |
12 | android:id="@+id/payByPortrait" | 14 | android:layout_gravity="center" |
13 | android:orientation="vertical" > | 15 | android:layout_margin="10dp" |
14 | 16 | android:gravity="center" | |
17 | android:orientation="vertical" > | ||
18 | |||
15 | <RelativeLayout | 19 | <RelativeLayout |
16 | android:layout_width="fill_parent" | 20 | android:layout_width="fill_parent" |
17 | android:layout_height="50sp" > | 21 | android:layout_height="50sp" > |
18 | 22 | ||
19 | <ImageView | 23 | <ImageView |
20 | android:id="@+id/headerLogo" | 24 | android:id="@+id/headerLogo" |
21 | android:layout_width="200sp" | 25 | android:layout_width="200sp" |
22 | android:layout_height="wrap_content" | 26 | android:layout_height="wrap_content" |
23 | android:layout_centerVertical="true" | 27 | android:layout_alignParentLeft="true" |
24 | android:layout_alignParentLeft="true" | 28 | android:layout_centerVertical="true" |
25 | android:layout_marginLeft="5sp" | 29 | android:layout_marginLeft="5sp" |
26 | android:layout_marginTop="5sp" | 30 | android:layout_marginTop="5sp" |
27 | android:background="@drawable/bluepay_logo" /> | 31 | android:background="@drawable/bluepay_logo" /> |
28 | 32 | </RelativeLayout> | |
29 | </RelativeLayout> | 33 | |
30 | |||
31 | <RelativeLayout | 34 | <RelativeLayout |
32 | android:layout_width="wrap_content" | 35 | android:layout_width="wrap_content" |
33 | android:layout_weight="0.6" | 36 | android:layout_height="wrap_content" |
34 | android:paddingTop="5sp" | 37 | android:layout_weight="0.6" |
35 | android:layout_height="wrap_content"> | 38 | android:paddingTop="5sp" > |
36 | 39 | ||
37 | |||
38 | <ImageView | 40 | <ImageView |
39 | android:id="@+id/tipIv" | 41 | android:id="@+id/tipIv" |
40 | android:layout_width="200sp" | 42 | android:layout_width="200sp" |
41 | android:layout_height="100sp" | 43 | android:layout_height="100sp" |
42 | android:layout_centerHorizontal="true" | 44 | android:layout_centerHorizontal="true" |
43 | android:src="@drawable/bluep_logo_onetwocall"/> | 45 | android:src="@drawable/bluep_logo_12call" /> |
44 | 46 | ||
45 | <LinearLayout | 47 | <LinearLayout |
46 | android:layout_width="wrap_content" | 48 | android:layout_width="wrap_content" |
47 | android:layout_height="wrap_content" | 49 | android:layout_height="wrap_content" |
48 | android:layout_below="@id/tipIv" | 50 | android:layout_below="@id/tipIv" |
49 | android:layout_centerHorizontal="true" | 51 | android:layout_centerHorizontal="true" |
50 | android:layout_marginTop="5sp" | 52 | android:layout_marginTop="5sp" |
51 | android:orientation="vertical" > | 53 | android:orientation="vertical" > |
52 | 54 | ||
53 | <TextView | 55 | <TextView |
54 | android:id="@+id/textView1" | 56 | android:id="@+id/tv_tips" |
55 | android:layout_width="fill_parent" | 57 | android:layout_width="fill_parent" |
56 | android:layout_height="wrap_content" | 58 | android:layout_height="wrap_content" |
57 | android:gravity="center_horizontal" | 59 | android:gravity="center_horizontal" |
58 | android:singleLine="true" | 60 | android:singleLine="true" |
59 | android:text="Please Input your Card No." | 61 | android:text="Please Input your Card No." |
60 | android:textSize="20px" | 62 | android:textSize="20px" |
61 | android:visibility="gone" /> | 63 | android:visibility="gone" /> |
62 | 64 | ||
63 | <EditText | 65 | <!-- |
64 | android:id="@+id/payEdit" | 66 | android:inputType="number" |
65 | android:layout_width="240sp" | ||
66 | android:layout_height="wrap_content" | ||
67 | android:layout_gravity="center" | ||
68 | android:layout_weight="1" | ||
69 | android:background="@drawable/bluep_input_bg" | ||
70 | android:ems="10" | ||
71 | android:gravity="left" | ||
72 | android:hint="Please Input your Card No." | ||
73 | android:inputType="number" | ||
74 | android:numeric="integer" | 67 | android:numeric="integer" |
75 | android:focusableInTouchMode="true" | 68 | --> |
76 | android:padding="10sp" | 69 | |
77 | android:textColor="#ff000000" | 70 | <TableLayout |
78 | android:textSize="18sp" > | 71 | android:layout_width="wrap_content" |
79 | 72 | android:layout_height="wrap_content" | |
80 | </EditText> | 73 | android:layout_alignLeft="@+id/tipIv" |
81 | 74 | android:layout_alignTop="@+id/linearLayout1" > | |
82 | <TextView | 75 | |
83 | android:id="@+id/payTip" | 76 | <TableRow |
84 | android:layout_width="wrap_content" | 77 | android:layout_width="wrap_content" |
85 | android:layout_height="wrap_content" | 78 | android:layout_height="wrap_content" > |
86 | android:singleLine="true" | 79 | |
87 | android:text="" | 80 | <TextView |
88 | android:textColor="#ffff0000" | 81 | android:id="@+id/Bluep_payCardNoTip" |
89 | android:textSize="14px" | 82 | android:layout_width="fill_parent" |
90 | android:layout_weight="0.4" | 83 | android:layout_height="wrap_content" |
91 | android:visibility="gone" /> | 84 | android:singleLine="true" |
92 | </LinearLayout> | 85 | android:text="Card No." |
93 | 86 | android:textSize="16sp" | |
87 | android:visibility="visible" /> | ||
88 | </TableRow> | ||
89 | |||
90 | <TableRow | ||
91 | android:layout_width="wrap_content" | ||
92 | android:layout_height="wrap_content" > | ||
93 | |||
94 | <EditText | ||
95 | android:id="@+id/payEdit" | ||
96 | android:layout_width="240sp" | ||
97 | android:layout_height="wrap_content" | ||
98 | android:layout_gravity="center" | ||
99 | android:layout_marginTop="3sp" | ||
100 | android:layout_weight="1" | ||
101 | android:background="@drawable/bluep_input_bg" | ||
102 | android:ems="10" | ||
103 | android:focusableInTouchMode="true" | ||
104 | android:gravity="left" | ||
105 | android:visibility="visible" | ||
106 | android:hint="Please Input your Card No." | ||
107 | android:padding="10sp" | ||
108 | |||
109 | android:textColor="#ff000000" | ||
110 | android:textSize="18sp" > | ||
111 | </EditText> | ||
112 | |||
113 | <LinearLayout | ||
114 | android:id="@+id/rl_serialNo_for_unipin" | ||
115 | android:layout_width="wrap_content" | ||
116 | android:layout_height="wrap_content" | ||
117 | android:layout_weight="1" | ||
118 | android:visibility="gone" > | ||
119 | |||
120 | <EditText | ||
121 | android:id="@+id/et_Seral_first" | ||
122 | android:layout_width="55dp" | ||
123 | android:layout_height="wrap_content" | ||
124 | android:layout_gravity="center" | ||
125 | android:background="@drawable/bluep_input_bg" | ||
126 | android:ems="10" | ||
127 | android:focusableInTouchMode="true" | ||
128 | android:gravity="center" | ||
129 | android:hint="0000" | ||
130 | android:inputType="number" | ||
131 | android:singleLine="true" | ||
132 | android:textColor="#ff000000" | ||
133 | android:textSize="18sp" > | ||
134 | |||
135 | <requestFocus /> | ||
136 | </EditText> | ||
137 | |||
138 | <TextView | ||
139 | android:layout_width="10sp" | ||
140 | android:layout_height="match_parent" | ||
141 | android:layout_weight="999" | ||
142 | |||
143 | android:gravity="center" | ||
144 | android:text=" - " | ||
145 | android:textColor="#ff000000" | ||
146 | android:textSize="18sp" /> | ||
147 | |||
148 | <EditText | ||
149 | android:id="@+id/et_Seral_second" | ||
150 | android:layout_width="70sp" | ||
151 | android:layout_height="wrap_content" | ||
152 | android:layout_gravity="center" | ||
153 | android:inputType="number" | ||
154 | android:layout_weight="999" | ||
155 | android:background="@drawable/bluep_input_bg" | ||
156 | android:ems="10" | ||
157 | android:focusableInTouchMode="true" | ||
158 | android:gravity="center" | ||
159 | android:hint="1111" | ||
160 | android:singleLine="true" | ||
161 | android:textColor="#ff000000" | ||
162 | android:textSize="18sp" /> | ||
163 | |||
164 | <TextView | ||
165 | android:layout_width="10sp" | ||
166 | android:layout_height="match_parent" | ||
167 | android:layout_weight="999" | ||
168 | android:gravity="center" | ||
169 | android:text=" - " | ||
170 | android:textColor="#ff000000" | ||
171 | android:textSize="18sp" /> | ||
172 | |||
173 | <EditText | ||
174 | android:id="@+id/et_Seral_third" | ||
175 | android:layout_width="70sp" | ||
176 | android:layout_height="wrap_content" | ||
177 | android:layout_gravity="center" | ||
178 | android:layout_weight="999" | ||
179 | android:inputType="number" | ||
180 | android:background="@drawable/bluep_input_bg" | ||
181 | android:ems="10" | ||
182 | android:focusableInTouchMode="true" | ||
183 | android:gravity="center" | ||
184 | android:hint="2222" | ||
185 | android:singleLine="true" | ||
186 | android:textColor="#ff000000" | ||
187 | android:textSize="18sp" /> | ||
188 | |||
189 | <TextView | ||
190 | android:layout_width="10sp" | ||
191 | android:layout_height="match_parent" | ||
192 | android:layout_weight="999" | ||
193 | android:gravity="center" | ||
194 | android:text=" - " | ||
195 | android:textColor="#ff000000" | ||
196 | android:textSize="18sp" /> | ||
197 | |||
198 | <EditText | ||
199 | android:id="@+id/et_Seral_fourth" | ||
200 | android:layout_width="58dp" | ||
201 | android:layout_height="wrap_content" | ||
202 | android:background="@drawable/bluep_input_bg" | ||
203 | android:ems="10" | ||
204 | android:focusableInTouchMode="true" | ||
205 | android:gravity="center" | ||
206 | android:hint="3333" | ||
207 | android:inputType="number" | ||
208 | android:singleLine="true" | ||
209 | android:textColor="#ff000000" | ||
210 | android:textSize="18sp" /> | ||
211 | |||
212 | </LinearLayout> | ||
213 | </TableRow> | ||
214 | |||
215 | <TableRow | ||
216 | android:layout_width="wrap_content" | ||
217 | android:layout_height="wrap_content" > | ||
218 | |||
219 | <TextView | ||
220 | android:id="@+id/Bluep_paySerialNoTip" | ||
221 | android:layout_width="fill_parent" | ||
222 | android:layout_height="wrap_content" | ||
223 | android:layout_marginTop="5sp" | ||
224 | android:singleLine="true" | ||
225 | android:text="Serial No." | ||
226 | android:textSize="16sp" | ||
227 | android:visibility="visible" /> | ||
228 | </TableRow> | ||
229 | |||
230 | <TableRow | ||
231 | android:layout_width="wrap_content" | ||
232 | android:layout_height="wrap_content" > | ||
233 | |||
234 | <EditText | ||
235 | android:id="@+id/Bluep_paySerialNoEdit" | ||
236 | android:layout_width="240sp" | ||
237 | android:layout_height="wrap_content" | ||
238 | android:layout_gravity="center" | ||
239 | android:layout_weight="1" | ||
240 | android:background="@drawable/bluep_input_bg" | ||
241 | android:ems="10" | ||
242 | android:focusableInTouchMode="true" | ||
243 | android:gravity="left" | ||
244 | android:hint="Please Input your serial No." | ||
245 | android:padding="10sp" | ||
246 | android:singleLine="true" | ||
247 | android:textColor="#ff000000" | ||
248 | android:textSize="18sp" > | ||
249 | </EditText> | ||
250 | |||
251 | <LinearLayout | ||
252 | android:id="@+id/rl_CardNo_for_unipin" | ||
253 | android:layout_width="wrap_content" | ||
254 | android:layout_height="wrap_content" | ||
255 | android:layout_marginTop="3sp" | ||
256 | android:layout_weight="1" | ||
257 | android:focusableInTouchMode="true" | ||
258 | android:gravity="left" | ||
259 | android:orientation="horizontal" | ||
260 | android:visibility="gone" > | ||
261 | |||
262 | <TextView | ||
263 | android:layout_width="60dp" | ||
264 | android:layout_height="match_parent" | ||
265 | android:gravity="center_vertical" | ||
266 | android:text="IDMB - " | ||
267 | android:textColor="#ff000000" | ||
268 | android:textSize="18sp" /> | ||
269 | |||
270 | <EditText | ||
271 | android:id="@+id/et_unipin_first_input" | ||
272 | android:layout_width="30sp" | ||
273 | android:layout_height="match_parent" | ||
274 | android:layout_weight="1" | ||
275 | android:background="@drawable/bluep_input_bg" | ||
276 | android:ems="10" | ||
277 | android:focusableInTouchMode="true" | ||
278 | android:gravity="center" | ||
279 | android:hint="1" | ||
280 | android:inputType="number" | ||
281 | android:singleLine="true" | ||
282 | android:textColor="#ff000000" | ||
283 | android:textSize="18sp" /> | ||
284 | |||
285 | <TextView | ||
286 | android:layout_width="40sp" | ||
287 | android:layout_height="match_parent" | ||
288 | android:gravity="center" | ||
289 | android:text="- S -" | ||
290 | android:textColor="#ff000000" | ||
291 | android:textSize="18sp" /> | ||
292 | |||
293 | <EditText | ||
294 | android:id="@+id/et_unipin_last_input" | ||
295 | android:layout_width="150dp" | ||
296 | android:layout_height="match_parent" | ||
297 | android:background="@drawable/bluep_input_bg" | ||
298 | android:ems="10" | ||
299 | android:focusableInTouchMode="true" | ||
300 | android:gravity="center" | ||
301 | android:hint="00000000" | ||
302 | android:inputType="number" | ||
303 | android:singleLine="true" | ||
304 | android:textColor="#ff000000" | ||
305 | android:textSize="18sp" /> | ||
306 | </LinearLayout> | ||
307 | |||
308 | </TableRow> | ||
309 | |||
310 | </TableLayout> | ||
311 | |||
312 | <TextView | ||
313 | android:id="@+id/payTip" | ||
314 | android:layout_width="wrap_content" | ||
315 | android:layout_height="wrap_content" | ||
316 | android:layout_marginTop="2sp" | ||
317 | android:layout_weight="0.4" | ||
318 | android:singleLine="true" | ||
319 | android:text="" | ||
320 | android:textColor="#ffff0000" | ||
321 | android:textSize="20sp" | ||
322 | android:visibility="gone" /> | ||
323 | </LinearLayout> | ||
94 | </RelativeLayout> | 324 | </RelativeLayout> |
95 | 325 | ||
96 | <RelativeLayout | 326 | <RelativeLayout |
97 | android:layout_width="match_parent" | 327 | android:layout_width="match_parent" |
98 | android:layout_marginTop="5sp" | 328 | android:layout_height="40sp" |
99 | android:layout_weight="0.6" | 329 | android:layout_marginTop="5sp" |
100 | android:layout_height="40sp" > | 330 | android:layout_weight="0.6" > |
101 | 331 | ||
102 | 332 | <Button | |
103 | <Button android:id="@+id/paybyYes" | 333 | android:id="@+id/paybyYes" |
104 | android:layout_width="wrap_content" | 334 | android:layout_width="wrap_content" |
105 | android:layout_height="wrap_content" | 335 | android:layout_height="wrap_content" |
106 | android:layout_marginLeft="30sp" | 336 | android:layout_alignParentLeft="true" |
107 | android:layout_alignParentLeft="true" | 337 | android:layout_centerVertical="true" |
108 | android:layout_centerVertical="true" | 338 | android:layout_marginLeft="30sp" |
109 | android:text="Ok" | 339 | android:background="@drawable/bluep_btnbg_selector" |
110 | android:textColor="#ffffffff" | 340 | android:text="Ok" |
111 | android:background="@drawable/bluep_btnbg_selector" /> | 341 | android:textColor="#ffffffff" /> |
112 | 342 | ||
113 | <Button | 343 | <Button |
114 | android:id="@+id/paybyNo" | 344 | android:id="@+id/paybyNo" |
115 | android:layout_width="wrap_content" | 345 | android:layout_width="wrap_content" |
116 | android:layout_height="wrap_content" | 346 | android:layout_height="wrap_content" |
117 | android:layout_marginRight="30sp" | 347 | android:layout_alignParentRight="true" |
118 | android:layout_alignParentRight="true" | 348 | android:layout_centerVertical="true" |
119 | android:layout_centerVertical="true" | 349 | android:layout_marginRight="30sp" |
120 | android:text="Cancel" | 350 | android:background="@drawable/bluep_btnbg_selector" |
121 | android:textColor="#ffffffff" | 351 | android:text="Cancel" |
122 | android:background="@drawable/bluep_btnbg_selector" /> | 352 | android:textColor="#ffffffff" /> |
123 | 353 | ||
124 | <!-- <ImageButton | 354 | <!-- |
355 | <ImageButton | ||
125 | android:id="@+id/paybyYes" | 356 | android:id="@+id/paybyYes" |
126 | android:layout_width="wrap_content" | 357 | android:layout_width="wrap_content" |
127 | android:layout_height="wrap_content" | 358 | android:layout_height="wrap_content" |
128 | android:paddingLeft="5sp" | 359 | android:paddingLeft="5sp" |
129 | android:layout_alignParentLeft="true" | 360 | android:layout_alignParentLeft="true" |
130 | android:layout_centerVertical="true" | 361 | android:layout_centerVertical="true" |
131 | android:src="@drawable/g_yes_selector" | 362 | android:src="@drawable/g_yes_selector" |
132 | android:background="@drawable/g_btnbg_selector" /> | 363 | android:background="@drawable/g_btnbg_selector" /> |
133 | 364 | ||
134 | <ImageButton | 365 | <ImageButton |
135 | android:id="@+id/paybyNo" | 366 | android:id="@+id/paybyNo" |
136 | android:layout_width="wrap_content" | 367 | android:layout_width="wrap_content" |
137 | android:layout_height="wrap_content" | 368 | android:layout_height="wrap_content" |
138 | android:paddingRight="5sp" | 369 | android:paddingRight="5sp" |
139 | android:layout_alignParentRight="true" | 370 | android:layout_alignParentRight="true" |
140 | android:layout_centerVertical="true" | 371 | android:layout_centerVertical="true" |
141 | android:src="@drawable/g_no_selector" | 372 | android:src="@drawable/g_no_selector" |
142 | android:background="@null" /> --> | 373 | android:background="@null" /> |
143 | 374 | --> | |
144 | 375 | ||
145 | </RelativeLayout> | 376 | </RelativeLayout> |
146 | 377 | ||
147 | </LinearLayout> | 378 | <TextView |
379 | android:id="@+id/txtView_line" | ||
380 | android:layout_width="fill_parent" | ||
381 | android:layout_height="1sp" | ||
382 | android:layout_marginLeft="3sp" | ||
383 | android:layout_marginRight="3sp" | ||
384 | android:layout_marginTop="5sp" | ||
385 | android:background="#55000000" | ||
386 | android:visibility="gone" /> | ||
387 | |||
388 | <TextView |
android/GameSDKRelease/res/layout/bluep_smslist.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:id="@+id/scrollView1" | 3 | android:id="@+id/scrollView1" |
4 | android:layout_width="300sp" | 4 | android:layout_width="300sp" |
5 | android:layout_height="220sp" | 5 | android:layout_height="220sp" |
6 | android:background="#ffffffff" | 6 | android:background="#ffffffff" |
7 | android:gravity="center" | 7 | android:gravity="center" |
8 | android:layout_gravity="center" | ||
8 | android:orientation="vertical" > | 9 | android:orientation="vertical" > |
9 | 10 | ||
10 | <ImageView | 11 | <ImageView |
11 | android:layout_width="200sp" | 12 | android:layout_width="200sp" |
12 | android:layout_height="50sp" | 13 | android:layout_height="50sp" |
13 | android:layout_marginTop="5sp" | 14 | android:layout_marginTop="5sp" |
14 | android:background="@drawable/bluepay_logo" /> | 15 | android:background="@drawable/bluepay_logo" /> |
15 | 16 | ||
16 | <TextView android:id="@+id/Bluep_payTip" | 17 | <TextView android:id="@+id/Bluep_payTip" |
17 | android:layout_width="250sp" | 18 | android:layout_width="250sp" |
18 | android:layout_height="40sp" | 19 | android:layout_height="40sp" |
19 | android:paddingRight="5sp" | 20 | android:paddingRight="5sp" |
20 | android:layout_marginTop="5sp" | 21 | android:layout_marginTop="5sp" |
21 | android:textColor="#ff000000" | 22 | android:textColor="#ff000000" |
22 | android:textSize="14sp" | 23 | android:textSize="14sp" |
23 | android:gravity="center"/> | 24 | android:gravity="center"/> |
24 | 25 | ||
25 | <Button android:id="@+id/Bluep_payList" | 26 | <Button android:id="@+id/Bluep_payList" |
26 | android:layout_width="250sp" | 27 | android:layout_width="250sp" |
27 | android:layout_height="40sp" | 28 | android:layout_height="40sp" |
28 | android:paddingRight="5sp" | 29 | android:paddingRight="5sp" |
29 | android:layout_marginTop="5sp" | 30 | android:layout_marginTop="5sp" |
30 | android:textColor="#ff000000" | 31 | android:textColor="#ff000000" |
31 | android:textSize="16sp" | 32 | android:textSize="16sp" |
32 | android:gravity="center" | 33 | android:gravity="center" |
33 | android:background="@drawable/bluep_paylist_bg" | 34 | android:background="@drawable/bluep_paylist_bg" |
34 | android:drawableRight="@drawable/bluep_paylist_arrow_selector"/> | 35 | android:drawableRight="@drawable/bluep_paylist_arrow_selector"/> |
35 | 36 | ||
36 | <RelativeLayout | 37 | <RelativeLayout |
37 | android:layout_width="fill_parent" | 38 | android:layout_width="fill_parent" |
38 | android:layout_height="wrap_content" | 39 | android:layout_height="wrap_content" |
39 | android:layout_marginTop="15sp" | 40 | android:layout_marginTop="15sp" |
40 | android:layout_marginBottom="5sp" > | 41 | android:layout_marginBottom="5sp" > |
41 | 42 | ||
42 | 43 | ||
43 | <Button android:id="@+id/Bluep_paybyYes" | 44 | <Button android:id="@+id/Bluep_paybyYes" |
44 | android:layout_width="wrap_content" | 45 | android:layout_width="wrap_content" |
45 | android:layout_height="wrap_content" | 46 | android:layout_height="wrap_content" |
46 | android:layout_marginLeft="30sp" | 47 | android:layout_marginLeft="30sp" |
47 | android:layout_alignParentLeft="true" | 48 | android:layout_alignParentLeft="true" |
48 | android:layout_centerVertical="true" | 49 | android:layout_centerVertical="true" |
49 | 50 | ||
50 | android:text="Ok" | 51 | android:text="Ok" |
51 | android:textColor="#ffffffff" | 52 | android:textColor="#ffffffff" |
52 | android:background="@drawable/bluep_btnbg_selector" /> | 53 | android:background="@drawable/bluep_btnbg_selector" /> |
53 | 54 | ||
54 | <Button | 55 | <Button |
55 | android:id="@+id/Bluep_paybyNo" | 56 | android:id="@+id/Bluep_paybyNo" |
56 | android:layout_width="wrap_content" | 57 | android:layout_width="wrap_content" |
57 | android:layout_height="wrap_content" | 58 | android:layout_height="wrap_content" |
58 | android:layout_marginRight="30sp" | 59 | android:layout_marginRight="30sp" |
59 | android:layout_alignParentRight="true" | 60 | android:layout_alignParentRight="true" |
60 | android:layout_centerVertical="true" | 61 | android:layout_centerVertical="true" |
61 | android:text="Cancel" | 62 | android:text="Cancel" |
62 | android:textColor="#ffffffff" | 63 | android:textColor="#ffffffff" |
63 | android:background="@drawable/bluep_btnbg_selector" /> | 64 | android:background="@drawable/bluep_btnbg_selector" /> |
64 | 65 | ||
65 | </RelativeLayout> | 66 | </RelativeLayout> |
66 | 67 | ||
67 | </LinearLayout> | 68 | </LinearLayout> |
android/GameSDKRelease/res/layout/fragment_mod_password.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="wrap_content" | ||
4 | android:layout_height="wrap_content" | ||
5 | android:scrollbars="none" > | ||
6 | |||
7 | <LinearLayout | ||
8 | android:layout_width="wrap_content" | ||
9 | android:layout_height="wrap_content" | ||
10 | android:minWidth="292dp" | ||
11 | android:orientation="vertical" > | ||
12 | |||
13 | <LinearLayout | ||
14 | android:layout_width="match_parent" | ||
15 | android:layout_height="wrap_content" | ||
16 | android:background="@color/white_translucent" | ||
17 | android:orientation="vertical" > | ||
18 | |||
19 | <View | ||
20 | android:layout_width="match_parent" | ||
21 | android:layout_height="1dp" | ||
22 | android:background="@color/light_gray" /> | ||
23 | |||
24 | <EditText | ||
25 | android:id="@+id/username" | ||
26 | android:layout_width="match_parent" | ||
27 | android:layout_height="31dp" | ||
28 | android:layout_marginBottom="10dp" | ||
29 | android:layout_marginLeft="35dp" | ||
30 | android:layout_marginRight="35dp" | ||
31 | android:layout_marginTop="15dp" | ||
32 | android:paddingLeft="8dp" | ||
33 | android:background="@color/white" | ||
34 | android:hint="@string/user_name_hint" | ||
35 | android:imeOptions="flagNoExtractUi" | ||
36 | android:textColor="@color/black_text" /> | ||
37 | |||
38 | <EditText | ||
39 | android:id="@+id/old_pwd" | ||
40 | android:layout_width="match_parent" | ||
41 | android:layout_height="31dp" | ||
42 | android:layout_marginBottom="10dp" | ||
43 | android:layout_marginLeft="35dp" | ||
44 | android:layout_marginRight="35dp" | ||
45 | android:layout_marginTop="10dp" | ||
46 | android:paddingLeft="8dp" | ||
47 | android:background="@color/white" | ||
48 | android:hint="@string/password_hint" | ||
49 | android:imeOptions="flagNoExtractUi" | ||
50 | android:inputType="textPassword" | ||
51 | android:textColor="@color/black_text" /> | ||
52 | <EditText | ||
53 | android:id="@+id/new_pwd" | ||
54 | android:layout_width="match_parent" | ||
55 | android:layout_height="31dp" | ||
56 | android:layout_marginBottom="10dp" | ||
57 | android:layout_marginLeft="35dp" | ||
58 | android:layout_marginRight="35dp" | ||
59 | android:layout_marginTop="10dp" | ||
60 | android:paddingLeft="8dp" | ||
61 | android:background="@color/white" | ||
62 | android:hint="@string/password_hint" | ||
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" | ||
69 | android:layout_height="31dp" | ||
70 | android:layout_marginBottom="10dp" | ||
71 | android:layout_marginLeft="35dp" | ||
72 | android:layout_marginRight="35dp" | ||
73 | android:layout_marginTop="10dp" | ||
74 | android:paddingLeft="8dp" | ||
75 | android:background="@color/white" | ||
76 | android:hint="@string/password_hint" | ||
77 | android:imeOptions="flagNoExtractUi" | ||
78 | android:inputType="textPassword" | ||
79 | android:textColor="@color/black_text" /> | ||
80 | </LinearLayout> | ||
81 | |||
82 | <LinearLayout | ||
83 | android:layout_width="match_parent" | ||
84 | android:layout_height="wrap_content" | ||
85 | android:background="@drawable/bottom_light_bg" > | ||
86 | |||
87 | <Button | ||
88 | android:id="@+id/submit" | ||
89 | android:layout_width="match_parent" | ||
90 | android:layout_height="wrap_content" | ||
91 | android:layout_marginLeft="35dp" | ||
92 | android:layout_marginRight="35dp" | ||
93 | android:layout_marginTop="8dp" | ||
94 | android:background="@drawable/btn_orange_bg" | ||
95 | android:padding="5dp" | ||
96 | android:text="@string/signup" | ||
97 | android:textColor="@android:color/white" | ||
98 | android:textSize="16sp" /> | ||
99 | </LinearLayout> | ||
100 | </LinearLayout> | ||
101 | |||
102 | </ScrollView> | ||
103 |
android/GameSDKRelease/res/layout/item_drop_down.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="fill_parent" | ||
4 | android:layout_height="wrap_content" | ||
5 | android:text="TextView" | ||
6 | android:padding="5dp" | ||
7 | android:textSize="22sp" > | ||
8 | |||
9 | |||
10 | </TextView> |
android/GameSDKRelease/res/layout/view_loading.xml
File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="match_parent" | ||
4 | android:layout_height="match_parent" | ||
5 | android:layout_gravity="center" | ||
6 | android:gravity="center_horizontal" | ||
7 | android:orientation="vertical" > | ||
8 | |||
9 | <ProgressBar | ||
10 | android:id="@+id/pb_loading" | ||
11 | android:layout_width="70dp" | ||
12 | android:indeterminateDrawable="@drawable/loading" | ||
13 | android:indeterminateOnly="true" | ||
14 | android:layout_height="70dp" /> | ||
15 | |||
16 | <TextView | ||
17 | android:id="@+id/tv_loading" | ||
18 | android:layout_width="wrap_content" | ||
19 | android:layout_height="wrap_content" | ||
20 | android:textSize="20sp" | ||
21 | android:text="TextView" /> | ||
22 | |||
23 | </LinearLayout> | ||
24 |
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="portrait" > |
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> | ||
51 | <category android:name="android.intent.category.DEFAULT" /> | ||
52 | |||
53 | <action android:name="android.intent.action.VIEW" /> | ||
54 | |||
55 | <category android:name="android.intent.category.BROWSABLE" /> | ||
56 | |||
57 | <data | ||
58 | android:host="com.gump.sdk" | ||
59 | android:scheme="gump10044" /> | ||
60 | </intent-filter> | ||
50 | </activity> | 61 | </activity> |
51 | <activity | 62 | <activity |
52 | android:name="com.gumptech.sdk.ExchangeWindow" | 63 | android:name="com.gumptech.sdk.ExchangeWindow" |
53 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 64 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
54 | android:theme="@style/Theme.WinForExchange" > | 65 | android:theme="@style/Theme.WinForExchange" > |
55 | </activity> | 66 | </activity> |
56 | 67 | ||
57 | <service android:name="com.gumptech.sdk.PushService" > | 68 | <service android:name="com.gumptech.sdk.PushService" > |
58 | </service> | 69 | </service> |
59 | 70 | ||
60 | <!-- facebook --> | 71 | <!-- facebook --> |
61 | <activity | 72 | <activity |
62 | android:name="com.facebook.FacebookActivity" | 73 | android:name="com.facebook.FacebookActivity" |
63 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" | 74 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" |
64 | android:label="@string/app_name" | 75 | android:label="@string/app_name" |
65 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | 76 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
66 | <!-- vk --> | 77 | <!-- vk --> |
67 | <!-- <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> --> | 78 | <!-- <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> --> |
68 | <!-- <activity --> | 79 | <!-- <activity --> |
69 | <!-- android:name="com.vk.sdk.VKServiceActivity" --> | 80 | <!-- android:name="com.vk.sdk.VKServiceActivity" --> |
70 | <!-- android:label="ServiceActivity" --> | 81 | <!-- android:label="ServiceActivity" --> |
71 | <!-- android:theme="@style/VK.Transparent" /> --> | 82 | <!-- android:theme="@style/VK.Transparent" /> --> |
72 | </application> | 83 | </application> |
73 | 84 | ||
74 | </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 = "10022"; | 31 | private String appId = "10044"; |
32 | private String appKey = "93a27b0bd99bac3e68a440b48aa421ab"; | 32 | private String appKey = "9c16b0e83f09596202f402261f25c8a9"; |
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.0f); | 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(false); | 69 | GumpSDK.setDebugState(true); |
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 |
doc/AndroidDocument.md
1 | # Gump Android SDK使用文档 | 1 | # Gump Android SDK使用文档 |
2 | 2 | ||
3 | 3 | ||
4 | 接入手册 | 4 | 接入手册 |
5 | V 3.3.5 | 5 | V 3.3.5 |
6 | 2016年03月04日 | 6 | 2016年03月04日 |
7 | 7 | ||
8 | 快速入口: | 8 | 快速入口: |
9 | [支付部分服务端回调文档](http://git.letsgame.mobi/document/gumptech-document/blob/master/doc/ServerDocument.md) | 9 | [支付部分服务端回调文档](http://git.letsgame.mobi/document/gumptech-document/blob/master/doc/ServerDocument.md) |
10 | 10 | ||
11 | ## 目录 | 11 | ## 目录 |
12 | 12 | ||
13 | * [第一章 接入指南](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) | 13 | * [第一章 接入指南](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) |
14 | - [1. 导入资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1) | 14 | - [1. 导入资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1) |
15 | - [2. 添加资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2) | 15 | - [2. 添加资源工程](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2) |
16 | - [3. 代码实现](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#3) | 16 | - [3. 代码实现](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#3) |
17 | > [1.修改AndroidManifest.xml文件](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-androidmanifest-xml) | 17 | > [1.修改AndroidManifest.xml文件](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-androidmanifest-xml) |
18 | > [2.向Gump平台索要游戏ID(AppID),完成代码接入](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2-gump-id-gid) | 18 | > [2.向Gump平台索要游戏ID(AppID),完成代码接入](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#2-gump-id-gid) |
19 | * [第二章 常见问题](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) | 19 | * [第二章 常见问题](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#) |
20 | - [问题1: 如何避免混淆对SDK的影响?](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-sdk) | 20 | - [问题1: 如何避免混淆对SDK的影响?](http://git.letsgame.mobi/document/gumptech-document/blob/master/AndroidDocument.md#1-sdk) |
21 | - [问题2:后台已经配置ok的情况下,支付列表仍然为空或登录总是出错?](http://git.letsgame.mobi/document/gumptech-document/blob/master/doc/AndroidDocument.md#2-ok) | 21 | - [问题2:后台已经配置ok的情况下,支付列表仍然为空或登录总是出错?](http://git.letsgame.mobi/document/gumptech-document/blob/master/doc/AndroidDocument.md#2-ok) |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | ## 第一章 接入指南 | 26 | ## 第一章 接入指南 |
27 | 配置环境 | 27 | 配置环境 |
28 | 28 | ||
29 | 本接口API 适用于Android2.2以上各版本Android平台。 | 29 | 本接口API 适用于Android2.2以上各版本Android平台。 |
30 | ### 1. 导入资源工程 | 30 | ### 1. 导入资源工程 |
31 | 1.将GameSDK资源工程拷贝到工作空间,在eclipse中的导航栏右键弹出如图1画面,选择Import导入资源工程,如图1. | 31 | 1.将GameSDK资源工程拷贝到工作空间,在eclipse中的导航栏右键弹出如图1画面,选择Import导入资源工程,如图1. |
32 | 注意:本sdk需要使用Facebook sdk for android 4.4.1实现fb登录,请自行导入Facebook SDK | 32 | 注意:本sdk需要使用Facebook sdk for android 4.4.1实现fb登录,请自行导入Facebook SDK |
33 | 注意:本sdk需要使用VK sdk for android 1.5.4实现vk登录,请自行导入此sdk;若不接入vk登录,可以不导入此sdk并忽略vk相关的配置 | 33 | 注意:本sdk需要使用VK sdk for android 1.5.4实现vk登录,请自行导入此sdk;若不接入vk登录,可以不导入此sdk并忽略vk相关的配置 |
34 | 34 | ||
35 |  | 35 |  |
36 | 图1 | 36 | 图1 |
37 | 37 | ||
38 | 2.导入工程后,右键此工程,在Properties->Android中选中此工程为library工程(勾选红色方框标识处)如图2。 | 38 | 2.导入工程后,右键此工程,在Properties->Android中选中此工程为library工程(勾选红色方框标识处)如图2。 |
39 |  | 39 |  |
40 | 图 2 | 40 | 图 2 |
41 | ### 2. 添加资源工程 | 41 | ### 2. 添加资源工程 |
42 | 添加资源工程为游戏项目的 library。右键游戏项目,在Properties->Android中点击Add添加资源工程为项目工程的library,结果如图3。 | 42 | 添加资源工程为游戏项目的 library。右键游戏项目,在Properties->Android中点击Add添加资源工程为项目工程的library,结果如图3。 |
43 |  | 43 |  |
44 | 图 3 | 44 | 图 3 |
45 | 45 | ||
46 | 46 | ||
47 | 注意:如果ADT版本低于14,ADT不支持jar包自动引入,请手动拷贝libs到您的工作 | 47 | 注意:如果ADT版本低于14,ADT不支持jar包自动引入,请手动拷贝libs到您的工作 |
48 | 空间。 | 48 | 空间。 |
49 | 49 | ||
50 | Eclipse查看ADT版本号的方法: | 50 | Eclipse查看ADT版本号的方法: |
51 | Help==>About Eclips点击Android对应的图标就可以查看版本了. | 51 | Help==>About Eclips点击Android对应的图标就可以查看版本了. |
52 | 如图,红色框部分就是ADT版本号。 | 52 | 如图,红色框部分就是ADT版本号。 |
53 | 53 | ||
54 |  | 54 |  |
55 | 55 | ||
56 | 56 | ||
57 | ### 3. 代码实现 | 57 | ### 3. 代码实现 |
58 | #### 1、 修改AndroidManifest.xml文件 | 58 | #### 1、 修改AndroidManifest.xml文件 |
59 | 首先添加必要的权限,如下所示: | 59 | 首先添加必要的权限,如下所示: |
60 | 60 | ||
61 | <uses-permission android:name="android.permission.INTERNET" /> | 61 | <uses-permission android:name="android.permission.INTERNET" /> |
62 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | 62 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
63 | <uses-permission android:name="android.permission.BLUETOOTH" /> | 63 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
64 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | 64 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
65 | <uses-permission android:name="android.permission.WRITE_SETTINGS"/> | 65 | <uses-permission android:name="android.permission.WRITE_SETTINGS"/> |
66 | <uses-permission android:name="android.permission.GET_ACCOUNTS"/> | 66 | <uses-permission android:name="android.permission.GET_ACCOUNTS"/> |
67 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | 67 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
68 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | 68 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
69 | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> | 69 | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/> |
70 | <uses-permission android:name="android.permission.SEND_SMS"/> | 70 | <uses-permission android:name="android.permission.SEND_SMS"/> |
71 | 71 | ||
72 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> | 72 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> |
73 | <uses-permission android:name="com.android.vending.BILLING" /> | 73 | <uses-permission android:name="com.android.vending.BILLING" /> |
74 | 74 | ||
75 | 其次注册相应的Activity,具体如下: | 75 | 其次注册相应的Activity,具体如下: |
76 | 76 | ||
77 | <activity | 77 | <activity |
78 | android:name="com.gumptech.sdk.ContainerActivity" | 78 | android:name="com.gumptech.sdk.ContainerActivity" |
79 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 79 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
80 | android:windowSoftInputMode="stateAlwaysHidden|adjustPan" | 80 | android:windowSoftInputMode="stateAlwaysHidden|adjustPan" |
81 | android:theme="@style/Theme.TransparentWin" > | 81 | android:theme="@style/Theme.TransparentWin" > |
82 | </activity> | 82 | </activity> |
83 | <activity | 83 | <activity |
84 | android:name="com.gumptech.sdk.PaymentActivity" | 84 | android:name="com.gumptech.sdk.PaymentActivity" |
85 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 85 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
86 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > | 86 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
87 | <intent-filter> | ||
88 | <category android:name="android.intent.category.DEFAULT" /> | ||
89 | |||
90 | <action android:name="android.intent.action.VIEW" /> | ||
91 | |||
92 | <category android:name="android.intent.category.BROWSABLE" /> | ||
93 | |||
94 | <data | ||
95 | android:host="com.gump.sdk" | ||
96 | android:scheme="gump+游戏的appId" /> | ||
97 | </intent-filter> | ||
87 | </activity> | 98 | </activity> |
88 | <activity | 99 | <activity |
89 | android:name="com.gumptech.sdk.ExchangeWindow" | 100 | android:name="com.gumptech.sdk.ExchangeWindow" |
90 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" | 101 | android:configChanges="orientation|screenSize|keyboardHidden|keyboard|screenLayout" |
91 | android:theme="@style/Theme.WinForExchange" > | 102 | android:theme="@style/Theme.WinForExchange" > |
92 | </activity> | 103 | </activity> |
93 | 104 | ||
94 | <service android:name="com.gumptech.sdk.PushService" > | 105 | <service android:name="com.gumptech.sdk.PushService" > |
95 | </service> | 106 | </service> |
96 | <!-- facebook --> | 107 | <!-- facebook --> |
97 | <activity | 108 | <activity |
98 | android:name="com.facebook.FacebookActivity" | 109 | android:name="com.facebook.FacebookActivity" |
99 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" | 110 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" |
100 | android:label="@string/app_name" | 111 | android:label="@string/app_name" |
101 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | 112 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
102 | <!-- vk登录使用,若不接入vk,不需配置 --> | 113 | <!-- vk登录使用,若不接入vk,不需配置 --> |
103 | <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> | 114 | <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> |
104 | <activity | 115 | <activity |
105 | android:name="com.vk.sdk.VKServiceActivity" | 116 | android:name="com.vk.sdk.VKServiceActivity" |
106 | android:label="ServiceActivity" | 117 | android:label="ServiceActivity" |
107 | android:theme="@style/VK.Transparent" /> | 118 | android:theme="@style/VK.Transparent" /> |
108 | 119 | ||
109 | 120 | ||
110 | #### 2、 向Gump平台索要游戏ID(AppID),完成代码接入 | 121 | #### 2、 向Gump平台索要游戏ID(AppID),完成代码接入 |
111 | 正式开始接入逻辑代码前,先介绍下一些附加配置,以方便代码接入 | 122 | 正式开始接入逻辑代码前,先介绍下一些附加配置,以方便代码接入 |
112 | 123 | ||
113 | *Gump Logo隐藏 | 124 | *Gump Logo隐藏 |
114 | 125 | ||
115 | GumpSDK.setLogoShow(false); | 126 | GumpSDK.setLogoShow(false); |
116 | 127 | ||
117 | *横竖屏控制,默认为横屏,参数为false即为竖屏 | 128 | *横竖屏控制,默认为横屏,参数为false即为竖屏 |
118 | 129 | ||
119 | GumpSDK.setScreenLandscape(true); | 130 | GumpSDK.setScreenLandscape(true); |
120 | *debug模式设置 | 131 | *debug模式设置 |
121 | 132 | ||
122 | GumpSDK.setDebugState(true); | 133 | GumpSDK.setDebugState(true); |
123 | 134 | ||
124 | *设置是否启用Facebook登录和VK登录 | 135 | *设置是否启用Facebook登录和VK登录 |
125 | 136 | ||
126 | GumpSDK.setFBEnable(true); | 137 | GumpSDK.setFBEnable(true); |
127 | GumpSDK.setVKEnable(true); | 138 | GumpSDK.setVKEnable(true); |
128 | 1.调用GumpSDK前需要执行初始化。 | 139 | 1.调用GumpSDK前需要执行初始化。 |
129 | 140 | ||
130 | 若不需要分渠道 | 141 | 若不需要分渠道 |
131 | 142 | ||
132 | GumpSDK.init(Context,Appid, Appkey,InitializeCallback); | 143 | GumpSDK.init(Context,Appid, Appkey,InitializeCallback); |
133 | 如果需要定义渠道,必须使用如下方法 | 144 | 如果需要定义渠道,必须使用如下方法 |
134 | 145 | ||
135 | GumpSDK.init(Context,Appid, Appkey,ChannelId,InitializeCallback); | 146 | GumpSDK.init(Context,Appid, Appkey,ChannelId,InitializeCallback); |
136 | 147 | ||
137 | InitializeCallback为初始化回调接口,此接口只有一个回调方法initComplete(int result) result标识是否初始化成功,当result等于GumpSDK.CODE.OK时为成功,其他为失败 | 148 | InitializeCallback为初始化回调接口,此接口只有一个回调方法initComplete(int result) result标识是否初始化成功,当result等于GumpSDK.CODE.OK时为成功,其他为失败 |
138 | 149 | ||
139 | 2.调用GumpSDK的开始方法,将执行登录流程,需要一个Activity实例作参数 | 150 | 2.调用GumpSDK的开始方法,将执行登录流程,需要一个Activity实例作参数 |
140 | 151 | ||
141 | GumpSDK.start(Activity); | 152 | GumpSDK.start(Activity); |
142 | 在此之前,开发者需要注册用户状态监听以接受用户的登录/登出通知,通常如下: | 153 | 在此之前,开发者需要注册用户状态监听以接受用户的登录/登出通知,通常如下: |
143 | 154 | ||
144 | GumpSDK.setUserStateListener(new LoginStateListener() { | 155 | GumpSDK.setUserStateListener(new LoginStateListener() { |
145 | @Override | 156 | @Override |
146 | public void onLoginSuccess(GumpUser gumpUser) { | 157 | public void onLoginSuccess(GumpUser gumpUser) { |
147 | //登录成功,用户信息包含在GumpUser对象里 | 158 | //登录成功,用户信息包含在GumpUser对象里 |
148 | } | 159 | } |
149 | 160 | ||
150 | @Override | 161 | @Override |
151 | public void onLoginFailed(int code, String msg) { | 162 | public void onLoginFailed(int code, String msg) { |
152 | //登录出错,根据错误码和信息判断错误类型 | 163 | //登录出错,根据错误码和信息判断错误类型 |
153 | Toast.makeText(MainActivity.this, "Login failed:code="+code+",message="+msg, Toast.LENGTH_SHORT).show(); | 164 | Toast.makeText(MainActivity.this, "Login failed:code="+code+",message="+msg, Toast.LENGTH_SHORT).show(); |
154 | } | 165 | } |
155 | 166 | ||
156 | @Override | 167 | @Override |
157 | public void onLoginCanceled() { | 168 | public void onLoginCanceled() { |
158 | //用户取消登录 | 169 | //用户取消登录 |
159 | Toast.makeText(MainActivity.this, "operate be canceled", Toast.LENGTH_SHORT).show(); | 170 | Toast.makeText(MainActivity.this, "operate be canceled", Toast.LENGTH_SHORT).show(); |
160 | } | 171 | } |
161 | 172 | ||
162 | @Override | 173 | @Override |
163 | public void onLogout() { | 174 | public void onLogout() { |
164 | //用户登出 | 175 | //用户登出 |
165 | 176 | ||
166 | } | 177 | } |
167 | }); | 178 | }); |
168 | 179 | ||
169 | 如上成功登录后收到的GumpUser对象包含以下信息 | 180 | 如上成功登录后收到的GumpUser对象包含以下信息 |
170 | 181 | ||
171 | gumpUser.getUid();//获取用户的userid,此Id标识唯一用户! | 182 | gumpUser.getUid();//获取用户的userid,此Id标识唯一用户! |
172 | gumpUser.getAccountType();//用户类型,此类型数据可从GumpPreference常量获取 | 183 | gumpUser.getAccountType();//用户类型,此类型数据可从GumpPreference常量获取 |
173 | gumpUser.getSessionKey();//登录的sesionKey | 184 | gumpUser.getSessionKey();//登录的sesionKey |
174 | 185 | ||
175 | 186 | ||
176 | 3.支付功能 | 187 | 3.支付功能 |
177 | 1)使用gump通行证登录,其中除nick和roleId外所有参数为必传参数 | 188 | 1)使用gump通行证登录,其中除nick和roleId外所有参数为必传参数 |
178 | 189 | ||
179 | Bundle payInfo = new Bundle(); | 190 | Bundle payInfo = new Bundle(); |
180 | payInfo.putString("nick", "thi"); | 191 | payInfo.putString("nick", "thi"); |
181 | payInfo.putString("product", "元宝"); | 192 | payInfo.putString("product", "元宝"); |
182 | payInfo.putFloat("amount", 40.0f); | 193 | payInfo.putFloat("amount", 40.0f); |
183 | payInfo.putString("extraInfo", "This is demo!"); | 194 | payInfo.putString("extraInfo", "This is demo!"); |
184 | payInfo.putString("serverId", "B4003"); | 195 | payInfo.putString("serverId", "B4003"); |
185 | payInfo.putString("roleId", "10010"); | 196 | payInfo.putString("roleId", "10010"); |
186 | payInfo.putString("sessionKey","sessionkey"); | 197 | payInfo.putString("sessionKey","sessionkey"); |
187 | GumpSDK.pay(MainActivity.this, payInfo,PurchaseCallback); | 198 | GumpSDK.pay(MainActivity.this, payInfo,PurchaseCallback); |
188 | 调用pay方法时,必须穿入一个bundle对象,包含如上字段,除nick和roleId外所有字段必须全部包含,其中sessionKey为登录时返回的sessionKey | 199 | 调用pay方法时,必须穿入一个bundle对象,包含如上字段,除nick和roleId外所有字段必须全部包含,其中sessionKey为登录时返回的sessionKey |
189 | 2)未使用gump通行证登录,需要传入用户id,同时sessionKey不再需要 | 200 | 2)未使用gump通行证登录,需要传入用户id,同时sessionKey不再需要 |
190 | 201 | ||
191 | Bundle payInfo = new Bundle(); | 202 | Bundle payInfo = new Bundle(); |
192 | payInfo.putString("nick", "thi"); | 203 | payInfo.putString("nick", "thi"); |
193 | payInfo.putString("product", "元宝"); | 204 | payInfo.putString("product", "元宝"); |
194 | payInfo.putFloat("amount", 40.0f); | 205 | payInfo.putFloat("amount", 40.0f); |
195 | payInfo.putString("extraInfo", "This is demo!"); | 206 | payInfo.putString("extraInfo", "This is demo!"); |
196 | payInfo.putString("serverId", "B4003"); | 207 | payInfo.putString("serverId", "B4003"); |
197 | payInfo.putString("roleId", "10010"); | 208 | payInfo.putString("roleId", "10010"); |
198 | GumpSDK.pay(MainActivity.this, payInfo,userId,PurchaseCallback); | 209 | GumpSDK.pay(MainActivity.this, payInfo,userId,PurchaseCallback); |
199 | 210 | ||
200 | PurchaseCallback为支付状态回调接口,此接口含有3个方法 | 211 | PurchaseCallback为支付状态回调接口,此接口含有3个方法 |
201 | 212 | ||
202 | @Override | 213 | @Override |
203 | public void onPurchaseCompleted(PurchaseResult result) { | 214 | public void onPurchaseCompleted(PurchaseResult result) { |
204 | Log.i(TAG,"purchase completed"); | 215 | Log.i(TAG,"purchase completed"); |
205 | } | 216 | } |
206 | 217 | ||
207 | @Override | 218 | @Override |
208 | public void onPurchaseError(int code, String msg) { | 219 | public void onPurchaseError(int code, String msg) { |
209 | Log.i(TAG,"purchase error"); | 220 | Log.i(TAG,"purchase error"); |
210 | } | 221 | } |
211 | 222 | ||
212 | @Override | 223 | @Override |
213 | public void onPurchaseCanceled() { | 224 | public void onPurchaseCanceled() { |
214 | Log.i(TAG,"purchase canceled"); | 225 | Log.i(TAG,"purchase canceled"); |
215 | } | 226 | } |
216 | 227 | ||
217 | 5.注销登录 | 228 | 5.注销登录 |
218 | 229 | ||
219 | GumpSDK.logout(Activity); | 230 | GumpSDK.logout(Activity); |
220 | 当此方法调用后,用户退出登录,并会通过LoginStateListener接口通知调用程序! | 231 | 当此方法调用后,用户退出登录,并会通过LoginStateListener接口通知调用程序! |
221 | ## 第二章 常见问题 | 232 | ## 第二章 常见问题 |
222 | ### 问题1: 如何避免混淆对SDK的影响? | 233 | ### 问题1: 如何避免混淆对SDK的影响? |
223 | 解答:有些开发者对接入了SDK的程序进行混淆时,有可能会覆盖某些java | 234 | 解答:有些开发者对接入了SDK的程序进行混淆时,有可能会覆盖某些java |
224 | 类,导致SDK无法正常工作,解决方法如下: | 235 | 类,导致SDK无法正常工作,解决方法如下: |
225 | Ø 请开发者在混淆配置文件proguard.cfg或proguard-project.txt的最后加上 | 236 | Ø 请开发者在混淆配置文件proguard.cfg或proguard-project.txt的最后加上 |
226 | 237 | ||
227 | -keepattributes *Annotation*,InnerClasses,SourceFile,LineNumberTable | 238 | -keepattributes *Annotation*,InnerClasses,SourceFile,LineNumberTable |
228 | -keep public class * extends android.app.Service | 239 | -keep public class * extends android.app.Service |
229 | -keep public class com.google.vending.licensing.ILicensingService | 240 | -keep public class com.google.vending.licensing.ILicensingService |
230 | -keep public class com.android.vending.licensing.ILicensingService | 241 | -keep public class com.android.vending.licensing.ILicensingService |
231 | -keep class com.gumptech.sdk.view.* {*;} | 242 | -keep class com.gumptech.sdk.view.* {*;} |
232 | -keep class com.gumptech.sdk.web.* {*;} | 243 | -keep class com.gumptech.sdk.web.* {*;} |
233 | 244 | ||
234 | 245 | ||
235 | 使得混淆的时候不会影响SDK的命名空间。 | 246 | 使得混淆的时候不会影响SDK的命名空间。 |