Commit 508fb0528961ee93182747be534a0816f5db08e2
1 parent
88e1ea2882
Exists in
master
upgrade to version2.3.1
Showing 44 changed files with 396 additions and 30 deletions Inline Diff
- android/GameSDKRelease/libs/GameSDK2.3.0_proguard.jar
- android/GameSDKRelease/libs/GameSDK2.3.1_proguard.jar
- android/GameSDKRelease/res/drawable-hdpi/logo_boa.png
- android/GameSDKRelease/res/drawable-hdpi/logo_coda.png
- android/GameSDKRelease/res/drawable-hdpi/logo_fpt.png
- android/GameSDKRelease/res/drawable-hdpi/logo_globe.png
- android/GameSDKRelease/res/drawable-hdpi/logo_mgc.png
- android/GameSDKRelease/res/drawable-hdpi/logo_mol_global.png
- android/GameSDKRelease/res/drawable-hdpi/logo_onc.png
- android/GameSDKRelease/res/drawable-hdpi/logo_vms.png
- android/GameSDKRelease/res/drawable-hdpi/logo_vnp.png
- android/GameSDKRelease/res/drawable-hdpi/logo_vtt.png
- android/GameSDKRelease/res/drawable-hdpi/logo_yandex.png
- android/GameSDKRelease/res/drawable-mdpi/logo_boa.png
- android/GameSDKRelease/res/drawable-mdpi/logo_coda.png
- android/GameSDKRelease/res/drawable-mdpi/logo_fpt.png
- android/GameSDKRelease/res/drawable-mdpi/logo_globe.png
- android/GameSDKRelease/res/drawable-mdpi/logo_mgc.png
- android/GameSDKRelease/res/drawable-mdpi/logo_mol_global.png
- android/GameSDKRelease/res/drawable-mdpi/logo_onc.png
- android/GameSDKRelease/res/drawable-mdpi/logo_vms.png
- android/GameSDKRelease/res/drawable-mdpi/logo_vnp.png
- android/GameSDKRelease/res/drawable-mdpi/logo_vtt.png
- android/GameSDKRelease/res/drawable-mdpi/logo_yandex.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_boa.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_coda.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_fpt.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_globe.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_mgc.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_mol_global.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_onc.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_vms.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_vnp.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_vtt.png
- android/GameSDKRelease/res/drawable-xhdpi/logo_yandex.png
- android/GameSDKRelease/res/layout/fragment_login.xml
- android/GameSDKRelease/res/layout/fragment_payment_choice.xml
- android/GameSDKRelease/res/layout/fragment_signup.xml
- android/GameSDKRelease/res/layout/fragment_yandex.xml
- android/GameSDKRelease/res/values/strings.xml
- android/GameSDKRelease/res/values/themes.xml
- android/GameSDKSample/AndroidManifest.xml
- android/GameSDKSample/res/layout/activity_main.xml
- android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
android/GameSDKRelease/libs/GameSDK2.3.0_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK2.3.1_proguard.jar
No preview for this file type
android/GameSDKRelease/res/drawable-hdpi/logo_boa.png
4.64 KB
android/GameSDKRelease/res/drawable-hdpi/logo_coda.png
16.3 KB
android/GameSDKRelease/res/drawable-hdpi/logo_fpt.png
8.35 KB
android/GameSDKRelease/res/drawable-hdpi/logo_globe.png
11.1 KB
android/GameSDKRelease/res/drawable-hdpi/logo_mgc.png
14.8 KB
android/GameSDKRelease/res/drawable-hdpi/logo_mol_global.png
3.07 KB
android/GameSDKRelease/res/drawable-hdpi/logo_onc.png
11.3 KB
android/GameSDKRelease/res/drawable-hdpi/logo_vms.png
13.3 KB
android/GameSDKRelease/res/drawable-hdpi/logo_vnp.png
6.44 KB
android/GameSDKRelease/res/drawable-hdpi/logo_vtt.png
6.39 KB
android/GameSDKRelease/res/drawable-hdpi/logo_yandex.png
5.32 KB
android/GameSDKRelease/res/drawable-mdpi/logo_boa.png
3.08 KB
android/GameSDKRelease/res/drawable-mdpi/logo_coda.png
9.45 KB
android/GameSDKRelease/res/drawable-mdpi/logo_fpt.png
5.09 KB
android/GameSDKRelease/res/drawable-mdpi/logo_globe.png
6.15 KB
android/GameSDKRelease/res/drawable-mdpi/logo_mgc.png
8.24 KB
android/GameSDKRelease/res/drawable-mdpi/logo_mol_global.png
2.36 KB
android/GameSDKRelease/res/drawable-mdpi/logo_onc.png
6.03 KB
android/GameSDKRelease/res/drawable-mdpi/logo_vms.png
7.44 KB
android/GameSDKRelease/res/drawable-mdpi/logo_vnp.png
10.7 KB
android/GameSDKRelease/res/drawable-mdpi/logo_vtt.png
4.09 KB
android/GameSDKRelease/res/drawable-mdpi/logo_yandex.png
3.46 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_boa.png
6.49 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_coda.png
24 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_fpt.png
12.7 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_globe.png
19.3 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_mgc.png
23.8 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_mol_global.png
3.25 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_onc.png
21.4 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_vms.png
23.6 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_vnp.png
10.7 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_vtt.png
9.52 KB
android/GameSDKRelease/res/drawable-xhdpi/logo_yandex.png
6.3 KB
android/GameSDKRelease/res/layout/fragment_login.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:scrollbars="none" > | 5 | android:scrollbars="none" > |
6 | 6 | ||
7 | <LinearLayout | 7 | <LinearLayout |
8 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
9 | android:layout_height="wrap_content" | 9 | android:layout_height="wrap_content" |
10 | android:background="@drawable/dialog_bg" | 10 | android:background="@drawable/dialog_bg" |
11 | android:minWidth="293dp" | 11 | android:minWidth="293dp" |
12 | android:orientation="vertical" > | 12 | android:orientation="vertical" > |
13 | 13 | ||
14 | <EditText | 14 | <EditText |
15 | android:id="@+id/username" | 15 | android:id="@+id/username" |
16 | android:layout_width="fill_parent" | 16 | android:layout_width="fill_parent" |
17 | android:layout_height="wrap_content" | 17 | android:layout_height="wrap_content" |
18 | android:layout_marginLeft="13dp" | 18 | android:layout_marginLeft="13dp" |
19 | android:layout_marginRight="13dp" | 19 | android:layout_marginRight="13dp" |
20 | android:layout_marginTop="10dp" | 20 | android:layout_marginTop="10dp" |
21 | android:background="@drawable/et_bg" | 21 | android:background="@drawable/et_bg" |
22 | android:hint="@string/user_name_hint" | 22 | android:hint="@string/user_name_hint" |
23 | android:imeOptions="flagNoExtractUi" /> | 23 | android:imeOptions="flagNoExtractUi" |
24 | android:textColor="@color/black_text" /> | ||
24 | 25 | ||
25 | <EditText | 26 | <EditText |
26 | android:id="@+id/password" | 27 | android:id="@+id/password" |
27 | android:layout_width="fill_parent" | 28 | android:layout_width="fill_parent" |
28 | android:layout_height="wrap_content" | 29 | android:layout_height="wrap_content" |
29 | android:layout_marginLeft="13dp" | 30 | android:layout_marginLeft="13dp" |
30 | android:layout_marginRight="13dp" | 31 | android:layout_marginRight="13dp" |
31 | android:layout_marginTop="10dp" | 32 | android:layout_marginTop="10dp" |
32 | android:background="@drawable/et_bg" | 33 | android:background="@drawable/et_bg" |
33 | android:hint="@string/password_hint" | 34 | android:hint="@string/password_hint" |
34 | android:imeOptions="flagNoExtractUi" | 35 | android:imeOptions="flagNoExtractUi" |
35 | android:inputType="textPassword" /> | 36 | android:inputType="textPassword" |
37 | android:textColor="@color/black_text" /> | ||
36 | 38 | ||
37 | <LinearLayout | 39 | <LinearLayout |
38 | android:layout_width="match_parent" | 40 | android:layout_width="match_parent" |
39 | android:layout_height="wrap_content" | 41 | android:layout_height="wrap_content" |
40 | android:layout_marginBottom="10dp" | 42 | android:layout_marginBottom="10dp" |
41 | android:layout_marginTop="13dp" | 43 | android:layout_marginTop="13dp" |
42 | android:gravity="center" | 44 | android:gravity="center" |
43 | android:orientation="horizontal" > | 45 | android:orientation="horizontal" > |
44 | 46 | ||
45 | <Button | 47 | <Button |
46 | android:id="@+id/login" | 48 | android:id="@+id/login" |
47 | android:layout_width="100dp" | 49 | android:layout_width="100dp" |
48 | android:layout_height="wrap_content" | 50 | android:layout_height="wrap_content" |
49 | android:background="@drawable/btn_orange_bg" | 51 | android:background="@drawable/btn_orange_bg" |
50 | android:padding="5dp" | 52 | android:padding="5dp" |
51 | android:text="@string/login" | 53 | android:text="@string/login" |
52 | android:textColor="@android:color/white" | 54 | android:textColor="@android:color/white" |
53 | android:textSize="16sp" /> | 55 | android:textSize="16sp" /> |
54 | 56 | ||
55 | <Button | 57 | <Button |
56 | android:id="@+id/sign_up" | 58 | android:id="@+id/sign_up" |
57 | android:layout_width="100dp" | 59 | android:layout_width="100dp" |
58 | android:layout_height="wrap_content" | 60 | android:layout_height="wrap_content" |
59 | android:layout_marginLeft="13dp" | 61 | android:layout_marginLeft="13dp" |
60 | android:background="@drawable/btn_white_bg" | 62 | android:background="@drawable/btn_white_bg" |
61 | android:padding="5dp" | 63 | android:padding="5dp" |
62 | android:text="@string/signup" | 64 | android:text="@string/signup" |
63 | android:textColor="@color/black_text" | 65 | android:textColor="@color/black_text" |
64 | android:textSize="16sp" /> | 66 | android:textSize="16sp" /> |
65 | </LinearLayout> | 67 | </LinearLayout> |
66 | </LinearLayout> | 68 | </LinearLayout> |
67 | 69 | ||
68 | </ScrollView> | 70 | </ScrollView> |
android/GameSDKRelease/res/layout/fragment_payment_choice.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
4 | android:layout_height="match_parent" > | 4 | android:layout_height="match_parent" > |
5 | 5 | ||
6 | <LinearLayout | 6 | <LinearLayout |
7 | android:layout_width="match_parent" | 7 | android:layout_width="match_parent" |
8 | android:layout_height="wrap_content" | 8 | android:layout_height="wrap_content" |
9 | android:gravity="center_horizontal" | 9 | android:gravity="center_horizontal" |
10 | android:orientation="vertical" > | 10 | android:orientation="vertical" > |
11 | 11 | ||
12 | <RelativeLayout | 12 | <RelativeLayout |
13 | android:id="@+id/item_mycard" | 13 | android:id="@+id/item_mycard" |
14 | android:layout_width="match_parent" | 14 | android:layout_width="match_parent" |
15 | android:layout_height="wrap_content" | 15 | android:layout_height="wrap_content" |
16 | android:background="@drawable/payment_bg" | 16 | android:background="@drawable/payment_bg" |
17 | android:visibility="gone" > | 17 | android:visibility="gone" > |
18 | 18 | ||
19 | <ImageView | 19 | <ImageView |
20 | android:layout_width="wrap_content" | 20 | android:layout_width="wrap_content" |
21 | android:layout_height="wrap_content" | 21 | android:layout_height="wrap_content" |
22 | android:layout_centerVertical="true" | 22 | android:layout_centerVertical="true" |
23 | android:layout_marginLeft="10dp" | 23 | android:layout_marginLeft="10dp" |
24 | android:src="@drawable/logo_mycard" /> | 24 | android:src="@drawable/logo_mycard" /> |
25 | 25 | ||
26 | <ImageView | 26 | <ImageView |
27 | android:layout_width="wrap_content" | 27 | android:layout_width="wrap_content" |
28 | android:layout_height="wrap_content" | 28 | android:layout_height="wrap_content" |
29 | android:layout_alignParentRight="true" | 29 | android:layout_alignParentRight="true" |
30 | android:layout_centerVertical="true" | 30 | android:layout_centerVertical="true" |
31 | android:layout_marginRight="45dp" | 31 | android:layout_marginRight="45dp" |
32 | android:src="@drawable/arrow_tag" /> | 32 | android:src="@drawable/arrow_tag" /> |
33 | </RelativeLayout> | 33 | </RelativeLayout> |
34 | 34 | ||
35 | <RelativeLayout | 35 | <RelativeLayout |
36 | android:id="@+id/item_mol" | 36 | android:id="@+id/item_mol" |
37 | android:layout_width="match_parent" | 37 | android:layout_width="match_parent" |
38 | android:layout_height="wrap_content" | 38 | android:layout_height="wrap_content" |
39 | android:background="@drawable/payment_bg" | 39 | android:background="@drawable/payment_bg" |
40 | android:visibility="gone" > | 40 | android:visibility="gone" > |
41 | 41 | ||
42 | <ImageView | 42 | <ImageView |
43 | android:layout_width="wrap_content" | 43 | android:layout_width="wrap_content" |
44 | android:layout_height="wrap_content" | 44 | android:layout_height="wrap_content" |
45 | android:layout_centerVertical="true" | 45 | android:layout_centerVertical="true" |
46 | android:layout_marginLeft="10dp" | 46 | android:layout_marginLeft="10dp" |
47 | android:src="@drawable/logo_mol" /> | 47 | android:src="@drawable/logo_mol" /> |
48 | 48 | ||
49 | <ImageView | 49 | <ImageView |
50 | android:layout_width="wrap_content" | 50 | android:layout_width="wrap_content" |
51 | android:layout_height="wrap_content" | 51 | android:layout_height="wrap_content" |
52 | android:layout_alignParentRight="true" | 52 | android:layout_alignParentRight="true" |
53 | android:layout_centerVertical="true" | 53 | android:layout_centerVertical="true" |
54 | android:layout_marginRight="45dp" | 54 | android:layout_marginRight="45dp" |
55 | android:src="@drawable/arrow_tag" /> | 55 | android:src="@drawable/arrow_tag" /> |
56 | </RelativeLayout> | 56 | </RelativeLayout> |
57 | <RelativeLayout | 57 | <RelativeLayout |
58 | android:id="@+id/item_mol_point" | 58 | android:id="@+id/item_mol_global" |
59 | android:layout_width="match_parent" | 59 | android:layout_width="match_parent" |
60 | android:layout_height="wrap_content" | 60 | android:layout_height="wrap_content" |
61 | android:background="@drawable/payment_bg" | 61 | android:background="@drawable/payment_bg" |
62 | android:visibility="gone" > | 62 | android:visibility="gone" > |
63 | 63 | ||
64 | <ImageView | 64 | <ImageView |
65 | android:layout_width="wrap_content" | 65 | android:layout_width="wrap_content" |
66 | android:layout_height="wrap_content" | 66 | android:layout_height="wrap_content" |
67 | android:layout_centerVertical="true" | 67 | android:layout_centerVertical="true" |
68 | android:layout_marginLeft="10dp" | 68 | android:layout_marginLeft="10dp" |
69 | android:src="@drawable/logo_mol" /> | 69 | android:src="@drawable/logo_mol_global" /> |
70 | 70 | ||
71 | <ImageView | 71 | <ImageView |
72 | android:layout_width="wrap_content" | 72 | android:layout_width="wrap_content" |
73 | android:layout_height="wrap_content" | 73 | android:layout_height="wrap_content" |
74 | android:layout_alignParentRight="true" | 74 | android:layout_alignParentRight="true" |
75 | android:layout_centerVertical="true" | 75 | android:layout_centerVertical="true" |
76 | android:layout_marginRight="45dp" | 76 | android:layout_marginRight="45dp" |
77 | android:src="@drawable/arrow_tag" /> | 77 | android:src="@drawable/arrow_tag" /> |
78 | </RelativeLayout> | 78 | </RelativeLayout> |
79 | 79 | ||
80 | <RelativeLayout | 80 | <RelativeLayout |
81 | android:id="@+id/item_12call" | 81 | android:id="@+id/item_12call" |
82 | android:layout_width="match_parent" | 82 | android:layout_width="match_parent" |
83 | android:layout_height="wrap_content" | 83 | android:layout_height="wrap_content" |
84 | android:background="@drawable/payment_bg" | 84 | android:background="@drawable/payment_bg" |
85 | android:visibility="gone" > | 85 | android:visibility="gone" > |
86 | 86 | ||
87 | <ImageView | 87 | <ImageView |
88 | android:layout_width="wrap_content" | 88 | android:layout_width="wrap_content" |
89 | android:layout_height="wrap_content" | 89 | android:layout_height="wrap_content" |
90 | android:layout_centerVertical="true" | 90 | android:layout_centerVertical="true" |
91 | android:layout_marginLeft="10dp" | 91 | android:layout_marginLeft="10dp" |
92 | android:src="@drawable/logo_12call" /> | 92 | android:src="@drawable/logo_12call" /> |
93 | 93 | ||
94 | <ImageView | 94 | <ImageView |
95 | android:layout_width="wrap_content" | 95 | android:layout_width="wrap_content" |
96 | android:layout_height="wrap_content" | 96 | android:layout_height="wrap_content" |
97 | android:layout_alignParentRight="true" | 97 | android:layout_alignParentRight="true" |
98 | android:layout_centerVertical="true" | 98 | android:layout_centerVertical="true" |
99 | android:layout_marginRight="45dp" | 99 | android:layout_marginRight="45dp" |
100 | android:src="@drawable/arrow_tag" /> | 100 | android:src="@drawable/arrow_tag" /> |
101 | </RelativeLayout> | 101 | </RelativeLayout> |
102 | 102 | ||
103 | <RelativeLayout | 103 | <RelativeLayout |
104 | android:id="@+id/item_zest" | 104 | android:id="@+id/item_zest" |
105 | android:layout_width="match_parent" | 105 | android:layout_width="match_parent" |
106 | android:layout_height="wrap_content" | 106 | android:layout_height="wrap_content" |
107 | android:background="@drawable/payment_bg" | 107 | android:background="@drawable/payment_bg" |
108 | android:visibility="gone" > | 108 | android:visibility="gone" > |
109 | 109 | ||
110 | <ImageView | 110 | <ImageView |
111 | android:layout_width="wrap_content" | 111 | android:layout_width="wrap_content" |
112 | android:layout_height="wrap_content" | 112 | android:layout_height="wrap_content" |
113 | android:layout_centerVertical="true" | 113 | android:layout_centerVertical="true" |
114 | android:layout_marginLeft="10dp" | 114 | android:layout_marginLeft="10dp" |
115 | android:src="@drawable/logo_zest" /> | 115 | android:src="@drawable/logo_zest" /> |
116 | 116 | ||
117 | <ImageView | 117 | <ImageView |
118 | android:layout_width="wrap_content" | 118 | android:layout_width="wrap_content" |
119 | android:layout_height="wrap_content" | 119 | android:layout_height="wrap_content" |
120 | android:layout_alignParentRight="true" | 120 | android:layout_alignParentRight="true" |
121 | android:layout_centerVertical="true" | 121 | android:layout_centerVertical="true" |
122 | android:layout_marginRight="45dp" | 122 | android:layout_marginRight="45dp" |
123 | android:src="@drawable/arrow_tag" /> | 123 | android:src="@drawable/arrow_tag" /> |
124 | </RelativeLayout> | 124 | </RelativeLayout> |
125 | 125 | ||
126 | <RelativeLayout | 126 | <RelativeLayout |
127 | android:id="@+id/item_tm" | 127 | android:id="@+id/item_tm" |
128 | android:layout_width="match_parent" | 128 | android:layout_width="match_parent" |
129 | android:layout_height="wrap_content" | 129 | android:layout_height="wrap_content" |
130 | android:background="@drawable/payment_bg" | 130 | android:background="@drawable/payment_bg" |
131 | android:visibility="gone" > | 131 | android:visibility="gone" > |
132 | 132 | ||
133 | <ImageView | 133 | <ImageView |
134 | android:layout_width="wrap_content" | 134 | android:layout_width="wrap_content" |
135 | android:layout_height="wrap_content" | 135 | android:layout_height="wrap_content" |
136 | android:layout_centerVertical="true" | 136 | android:layout_centerVertical="true" |
137 | android:layout_marginLeft="10dp" | 137 | android:layout_marginLeft="10dp" |
138 | android:src="@drawable/logo_tm" /> | 138 | android:src="@drawable/logo_tm" /> |
139 | 139 | ||
140 | <ImageView | 140 | <ImageView |
141 | android:layout_width="wrap_content" | 141 | android:layout_width="wrap_content" |
142 | android:layout_height="wrap_content" | 142 | android:layout_height="wrap_content" |
143 | android:layout_alignParentRight="true" | 143 | android:layout_alignParentRight="true" |
144 | android:layout_centerVertical="true" | 144 | android:layout_centerVertical="true" |
145 | android:layout_marginRight="45dp" | 145 | android:layout_marginRight="45dp" |
146 | android:src="@drawable/arrow_tag" /> | 146 | android:src="@drawable/arrow_tag" /> |
147 | </RelativeLayout> | 147 | </RelativeLayout> |
148 | 148 | ||
149 | <RelativeLayout | 149 | <RelativeLayout |
150 | android:id="@+id/item_rixty" | 150 | android:id="@+id/item_rixty" |
151 | android:layout_width="match_parent" | 151 | android:layout_width="match_parent" |
152 | android:layout_height="wrap_content" | 152 | android:layout_height="wrap_content" |
153 | android:background="@drawable/payment_bg" | 153 | android:background="@drawable/payment_bg" |
154 | android:visibility="gone" > | 154 | android:visibility="gone" > |
155 | 155 | ||
156 | <ImageView | 156 | <ImageView |
157 | android:layout_width="wrap_content" | 157 | android:layout_width="wrap_content" |
158 | android:layout_height="wrap_content" | 158 | android:layout_height="wrap_content" |
159 | android:layout_centerVertical="true" | 159 | android:layout_centerVertical="true" |
160 | android:layout_marginLeft="10dp" | 160 | android:layout_marginLeft="10dp" |
161 | android:src="@drawable/logo_rixty" /> | 161 | android:src="@drawable/logo_rixty" /> |
162 | 162 | ||
163 | <ImageView | 163 | <ImageView |
164 | android:layout_width="wrap_content" | 164 | android:layout_width="wrap_content" |
165 | android:layout_height="wrap_content" | 165 | android:layout_height="wrap_content" |
166 | android:layout_alignParentRight="true" | 166 | android:layout_alignParentRight="true" |
167 | android:layout_centerVertical="true" | 167 | android:layout_centerVertical="true" |
168 | android:layout_marginRight="45dp" | 168 | android:layout_marginRight="45dp" |
169 | android:src="@drawable/arrow_tag" /> | 169 | android:src="@drawable/arrow_tag" /> |
170 | </RelativeLayout> | 170 | </RelativeLayout> |
171 | 171 | ||
172 | <RelativeLayout | 172 | <RelativeLayout |
173 | android:id="@+id/item_paypal" | 173 | android:id="@+id/item_paypal" |
174 | android:layout_width="match_parent" | 174 | android:layout_width="match_parent" |
175 | android:layout_height="wrap_content" | 175 | android:layout_height="wrap_content" |
176 | android:background="@drawable/payment_bg" | 176 | android:background="@drawable/payment_bg" |
177 | android:visibility="gone" > | 177 | android:visibility="gone" > |
178 | 178 | ||
179 | <ImageView | 179 | <ImageView |
180 | android:layout_width="wrap_content" | 180 | android:layout_width="wrap_content" |
181 | android:layout_height="wrap_content" | 181 | android:layout_height="wrap_content" |
182 | android:layout_centerVertical="true" | 182 | android:layout_centerVertical="true" |
183 | android:layout_marginLeft="10dp" | 183 | android:layout_marginLeft="10dp" |
184 | android:src="@drawable/logo_paypal" /> | 184 | android:src="@drawable/logo_paypal" /> |
185 | 185 | ||
186 | <ImageView | 186 | <ImageView |
187 | android:layout_width="wrap_content" | 187 | android:layout_width="wrap_content" |
188 | android:layout_height="wrap_content" | 188 | android:layout_height="wrap_content" |
189 | android:layout_alignParentRight="true" | 189 | android:layout_alignParentRight="true" |
190 | android:layout_centerVertical="true" | 190 | android:layout_centerVertical="true" |
191 | android:layout_marginRight="45dp" | 191 | android:layout_marginRight="45dp" |
192 | android:src="@drawable/arrow_tag" /> | 192 | android:src="@drawable/arrow_tag" /> |
193 | </RelativeLayout> | 193 | </RelativeLayout> |
194 | 194 | ||
195 | <RelativeLayout | 195 | <RelativeLayout |
196 | android:id="@+id/item_ngan" | 196 | android:id="@+id/item_ngan" |
197 | android:layout_width="match_parent" | 197 | android:layout_width="match_parent" |
198 | android:layout_height="wrap_content" | 198 | android:layout_height="wrap_content" |
199 | android:background="@drawable/payment_bg" | 199 | android:background="@drawable/payment_bg" |
200 | android:visibility="gone" > | 200 | android:visibility="gone" > |
201 | 201 | ||
202 | <ImageView | 202 | <ImageView |
203 | android:layout_width="wrap_content" | 203 | android:layout_width="wrap_content" |
204 | android:layout_height="wrap_content" | 204 | android:layout_height="wrap_content" |
205 | android:layout_centerVertical="true" | 205 | android:layout_centerVertical="true" |
206 | android:layout_marginLeft="10dp" | 206 | android:layout_marginLeft="10dp" |
207 | android:src="@drawable/logo_ngan" /> | 207 | android:src="@drawable/logo_ngan" /> |
208 | 208 | ||
209 | <ImageView | 209 | <ImageView |
210 | android:layout_width="wrap_content" | 210 | android:layout_width="wrap_content" |
211 | android:layout_height="wrap_content" | 211 | android:layout_height="wrap_content" |
212 | android:layout_alignParentRight="true" | 212 | android:layout_alignParentRight="true" |
213 | android:layout_centerVertical="true" | 213 | android:layout_centerVertical="true" |
214 | android:layout_marginRight="45dp" | 214 | android:layout_marginRight="45dp" |
215 | android:src="@drawable/arrow_tag" /> | 215 | android:src="@drawable/arrow_tag" /> |
216 | </RelativeLayout> | 216 | </RelativeLayout> |
217 | 217 | ||
218 | <RelativeLayout | 218 | <RelativeLayout |
219 | android:id="@+id/item_gp" | 219 | android:id="@+id/item_gp" |
220 | android:layout_width="match_parent" | 220 | android:layout_width="match_parent" |
221 | android:layout_height="wrap_content" | 221 | android:layout_height="wrap_content" |
222 | android:background="@drawable/payment_bg" | 222 | android:background="@drawable/payment_bg" |
223 | android:visibility="gone" > | 223 | android:visibility="gone" > |
224 | 224 | ||
225 | <ImageView | 225 | <ImageView |
226 | android:layout_width="wrap_content" | 226 | android:layout_width="wrap_content" |
227 | android:layout_height="wrap_content" | 227 | android:layout_height="wrap_content" |
228 | android:layout_centerVertical="true" | 228 | android:layout_centerVertical="true" |
229 | android:layout_marginLeft="10dp" | 229 | android:layout_marginLeft="10dp" |
230 | android:src="@drawable/logo_gp" /> | 230 | android:src="@drawable/logo_gp" /> |
231 | 231 | ||
232 | <ImageView | 232 | <ImageView |
233 | android:layout_width="wrap_content" | 233 | android:layout_width="wrap_content" |
234 | android:layout_height="wrap_content" | 234 | android:layout_height="wrap_content" |
235 | android:layout_alignParentRight="true" | 235 | android:layout_alignParentRight="true" |
236 | android:layout_centerVertical="true" | 236 | android:layout_centerVertical="true" |
237 | android:layout_marginRight="45dp" | 237 | android:layout_marginRight="45dp" |
238 | android:src="@drawable/arrow_tag" /> | 238 | android:src="@drawable/arrow_tag" /> |
239 | </RelativeLayout> | 239 | </RelativeLayout> |
240 | 240 | ||
241 | <RelativeLayout | 241 | <RelativeLayout |
242 | android:id="@+id/item_ep_th" | 242 | android:id="@+id/item_ep_th" |
243 | android:layout_width="match_parent" | 243 | android:layout_width="match_parent" |
244 | android:layout_height="wrap_content" | 244 | android:layout_height="wrap_content" |
245 | android:background="@drawable/payment_bg" | 245 | android:background="@drawable/payment_bg" |
246 | android:visibility="gone" > | 246 | android:visibility="gone" > |
247 | 247 | ||
248 | <ImageView | 248 | <ImageView |
249 | android:layout_width="wrap_content" | 249 | android:layout_width="wrap_content" |
250 | android:layout_height="wrap_content" | 250 | android:layout_height="wrap_content" |
251 | android:layout_centerVertical="true" | 251 | android:layout_centerVertical="true" |
252 | android:layout_marginLeft="10dp" | 252 | android:layout_marginLeft="10dp" |
253 | android:src="@drawable/logo_e2p" /> | 253 | android:src="@drawable/logo_e2p" /> |
254 | 254 | ||
255 | <ImageView | 255 | <ImageView |
256 | android:layout_width="wrap_content" | 256 | android:layout_width="wrap_content" |
257 | android:layout_height="wrap_content" | 257 | android:layout_height="wrap_content" |
258 | android:layout_alignParentRight="true" | 258 | android:layout_alignParentRight="true" |
259 | android:layout_centerVertical="true" | 259 | android:layout_centerVertical="true" |
260 | android:layout_marginRight="45dp" | 260 | android:layout_marginRight="45dp" |
261 | android:src="@drawable/arrow_tag" /> | 261 | android:src="@drawable/arrow_tag" /> |
262 | </RelativeLayout> | 262 | </RelativeLayout> |
263 | 263 | ||
264 | <RelativeLayout | 264 | <RelativeLayout |
265 | android:id="@+id/item_ep_my" | 265 | android:id="@+id/item_ep_my" |
266 | android:layout_width="match_parent" | 266 | android:layout_width="match_parent" |
267 | android:layout_height="wrap_content" | 267 | android:layout_height="wrap_content" |
268 | android:background="@drawable/payment_bg" | 268 | android:background="@drawable/payment_bg" |
269 | android:visibility="gone" > | 269 | android:visibility="gone" > |
270 | 270 | ||
271 | <ImageView | 271 | <ImageView |
272 | android:layout_width="wrap_content" | 272 | android:layout_width="wrap_content" |
273 | android:layout_height="wrap_content" | 273 | android:layout_height="wrap_content" |
274 | android:layout_centerVertical="true" | 274 | android:layout_centerVertical="true" |
275 | android:layout_marginLeft="10dp" | 275 | android:layout_marginLeft="10dp" |
276 | android:src="@drawable/logo_e2p" /> | 276 | android:src="@drawable/logo_e2p" /> |
277 | 277 | ||
278 | <ImageView | 278 | <ImageView |
279 | android:layout_width="wrap_content" | 279 | android:layout_width="wrap_content" |
280 | android:layout_height="wrap_content" | 280 | android:layout_height="wrap_content" |
281 | android:layout_alignParentRight="true" | 281 | android:layout_alignParentRight="true" |
282 | android:layout_centerVertical="true" | 282 | android:layout_centerVertical="true" |
283 | android:layout_marginRight="45dp" | 283 | android:layout_marginRight="45dp" |
284 | android:src="@drawable/arrow_tag" /> | 284 | android:src="@drawable/arrow_tag" /> |
285 | </RelativeLayout> | 285 | </RelativeLayout> |
286 | <RelativeLayout | 286 | <RelativeLayout |
287 | android:id="@+id/item_indomog" | 287 | android:id="@+id/item_indomog" |
288 | android:layout_width="match_parent" | 288 | android:layout_width="match_parent" |
289 | android:layout_height="wrap_content" | 289 | android:layout_height="wrap_content" |
290 | android:background="@drawable/payment_bg" | 290 | android:background="@drawable/payment_bg" |
291 | android:visibility="gone" > | 291 | android:visibility="gone" > |
292 | 292 | ||
293 | <ImageView | 293 | <ImageView |
294 | android:layout_width="wrap_content" | 294 | android:layout_width="wrap_content" |
295 | android:layout_height="wrap_content" | 295 | android:layout_height="wrap_content" |
296 | android:layout_centerVertical="true" | 296 | android:layout_centerVertical="true" |
297 | android:layout_marginLeft="10dp" | 297 | android:layout_marginLeft="10dp" |
298 | android:src="@drawable/logo_indomog" /> | 298 | android:src="@drawable/logo_indomog" /> |
299 | 299 | ||
300 | <ImageView | 300 | <ImageView |
301 | android:layout_width="wrap_content" | 301 | android:layout_width="wrap_content" |
302 | android:layout_height="wrap_content" | 302 | android:layout_height="wrap_content" |
303 | android:layout_alignParentRight="true" | 303 | android:layout_alignParentRight="true" |
304 | android:layout_centerVertical="true" | 304 | android:layout_centerVertical="true" |
305 | android:layout_marginRight="45dp" | 305 | android:layout_marginRight="45dp" |
306 | android:src="@drawable/arrow_tag" /> | 306 | android:src="@drawable/arrow_tag" /> |
307 | </RelativeLayout> | 307 | </RelativeLayout> |
308 | |||
309 | <RelativeLayout | ||
310 | android:id="@+id/item_yandex" | ||
311 | android:layout_width="match_parent" | ||
312 | android:layout_height="wrap_content" | ||
313 | android:background="@drawable/payment_bg" | ||
314 | android:visibility="gone" > | ||
315 | |||
316 | <ImageView | ||
317 | android:layout_width="wrap_content" | ||
318 | android:layout_height="wrap_content" | ||
319 | android:layout_centerVertical="true" | ||
320 | android:layout_marginLeft="10dp" | ||
321 | android:src="@drawable/logo_yandex" /> | ||
322 | |||
323 | <ImageView | ||
324 | android:layout_width="wrap_content" | ||
325 | android:layout_height="wrap_content" | ||
326 | android:layout_alignParentRight="true" | ||
327 | android:layout_centerVertical="true" | ||
328 | android:layout_marginRight="45dp" | ||
329 | android:src="@drawable/arrow_tag" /> | ||
330 | </RelativeLayout> | ||
331 | |||
332 | <RelativeLayout | ||
333 | android:id="@+id/item_vnp" | ||
334 | android:layout_width="match_parent" | ||
335 | android:layout_height="wrap_content" | ||
336 | android:background="@drawable/payment_bg" | ||
337 | android:visibility="gone" > | ||
338 | |||
339 | <ImageView | ||
340 | android:layout_width="wrap_content" | ||
341 | android:layout_height="wrap_content" | ||
342 | android:layout_centerVertical="true" | ||
343 | android:layout_marginLeft="10dp" | ||
344 | android:src="@drawable/logo_vnp" /> | ||
345 | |||
346 | <ImageView | ||
347 | android:layout_width="wrap_content" | ||
348 | android:layout_height="wrap_content" | ||
349 | android:layout_alignParentRight="true" | ||
350 | android:layout_centerVertical="true" | ||
351 | android:layout_marginRight="45dp" | ||
352 | android:src="@drawable/arrow_tag" /> | ||
353 | </RelativeLayout> | ||
354 | |||
355 | <RelativeLayout | ||
356 | android:id="@+id/item_vms" | ||
357 | android:layout_width="match_parent" | ||
358 | android:layout_height="wrap_content" | ||
359 | android:background="@drawable/payment_bg" | ||
360 | android:visibility="gone" > | ||
361 | |||
362 | <ImageView | ||
363 | android:layout_width="wrap_content" | ||
364 | android:layout_height="wrap_content" | ||
365 | android:layout_centerVertical="true" | ||
366 | android:layout_marginLeft="10dp" | ||
367 | android:src="@drawable/logo_vms" /> | ||
368 | |||
369 | <ImageView | ||
370 | android:layout_width="wrap_content" | ||
371 | android:layout_height="wrap_content" | ||
372 | android:layout_alignParentRight="true" | ||
373 | android:layout_centerVertical="true" | ||
374 | android:layout_marginRight="45dp" | ||
375 | android:src="@drawable/arrow_tag" /> | ||
376 | </RelativeLayout> | ||
377 | |||
378 | <RelativeLayout | ||
379 | android:id="@+id/item_fpt" | ||
380 | android:layout_width="match_parent" | ||
381 | android:layout_height="wrap_content" | ||
382 | android:background="@drawable/payment_bg" | ||
383 | android:visibility="gone" > | ||
384 | |||
385 | <ImageView | ||
386 | android:layout_width="wrap_content" | ||
387 | android:layout_height="wrap_content" | ||
388 | android:layout_centerVertical="true" | ||
389 | android:layout_marginLeft="10dp" | ||
390 | android:src="@drawable/logo_fpt" /> | ||
391 | |||
392 | <ImageView | ||
393 | android:layout_width="wrap_content" | ||
394 | android:layout_height="wrap_content" | ||
395 | android:layout_alignParentRight="true" | ||
396 | android:layout_centerVertical="true" | ||
397 | android:layout_marginRight="45dp" | ||
398 | android:src="@drawable/arrow_tag" /> | ||
399 | </RelativeLayout> | ||
400 | |||
401 | <RelativeLayout | ||
402 | android:id="@+id/item_vtt" | ||
403 | android:layout_width="match_parent" | ||
404 | android:layout_height="wrap_content" | ||
405 | android:background="@drawable/payment_bg" | ||
406 | android:visibility="gone" > | ||
407 | |||
408 | <ImageView | ||
409 | android:layout_width="wrap_content" | ||
410 | android:layout_height="wrap_content" | ||
411 | android:layout_centerVertical="true" | ||
412 | android:layout_marginLeft="10dp" | ||
413 | android:src="@drawable/logo_vtt" /> | ||
414 | |||
415 | <ImageView | ||
416 | android:layout_width="wrap_content" | ||
417 | android:layout_height="wrap_content" | ||
418 | android:layout_alignParentRight="true" | ||
419 | android:layout_centerVertical="true" | ||
420 | android:layout_marginRight="45dp" | ||
421 | android:src="@drawable/arrow_tag" /> | ||
422 | </RelativeLayout> | ||
423 | |||
424 | <RelativeLayout | ||
425 | android:id="@+id/item_mgc" | ||
426 | android:layout_width="match_parent" | ||
427 | android:layout_height="wrap_content" | ||
428 | android:background="@drawable/payment_bg" | ||
429 | android:visibility="gone" > | ||
430 | |||
431 | <ImageView | ||
432 | android:layout_width="wrap_content" | ||
433 | android:layout_height="wrap_content" | ||
434 | android:layout_centerVertical="true" | ||
435 | android:layout_marginLeft="10dp" | ||
436 | android:src="@drawable/logo_mgc" /> | ||
437 | |||
438 | <ImageView | ||
439 | android:layout_width="wrap_content" | ||
440 | android:layout_height="wrap_content" | ||
441 | android:layout_alignParentRight="true" | ||
442 | android:layout_centerVertical="true" | ||
443 | android:layout_marginRight="45dp" | ||
444 | android:src="@drawable/arrow_tag" /> | ||
445 | </RelativeLayout> | ||
446 | |||
447 | <RelativeLayout | ||
448 | android:id="@+id/item_onc" | ||
449 | android:layout_width="match_parent" | ||
450 | android:layout_height="wrap_content" | ||
451 | android:background="@drawable/payment_bg" | ||
452 | android:visibility="gone" > | ||
453 | |||
454 | <ImageView | ||
455 | android:layout_width="wrap_content" | ||
456 | android:layout_height="wrap_content" | ||
457 | android:layout_centerVertical="true" | ||
458 | android:layout_marginLeft="10dp" | ||
459 | android:src="@drawable/logo_onc" /> | ||
460 | |||
461 | <ImageView | ||
462 | android:layout_width="wrap_content" | ||
463 | android:layout_height="wrap_content" | ||
464 | android:layout_alignParentRight="true" | ||
465 | android:layout_centerVertical="true" | ||
466 | android:layout_marginRight="45dp" | ||
467 | android:src="@drawable/arrow_tag" /> | ||
468 | </RelativeLayout> | ||
469 | |||
470 | <RelativeLayout | ||
471 | android:id="@+id/item_boa" | ||
472 | android:layout_width="match_parent" | ||
473 | android:layout_height="wrap_content" | ||
474 | android:background="@drawable/payment_bg" | ||
475 | android:visibility="gone" > | ||
476 | |||
477 | <ImageView | ||
478 | android:layout_width="wrap_content" | ||
479 | android:layout_height="wrap_content" | ||
480 | android:layout_centerVertical="true" | ||
481 | android:layout_marginLeft="10dp" | ||
482 | android:src="@drawable/logo_boa" /> | ||
483 | |||
484 | <ImageView | ||
485 | android:layout_width="wrap_content" | ||
486 | android:layout_height="wrap_content" | ||
487 | android:layout_alignParentRight="true" | ||
488 | android:layout_centerVertical="true" | ||
489 | android:layout_marginRight="45dp" | ||
490 | android:src="@drawable/arrow_tag" /> | ||
491 | </RelativeLayout> | ||
492 | |||
493 | <RelativeLayout | ||
494 | android:id="@+id/item_coda" | ||
495 | android:layout_width="match_parent" | ||
496 | android:layout_height="wrap_content" | ||
497 | android:background="@drawable/payment_bg" | ||
498 | android:visibility="gone" > | ||
499 | |||
500 | <ImageView | ||
501 | android:layout_width="wrap_content" | ||
502 | android:layout_height="wrap_content" | ||
503 | android:layout_centerVertical="true" | ||
504 | android:layout_marginLeft="10dp" | ||
505 | android:src="@drawable/logo_coda" /> | ||
506 | |||
507 | <ImageView | ||
508 | android:layout_width="wrap_content" | ||
509 | android:layout_height="wrap_content" | ||
510 | android:layout_alignParentRight="true" | ||
511 | android:layout_centerVertical="true" | ||
512 | android:layout_marginRight="45dp" | ||
513 | android:src="@drawable/arrow_tag" /> | ||
514 | </RelativeLayout> | ||
515 | |||
516 | <RelativeLayout | ||
517 | android:id="@+id/item_globe" | ||
518 | android:layout_width="match_parent" | ||
519 | android:layout_height="wrap_content" | ||
520 | android:background="@drawable/payment_bg" | ||
521 | android:visibility="gone" > | ||
522 | |||
523 | <ImageView | ||
524 | android:layout_width="wrap_content" | ||
525 | android:layout_height="wrap_content" | ||
526 | android:layout_centerVertical="true" | ||
527 | android:layout_marginLeft="10dp" | ||
528 | android:src="@drawable/logo_globe" /> | ||
529 | |||
530 | <ImageView | ||
531 | android:layout_width="wrap_content" | ||
532 | android:layout_height="wrap_content" | ||
533 | android:layout_alignParentRight="true" | ||
534 | android:layout_centerVertical="true" | ||
535 | android:layout_marginRight="45dp" | ||
536 | android:src="@drawable/arrow_tag" /> | ||
537 | </RelativeLayout> | ||
308 | </LinearLayout> | 538 | </LinearLayout> |
309 | 539 | ||
310 | </ScrollView> | 540 | </ScrollView> |
android/GameSDKRelease/res/layout/fragment_signup.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | android:scrollbars="none" > | 5 | android:scrollbars="none" > |
6 | 6 | ||
7 | <LinearLayout | 7 | <LinearLayout |
8 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
9 | android:layout_height="wrap_content" | 9 | android:layout_height="wrap_content" |
10 | android:background="@drawable/dialog_bg" | 10 | android:background="@drawable/dialog_bg" |
11 | android:minWidth="293dp" | 11 | android:minWidth="293dp" |
12 | android:orientation="vertical" > | 12 | android:orientation="vertical" > |
13 | 13 | ||
14 | <EditText | 14 | <EditText |
15 | android:id="@+id/username" | 15 | android:id="@+id/username" |
16 | android:layout_width="match_parent" | 16 | android:layout_width="match_parent" |
17 | android:layout_height="wrap_content" | 17 | android:layout_height="wrap_content" |
18 | android:layout_margin="10dp" | 18 | android:layout_margin="10dp" |
19 | android:background="@drawable/et_bg" | 19 | android:background="@drawable/et_bg" |
20 | android:hint="@string/user_name_hint" | 20 | android:hint="@string/user_name_hint" |
21 | android:imeOptions="flagNoExtractUi" /> | 21 | android:imeOptions="flagNoExtractUi" |
22 | android:textColor="@color/black_text" /> | ||
22 | 23 | ||
23 | <EditText | 24 | <EditText |
24 | android:id="@+id/pwd" | 25 | android:id="@+id/pwd" |
25 | android:layout_width="match_parent" | 26 | android:layout_width="match_parent" |
26 | android:layout_height="wrap_content" | 27 | android:layout_height="wrap_content" |
27 | android:layout_margin="10dp" | 28 | android:layout_margin="10dp" |
28 | android:background="@drawable/et_bg" | 29 | android:background="@drawable/et_bg" |
29 | android:hint="@string/password_hint" | 30 | android:hint="@string/password_hint" |
30 | android:imeOptions="flagNoExtractUi" | 31 | android:imeOptions="flagNoExtractUi" |
31 | android:inputType="textPassword" /> | 32 | android:inputType="textPassword" |
33 | android:textColor="@color/black_text" /> | ||
32 | 34 | ||
33 | <Button | 35 | <Button |
34 | android:id="@+id/signup" | 36 | android:id="@+id/signup" |
35 | android:layout_width="match_parent" | 37 | android:layout_width="match_parent" |
36 | android:layout_height="wrap_content" | 38 | android:layout_height="wrap_content" |
37 | android:layout_margin="8dp" | 39 | android:layout_margin="8dp" |
38 | android:background="@drawable/btn_orange_bg" | 40 | android:background="@drawable/btn_orange_bg" |
39 | android:padding="5dp" | 41 | android:padding="5dp" |
40 | android:text="@string/signup" | 42 | android:text="@string/signup" |
41 | android:textColor="@android:color/white" | 43 | android:textColor="@android:color/white" |
42 | android:textSize="16sp" /> | 44 | android:textSize="16sp" /> |
43 | </LinearLayout> | 45 | </LinearLayout> |
44 | 46 | ||
45 | </ScrollView> | 47 | </ScrollView> |
android/GameSDKRelease/res/layout/fragment_yandex.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="match_parent" | ||
4 | android:layout_height="match_parent" | ||
5 | android:background="@color/payment_common_bg" > | ||
6 | |||
7 | <LinearLayout | ||
8 | android:layout_width="match_parent" | ||
9 | android:layout_height="match_parent" | ||
10 | android:orientation="vertical" > | ||
11 | |||
12 | <TextView | ||
13 | android:id="@+id/choice_title" | ||
14 | android:layout_width="match_parent" | ||
15 | android:layout_height="wrap_content" | ||
16 | android:background="@drawable/header_tip_bg" | ||
17 | android:gravity="center_vertical" | ||
18 | android:paddingLeft="10dp" | ||
19 | android:text="@string/amount_choice_tip" | ||
20 | android:textColor="@color/black_text" /> | ||
21 | |||
22 | <RelativeLayout | ||
23 | android:id="@+id/amount_choice" | ||
24 | android:layout_width="match_parent" | ||
25 | android:layout_height="wrap_content" | ||
26 | android:layout_marginLeft="13dp" | ||
27 | android:layout_marginRight="13dp" | ||
28 | android:layout_marginTop="16dp" | ||
29 | android:background="@drawable/choice_box_bg" > | ||
30 | |||
31 | <TextView | ||
32 | android:id="@+id/tv_amount" | ||
33 | android:layout_width="wrap_content" | ||
34 | android:layout_height="wrap_content" | ||
35 | android:layout_centerVertical="true" | ||
36 | android:layout_marginLeft="15dp" | ||
37 | android:text="50d" | ||
38 | android:textColor="@color/black_text" | ||
39 | android:textSize="18sp" | ||
40 | android:textStyle="italic" /> | ||
41 | |||
42 | <ImageView | ||
43 | android:id="@+id/arrow_tag" | ||
44 | android:layout_width="35dp" | ||
45 | android:layout_height="35dp" | ||
46 | android:layout_alignParentRight="true" | ||
47 | android:layout_centerVertical="true" | ||
48 | android:scaleType="center" | ||
49 | android:src="@drawable/ic_arrow_down" /> | ||
50 | |||
51 | <View | ||
52 | android:layout_width="1dp" | ||
53 | android:layout_height="match_parent" | ||
54 | android:layout_centerVertical="true" | ||
55 | android:layout_toLeftOf="@id/arrow_tag" | ||
56 | android:background="@drawable/split_vertical" /> | ||
57 | </RelativeLayout> | ||
58 | |||
59 | <Button | ||
60 | android:id="@+id/money" | ||
61 | android:layout_width="match_parent" | ||
62 | android:layout_height="wrap_content" | ||
63 | android:layout_marginLeft="13dp" | ||
64 | android:layout_marginRight="13dp" | ||
65 | android:layout_marginTop="23dp" | ||
66 | android:layout_weight="3" | ||
67 | android:background="@drawable/btn_orange_bg" | ||
68 | android:text="@string/yandex_money" | ||
69 | android:textColor="@android:color/white" /> | ||
70 | |||
71 | <Button | ||
72 | android:id="@+id/bank" | ||
73 | android:layout_width="match_parent" | ||
74 | android:layout_height="wrap_content" | ||
75 | android:layout_marginLeft="13dp" | ||
76 | android:layout_marginRight="13dp" | ||
77 | android:layout_marginTop="10dp" | ||
78 | android:layout_weight="3" | ||
79 | android:background="@drawable/btn_orange_bg" | ||
80 | android:text="@string/yandex_bank" | ||
81 | android:textColor="@android:color/white" /> | ||
82 | |||
83 | <Button | ||
84 | android:id="@+id/cash" | ||
85 | android:layout_width="match_parent" | ||
86 | android:layout_height="wrap_content" | ||
87 | android:layout_marginBottom="20dp" | ||
88 | android:layout_marginLeft="13dp" | ||
89 | android:layout_marginRight="13dp" | ||
90 | android:layout_marginTop="10dp" | ||
91 | android:layout_weight="3" | ||
92 | android:background="@drawable/btn_orange_bg" | ||
93 | android:text="@string/yandex_cash" | ||
94 | android:textColor="@android:color/white" /> | ||
95 | |||
96 | <TextView | ||
97 | android:id="@+id/summary_title" | ||
98 | android:layout_width="match_parent" | ||
99 | android:layout_height="wrap_content" | ||
100 | android:layout_marginLeft="13dp" | ||
101 | android:layout_marginRight="13dp" | ||
102 | android:background="@color/summary_bg" | ||
103 | android:paddingLeft="10dp" | ||
104 | android:textColor="@color/black_text" | ||
105 | android:textSize="12sp" /> | ||
106 | |||
107 | <TextView | ||
108 | android:id="@+id/intro" | ||
109 | android:layout_width="match_parent" | ||
110 | android:layout_height="wrap_content" | ||
111 | android:layout_marginBottom="10dp" | ||
112 | android:layout_marginLeft="13dp" | ||
113 | android:layout_marginRight="13dp" | ||
114 | android:background="@color/summary_bg" | ||
115 | android:padding="8dp" | ||
116 | android:textColor="@color/black_text" /> | ||
117 | </LinearLayout> | ||
118 | |||
119 | </ScrollView> |
android/GameSDKRelease/res/values/strings.xml
1 | <resources> | 1 | <resources> |
2 | 2 | ||
3 | <string name="app_name">LoginSDK</string> | 3 | <string name="app_name">LoginSDK</string> |
4 | <string name="user_name_hint">Email</string> | 4 | <string name="user_name_hint">Email</string> |
5 | <string name="password_hint">Password</string> | 5 | <string name="password_hint">Password</string> |
6 | <string name="quick_login">Play(%sS)</string> | 6 | <string name="quick_login">Play(%sS)</string> |
7 | <string name="quick_play">Play</string> | 7 | <string name="quick_play">Play</string> |
8 | <string name="login">Login</string> | 8 | <string name="login">Login</string> |
9 | <string name="signup">Signup</string> | 9 | <string name="signup">Signup</string> |
10 | <string name="bind">Bound to email</string> | 10 | <string name="bind">Bound to email</string> |
11 | <string name="loading">Loading</string> | 11 | <string name="loading">Loading</string> |
12 | 12 | ||
13 | <!-- toast --> | 13 | <!-- toast --> |
14 | <string name="illegal_uname_tip">Invalid Email</string> | 14 | <string name="illegal_uname_tip">Invalid Email</string> |
15 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> | 15 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> |
16 | <string name="illegal_user_exist">Email has already used</string> | 16 | <string name="illegal_user_exist">Email has already used</string> |
17 | <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string> | 17 | <string name="illegal_pwd_invalid">Password is incorrect. Please try again.</string> |
18 | <string name="illegal_user_not_exist">Invalid Email</string> | 18 | <string name="illegal_user_not_exist">Invalid Email</string> |
19 | <string name="invalid_email">Invalid Email</string> | 19 | <string name="invalid_email">Invalid Email</string> |
20 | <string name="login_fail">Login failed</string> | 20 | <string name="login_fail">Login failed</string> |
21 | <string name="signup_fail">Signup failed</string> | 21 | <string name="signup_fail">Signup failed</string> |
22 | <string name="bind_fail">Bound failed</string> | 22 | <string name="bind_fail">Bound failed</string> |
23 | <string name="net_error">Internet unavailable, please check</string> | 23 | <string name="net_error">Internet unavailable, please check</string> |
24 | <string name="gump_login">Login with Gumptech</string> | 24 | <string name="gump_login">Login with Gumptech</string> |
25 | <string name="signup_success">Sign Up Successfully</string> | 25 | <string name="signup_success">Sign Up Successfully</string> |
26 | <!-- facebook --> | 26 | <!-- facebook --> |
27 | <string name="com_facebook_dialogloginactivity_ok_button">OK</string> | 27 | <string name="com_facebook_dialogloginactivity_ok_button">OK</string> |
28 | <string name="com_facebook_loginview_log_out_button">Log out</string> | 28 | <string name="com_facebook_loginview_log_out_button">Log out</string> |
29 | <!-- string name="com_facebook_loginview_log_in_button">Log in with Facebook</string --> | 29 | <!-- string name="com_facebook_loginview_log_in_button">Log in with Facebook</string --> |
30 | <string name="com_facebook_loginview_log_in_button">Sign up with Facebook</string> | 30 | <string name="com_facebook_loginview_log_in_button">Sign up with Facebook</string> |
31 | <string name="com_facebook_loginview_logged_in_as">Logged in as: %1$s</string> | 31 | <string name="com_facebook_loginview_logged_in_as">Logged in as: %1$s</string> |
32 | <string name="com_facebook_loginview_logged_in_using_facebook">Logged in using Facebook</string> | 32 | <string name="com_facebook_loginview_logged_in_using_facebook">Logged in using Facebook</string> |
33 | <string name="com_facebook_loginview_log_out_action">Log out</string> | 33 | <string name="com_facebook_loginview_log_out_action">Log out</string> |
34 | <string name="com_facebook_loginview_cancel_action">Cancel</string> | 34 | <string name="com_facebook_loginview_cancel_action">Cancel</string> |
35 | <string name="com_facebook_logo_content_description">Facebook Logo</string> | 35 | <string name="com_facebook_logo_content_description">Facebook Logo</string> |
36 | <string name="com_facebook_usersettingsfragment_log_in_button">Log in…</string> | 36 | <string name="com_facebook_usersettingsfragment_log_in_button">Log in…</string> |
37 | <string name="com_facebook_usersettingsfragment_logged_in">Logged in</string> | 37 | <string name="com_facebook_usersettingsfragment_logged_in">Logged in</string> |
38 | <string name="com_facebook_usersettingsfragment_not_logged_in">Not logged in</string> | 38 | <string name="com_facebook_usersettingsfragment_not_logged_in">Not logged in</string> |
39 | <string name="com_facebook_placepicker_subtitle_format">%1$s • %2$,d were here</string> | 39 | <string name="com_facebook_placepicker_subtitle_format">%1$s • %2$,d were here</string> |
40 | <string name="com_facebook_placepicker_subtitle_catetory_only_format">%1$s</string> | 40 | <string name="com_facebook_placepicker_subtitle_catetory_only_format">%1$s</string> |
41 | <string name="com_facebook_placepicker_subtitle_were_here_only_format">%1$,d were here</string> | 41 | <string name="com_facebook_placepicker_subtitle_were_here_only_format">%1$,d were here</string> |
42 | <string name="com_facebook_picker_done_button_text">Done</string> | 42 | <string name="com_facebook_picker_done_button_text">Done</string> |
43 | <string name="com_facebook_choose_friends">Choose Friends</string> | 43 | <string name="com_facebook_choose_friends">Choose Friends</string> |
44 | <string name="com_facebook_nearby">Nearby</string> | 44 | <string name="com_facebook_nearby">Nearby</string> |
45 | <string name="com_facebook_loading">Loading...</string> | 45 | <string name="com_facebook_loading">Loading...</string> |
46 | <string name="com_facebook_internet_permission_error_title">AndroidManifest Error</string> | 46 | <string name="com_facebook_internet_permission_error_title">AndroidManifest Error</string> |
47 | <string name="com_facebook_internet_permission_error_message">WebView login requires INTERNET permission</string> | 47 | <string name="com_facebook_internet_permission_error_message">WebView login requires INTERNET permission</string> |
48 | <string name="com_facebook_requesterror_web_login">Your Facebook account is locked. Please log into www.facebook.com to continue.</string> | 48 | <string name="com_facebook_requesterror_web_login">Your Facebook account is locked. Please log into www.facebook.com to continue.</string> |
49 | <string name="com_facebook_requesterror_relogin">Please log into this app again to reconnect your Facebook account.</string> | 49 | <string name="com_facebook_requesterror_relogin">Please log into this app again to reconnect your Facebook account.</string> |
50 | <string name="com_facebook_requesterror_password_changed">Your Facebook password has changed. Please log into this app again to reconnect your Facebook account.</string> | 50 | <string name="com_facebook_requesterror_password_changed">Your Facebook password has changed. Please log into this app again to reconnect your Facebook account.</string> |
51 | <string name="com_facebook_requesterror_reconnect">Please log into this app again to reconnect your Facebook account.</string> | 51 | <string name="com_facebook_requesterror_reconnect">Please log into this app again to reconnect your Facebook account.</string> |
52 | <string name="com_facebook_requesterror_permissions">This app doesn’t have permission to do this. To change permissions, try logging into the app again.</string> | 52 | <string name="com_facebook_requesterror_permissions">This app doesn’t have permission to do this. To change permissions, try logging into the app again.</string> |
53 | 53 | ||
54 | <!-- 支付相关 --> | 54 | <!-- 支付相关 --> |
55 | <!-- title --> | 55 | <!-- title --> |
56 | <string name="title_mycard">Mycard點數儲值</string> | 56 | <string name="title_mycard">Mycard點數儲值</string> |
57 | <string name="title_mycard_member">Mycard會員扣點</string> | 57 | <string name="title_mycard_member">Mycard會員扣點</string> |
58 | <string name="title_mycard_billing">Mycard Billing</string> | 58 | <string name="title_mycard_billing">Mycard Billing</string> |
59 | <string name="title_mol">MOLPoints Gift Card</string> | 59 | <string name="title_mol">MOLPoints Gift Card</string> |
60 | <string name="title_mol_wallet">MOLPoints E-Wallet</string> | 60 | <string name="title_mol_wallet">MOLPoints E-Wallet</string> |
61 | <string name="title_12call">12Call</string> | 61 | <string name="title_12call">12Call</string> |
62 | <string name="title_tm">True Money</string> | 62 | <string name="title_tm">True Money</string> |
63 | <string name="title_zest">Zest</string> | 63 | <string name="title_zest">Zest</string> |
64 | <string name="title_gp">Google play</string> | 64 | <string name="title_gp">Google play</string> |
65 | <string name="title_paypal">Paypal</string> | 65 | <string name="title_paypal">Paypal</string> |
66 | <string name="title_rixty">Rixty</string> | 66 | <string name="title_rixty">Rixty</string> |
67 | <string name="title_ngan">NganLoung</string> | 67 | <string name="title_ngan">NganLoung</string> |
68 | <string name="title_easy2pay">Easy2Pay</string> | 68 | <string name="title_easy2pay">Easy2Pay</string> |
69 | <string name="title_boa">BOACompra</string> | ||
69 | <string name="title_indomog_voucher">Indomog</string> | 70 | <string name="title_indomog_voucher">Indomog</string> |
70 | <string name="title_indomog_account">Indomog Account Balance</string> | 71 | <string name="title_indomog_account">Indomog Account Balance</string> |
72 | <string name="title_yandex">Yandex</string> | ||
73 | <string name="title_vnpt_vnp">VinaPhone</string> | ||
74 | <string name="title_vnpt_vms">MobiFone</string> | ||
75 | <string name="title_vnpt_onc">Oncash</string> | ||
76 | <string name="title_vnpt_fpt">FPT</string> | ||
77 | <string name="title_vnpt_vtt">Viettel</string> | ||
78 | <string name="title_vnpt_mgc">MegaCard</string> | ||
79 | <string name="title_coda">Coda Payment</string> | ||
71 | <string name="title_payment_choice">Select payment methods</string> | 80 | <string name="title_payment_choice">Select payment methods</string> |
72 | <!-- summary title --> | 81 | <!-- summary title --> |
73 | <string name="summary_title">Price list:</string> | 82 | <string name="summary_title">Price list:</string> |
74 | 83 | ||
75 | <!-- payment --> | 84 | <!-- payment --> |
76 | <string name="useranme_pattern">Account:%s</string> | 85 | <string name="useranme_pattern">Account:%s</string> |
77 | <string name="mol_card_hint">Card No.</string> | 86 | <string name="mol_card_hint">Card No.</string> |
78 | <string name="mol_pass_hint">Password</string> | 87 | <string name="mol_pass_hint">Password</string> |
79 | <string name="pay_ok">OK</string> | 88 | <string name="pay_ok">OK</string> |
80 | <string name="pay_error">Charging Failed, please try again.</string> | 89 | <string name="pay_error">Charging Failed, please try again.</string> |
81 | <string name="card_input_tip">Card information</string> | 90 | <string name="card_input_tip">Card information</string> |
82 | <string name="amount_choice_tip">Please select the amount</string> | 91 | <string name="amount_choice_tip">Please select the amount</string> |
83 | 92 | ||
84 | <!-- paypal --> | 93 | <!-- paypal --> |
85 | <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string> | 94 | <string name="paypal_amount_hint">Please enter the payment amount (Integer between %s to 10000)</string> |
86 | <string name="paypal_choice_tip">Please select the amount</string> | 95 | <string name="paypal_choice_tip">Please select the amount</string> |
87 | <!-- gp --> | 96 | <!-- gp --> |
88 | <string name="gp_choice_tip">Please select the amount</string> | 97 | <string name="gp_choice_tip">Please select the amount</string> |
98 | <!-- yandex --> | ||
99 | <string name="yandex_money">Yandex Money</string> | ||
100 | <string name="yandex_bank">Yandex Bank</string> | ||
101 | <string name="yandex_cash">Yandex Cash</string> | ||
89 | 102 | ||
90 | </resources> | 103 | </resources> |
android/GameSDKRelease/res/values/themes.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <resources> | 2 | <resources> |
3 | 3 | ||
4 | <style name="container_dialog" > | 4 | <style name="container_dialog" > |
5 | <item name="android:windowFrame">@null</item> | 5 | <item name="android:windowFrame">@null</item> |
6 | <item name="android:windowIsFloating">true</item> | 6 | <item name="android:windowIsFloating">true</item> |
7 | <item name="android:windowIsTranslucent">true</item> | 7 | <item name="android:windowIsTranslucent">true</item> |
8 | <item name="android:windowNoTitle">true</item> | 8 | <item name="android:windowNoTitle">true</item> |
9 | <item name="android:windowBackground">@color/transparent</item> | 9 | <item name="android:windowBackground">@color/transparent</item> |
10 | <item name="android:backgroundDimEnabled">true</item> | 10 | <item name="android:backgroundDimEnabled">true</item> |
11 | <item name="android:windowFullscreen">true</item> | 11 | <item name="android:windowFullscreen">true</item> |
12 | </style> | 12 | </style> |
13 | 13 | ||
14 | <style name="ex_win" parent="@style/container_dialog"> | 14 | <style name="ex_win" parent="@style/container_dialog"> |
15 | <item name="android:backgroundDimEnabled">true</item> | 15 | <item name="android:backgroundDimEnabled">true</item> |
16 | </style> | 16 | </style> |
17 | 17 | ||
18 | </resources> | 18 | </resources> |
android/GameSDKSample/AndroidManifest.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | package="com.gumptech.loginsdk.sample" | 3 | package="com.gumptech.loginsdk.sample" |
4 | android:versionCode="4" | 4 | android:versionCode="4" |
5 | android:versionName="1.4" > | 5 | android:versionName="1.4" > |
6 | 6 | ||
7 | <uses-sdk | 7 | <uses-sdk |
8 | android:minSdkVersion="8" | 8 | android:minSdkVersion="8" |
9 | android:targetSdkVersion="8" /> | 9 | android:targetSdkVersion="8" /> |
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 | <!-- for card.io card scanning --> | 20 | <!-- for card.io card scanning --> |
21 | <uses-permission android:name="android.permission.CAMERA" /> | 21 | <uses-permission android:name="android.permission.CAMERA" /> |
22 | <uses-permission android:name="android.permission.VIBRATE" /> | 22 | <uses-permission android:name="android.permission.VIBRATE" /> |
23 | <uses-permission android:name="android.permission.SEND_SMS"/> | 23 | <uses-permission android:name="android.permission.SEND_SMS"/> |
24 | <!-- coda --> | ||
25 | <uses-permission android:name="android.permission.RECEIVE_SMS" /> | ||
26 | <uses-permission android:name="android.permission.READ_SMS" /> | ||
27 | <uses-permission android:name="android.permission.WRITE_SMS" /> | ||
28 | <uses-permission android:name="android.permission.GET_TASKS" /> | ||
24 | 29 | ||
25 | <uses-feature | 30 | <uses-feature |
26 | android:name="android.hardware.camera" | 31 | android:name="android.hardware.camera" |
27 | android:required="false" /> | 32 | android:required="false" /> |
28 | <uses-feature | 33 | <uses-feature |
29 | android:name="android.hardware.camera.autofocus" | 34 | android:name="android.hardware.camera.autofocus" |
30 | android:required="false" /> | 35 | android:required="false" /> |
31 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> | 36 | <!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. --> |
32 | <uses-permission android:name="com.android.vending.BILLING" /> | 37 | <uses-permission android:name="com.android.vending.BILLING" /> |
33 | 38 | ||
34 | <application | 39 | <application |
35 | android:allowBackup="true" | 40 | android:allowBackup="true" |
36 | android:icon="@drawable/ic_launcher" | 41 | android:icon="@drawable/ic_launcher" |
37 | android:label="@string/app_name" > | 42 | android:label="@string/app_name" > |
38 | <activity | 43 | <activity |
39 | android:name="com.gumptech.loginsdk.sample.MainActivity" | 44 | android:name="com.gumptech.loginsdk.sample.MainActivity" |
40 | android:configChanges="navigation|orientation|keyboard" | 45 | android:configChanges="navigation|orientation|keyboard" |
41 | android:label="@string/app_name" | 46 | android:label="@string/app_name" |
42 | android:screenOrientation="portrait" > | 47 | android:screenOrientation="portrait" > |
43 | <intent-filter> | 48 | <intent-filter> |
44 | <action android:name="android.intent.action.MAIN" /> | 49 | <action android:name="android.intent.action.MAIN" /> |
45 | 50 | ||
46 | <category android:name="android.intent.category.LAUNCHER" /> | 51 | <category android:name="android.intent.category.LAUNCHER" /> |
47 | </intent-filter> | 52 | </intent-filter> |
48 | </activity> | 53 | </activity> |
49 | <activity | 54 | <activity |
50 | android:name="com.gumptech.sdk.ContainerActivity" | 55 | android:name="com.gumptech.sdk.ContainerActivity" |
51 | android:configChanges="orientation|screenLayout" | 56 | android:configChanges="orientation|screenLayout" |
52 | android:screenOrientation="portrait" | 57 | android:screenOrientation="portrait" |
53 | android:theme="@style/container_dialog" > | 58 | android:theme="@style/container_dialog" > |
54 | </activity> | 59 | </activity> |
55 | <activity | 60 | <activity |
56 | android:name="com.facebook.LoginActivity" | 61 | android:name="com.facebook.LoginActivity" |
57 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > | 62 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
58 | </activity> | 63 | </activity> |
59 | <activity | 64 | <activity |
60 | android:name="com.gumptech.sdk.PaymentActivity" | 65 | android:name="com.gumptech.sdk.PaymentActivity" |
61 | android:configChanges="orientation|screenLayout" | 66 | android:configChanges="orientation|screenLayout" |
62 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > | 67 | android:theme="@android:style/Theme.Translucent.NoTitleBar" > |
63 | </activity> | 68 | </activity> |
64 | 69 | ||
65 | <activity | 70 | <activity |
66 | android:name="com.gumptech.sdk.ExchangeWindow" | 71 | android:name="com.gumptech.sdk.ExchangeWindow" |
67 | android:configChanges="orientation|screenLayout" | 72 | android:configChanges="orientation|screenLayout" |
68 | android:theme="@style/ex_win" > | 73 | android:theme="@style/ex_win" > |
69 | </activity> | 74 | </activity> |
70 | <!-- paypal --> | 75 | <!-- paypal --> |
71 | <service | 76 | <service |
72 | android:name="com.paypal.android.sdk.payments.PayPalService" | 77 | android:name="com.paypal.android.sdk.payments.PayPalService" |
73 | android:exported="false" /> | 78 | android:exported="false" /> |
74 | 79 | ||
75 | <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" /> | 80 | <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" /> |
76 | <activity android:name="com.paypal.android.sdk.payments.LoginActivity" /> | 81 | <activity android:name="com.paypal.android.sdk.payments.LoginActivity" /> |
77 | <activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" /> | 82 | <activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" /> |
78 | <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" /> | 83 | <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" /> |
79 | <activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" /> | 84 | <activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" /> |
80 | <activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" /> | 85 | <activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" /> |
81 | <activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" /> | 86 | <activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" /> |
82 | <activity | 87 | <activity |
83 | android:name="io.card.payment.CardIOActivity" | 88 | android:name="io.card.payment.CardIOActivity" |
84 | android:configChanges="keyboardHidden|orientation" /> | 89 | android:configChanges="keyboardHidden|orientation" /> |
85 | <activity android:name="io.card.payment.DataEntryActivity" /> | 90 | <activity android:name="io.card.payment.DataEntryActivity" /> |
91 | <activity | ||
92 | android:name="com.android.easy2pay.Easy2PayScreen" | ||
93 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | ||
94 | <activity | ||
95 | android:name="com.codapayments.sdk.pay.CodaWeb" | ||
96 | android:alwaysRetainTaskState="true" | ||
97 | android:configChanges="orientation|screenSize" | ||
98 | android:screenOrientation="unspecified" > | ||
99 | </activity> | ||
100 | |||
101 | <receiver | ||
102 | android:name="com.codapayments.sdk.message.PendingTxnReceiver" | ||
103 | android:enabled="true" > | ||
104 | </receiver> | ||
86 | </application> | 105 | </application> |
87 | 106 | ||
88 | </manifest> | 107 | </manifest> |
android/GameSDKSample/res/layout/activity_main.xml
1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
2 | android:layout_width="match_parent" | 2 | android:layout_width="match_parent" |
3 | android:layout_height="match_parent" | 3 | android:layout_height="match_parent" |
4 | android:background="@android:color/white" | 4 | android:background="@android:color/white" |
5 | android:orientation="vertical" > | 5 | android:orientation="vertical" > |
6 | 6 | ||
7 | <TextView | 7 | <TextView |
8 | android:id="@+id/user_info" | 8 | android:id="@+id/user_info" |
9 | android:layout_width="wrap_content" | 9 | android:layout_width="wrap_content" |
10 | android:layout_height="wrap_content" /> | 10 | android:layout_height="wrap_content" /> |
11 | 11 | ||
12 | <Button | 12 | <Button |
13 | android:id="@+id/logout" | 13 | android:id="@+id/logout" |
14 | android:layout_width="wrap_content" | 14 | android:layout_width="wrap_content" |
15 | android:layout_height="wrap_content" | 15 | android:layout_height="wrap_content" |
16 | android:text="logout" | 16 | android:text="logout" |
17 | android:visibility="gone" /> | 17 | android:visibility="gone" /> |
18 | 18 | ||
19 | <Button | 19 | <Button |
20 | android:id="@+id/bind" | ||
21 | android:layout_width="wrap_content" | ||
22 | android:layout_height="wrap_content" | ||
23 | android:text="bound" | ||
24 | android:visibility="gone" /> | ||
25 | |||
26 | <Button | ||
27 | android:id="@+id/pay" | 20 | android:id="@+id/pay" |
28 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" |
29 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" |
30 | android:text="pay" /> | 23 | android:text="pay" /> |
31 | 24 | ||
32 | </LinearLayout> | 25 | </LinearLayout> |
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.Intent; | 4 | import android.content.Intent; |
5 | import android.os.Bundle; | 5 | import android.os.Bundle; |
6 | import android.util.Log; | 6 | import android.util.Log; |
7 | import android.view.View; | 7 | import android.view.View; |
8 | import android.widget.Button; | 8 | import android.widget.Button; |
9 | import android.widget.TextView; | 9 | import android.widget.TextView; |
10 | import android.widget.Toast; | 10 | import android.widget.Toast; |
11 | 11 | ||
12 | import com.gumptech.sdk.GumpPreference; | ||
13 | import com.gumptech.sdk.GumpSDK; | 12 | import com.gumptech.sdk.GumpSDK; |
14 | 13 | ||
15 | public class MainActivity extends Activity implements GumpSDK.Callback { | 14 | public class MainActivity extends Activity implements GumpSDK.Callback { |
16 | 15 | ||
17 | private TextView userInfo; | 16 | private TextView userInfo; |
18 | 17 | ||
19 | private Button btnLogout; | 18 | private Button btnLogout; |
20 | private Button btnBind; | 19 | |
20 | private String appId = "10009"; | ||
21 | 21 | ||
22 | @Override | 22 | @Override |
23 | protected void onCreate(Bundle savedInstanceState) { | 23 | protected void onCreate(Bundle savedInstanceState) { |
24 | super.onCreate(savedInstanceState); | 24 | super.onCreate(savedInstanceState); |
25 | setContentView(R.layout.activity_main); | 25 | setContentView(R.layout.activity_main); |
26 | userInfo = (TextView) findViewById(R.id.user_info); | 26 | userInfo = (TextView) findViewById(R.id.user_info); |
27 | btnLogout = (Button) findViewById(R.id.logout); | 27 | btnLogout = (Button) findViewById(R.id.logout); |
28 | btnBind = (Button) findViewById(R.id.bind); | ||
29 | btnLogout.setOnClickListener(new View.OnClickListener() { | 28 | btnLogout.setOnClickListener(new View.OnClickListener() { |
30 | 29 | ||
31 | @Override | 30 | @Override |
32 | public void onClick(View v) { | 31 | public void onClick(View v) { |
33 | GumpSDK.logout(MainActivity.this, MainActivity.this); | 32 | GumpSDK.logout(MainActivity.this, MainActivity.this); |
34 | } | 33 | } |
35 | }); | 34 | }); |
36 | btnBind.setOnClickListener(new View.OnClickListener() { | ||
37 | |||
38 | @Override | ||
39 | public void onClick(View v) { | ||
40 | GumpSDK.boundMail(MainActivity.this); | ||
41 | } | ||
42 | }); | ||
43 | findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() { | 35 | findViewById(R.id.pay).setOnClickListener(new View.OnClickListener() { |
44 | 36 | ||
45 | @Override | 37 | @Override |
46 | public void onClick(View v) { | 38 | public void onClick(View v) { |
47 | Bundle payInfo = new Bundle(); | 39 | Bundle payInfo = new Bundle(); |
48 | payInfo.putString("nick", "thi"); | 40 | payInfo.putString("nick", "thi"); |
49 | payInfo.putString("product", "元宝"); | 41 | payInfo.putString("product", "元宝"); |
50 | payInfo.putFloat("amount", 0.0f); | 42 | payInfo.putFloat("amount", 0.0f); |
51 | payInfo.putString("extraInfo", "This is demo!"); | 43 | payInfo.putString("extraInfo", "This is demo!"); |
52 | payInfo.putString("serverId", "B4003"); | 44 | payInfo.putString("serverId", "B4003"); |
53 | payInfo.putString("roleId", "10010"); | 45 | payInfo.putString("roleId", "10010"); |
54 | GumpSDK.pay(MainActivity.this, payInfo); | 46 | GumpSDK.pay(MainActivity.this, payInfo); |
55 | } | 47 | } |
56 | }); | 48 | }); |
57 | GumpSDK.init("10014", "7b9d31aa17b849b238ab79cef0733041", "301596413332339", "1000"); | 49 | GumpSDK.init(getApplicationContext(), appId, "483d8df877b31405c1e8fe4247f02d86", "301596413332339", "1000"); |
58 | GumpSDK.start(this); | 50 | GumpSDK.start(this); |
59 | } | 51 | } |
60 | 52 | ||
61 | @Override | 53 | @Override |
62 | protected void onActivityResult(int requestCode, int resultCode, Intent data) { | 54 | protected void onActivityResult(int requestCode, int resultCode, Intent data) { |
63 | Log.d("Main", "activity requestCode:" + requestCode + ",resultCode:" + resultCode); | 55 | Log.d("Main", "activity requestCode:" + requestCode + ",resultCode:" + resultCode); |
64 | if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) { | 56 | if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) { |
65 | if (resultCode == RESULT_OK) { | 57 | if (resultCode == RESULT_OK) { |
66 | String uid = data.getStringExtra("userId"); | 58 | String uid = data.getStringExtra("userId"); |
67 | int accountType = data.getIntExtra("accountType", -1); | 59 | int accountType = data.getIntExtra("accountType", -1); |
68 | String sessionkey = data.getStringExtra("sessionKey"); | 60 | String sessionkey = data.getStringExtra("sessionKey"); |
69 | userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey); | 61 | userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey); |
70 | btnLogout.setVisibility(View.VISIBLE); | 62 | btnLogout.setVisibility(View.VISIBLE); |
71 | if (accountType == GumpPreference.ACCOUNT_TYPE_QUICK_REG) | ||
72 | btnBind.setVisibility(View.VISIBLE); | ||
73 | } else if (resultCode == RESULT_CANCELED) { | 63 | } else if (resultCode == RESULT_CANCELED) { |
74 | Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); | 64 | Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); |
75 | } | 65 | } |
76 | } else if (requestCode == GumpSDK.PAY_REQUEST_CODE) { | 66 | } else if (requestCode == GumpSDK.PAY_REQUEST_CODE) { |
77 | if (resultCode == RESULT_OK) { | 67 | if (resultCode == RESULT_OK) { |
78 | int code = data.getIntExtra("code", -1); | 68 | int code = data.getIntExtra("code", -1); |
79 | String msg = data.getStringExtra("msg"); | 69 | String msg = data.getStringExtra("msg"); |
80 | int orderId = data.getIntExtra("orderId", -1); | 70 | String orderId = data.getStringExtra("orderId"); |
81 | String extraInfo = data.getStringExtra("extraInfo"); | 71 | String extraInfo = data.getStringExtra("extraInfo"); |
82 | Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show(); | 72 | Toast.makeText(this, "pay result: " + code + "," + msg + ",orderId:" + orderId + ",extraInfo:" + extraInfo, Toast.LENGTH_SHORT).show(); |
83 | } else if (resultCode == RESULT_CANCELED) { | 73 | } else if (resultCode == RESULT_CANCELED) { |
84 | Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); | 74 | Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show(); |
85 | } | 75 | } |
86 | } | 76 | } |
87 | super.onActivityResult(requestCode, resultCode, data); | 77 | super.onActivityResult(requestCode, resultCode, data); |
88 | } | 78 | } |
89 | 79 | ||
90 | @Override | 80 | @Override |
91 | public void onLogout() { | 81 | public void onLogout() { |
92 | btnLogout.setVisibility(View.GONE); | 82 | btnLogout.setVisibility(View.GONE); |
93 | if (btnBind.getVisibility() == View.VISIBLE) | ||
94 | btnBind.setVisibility(View.GONE); | ||
95 | userInfo.append(" is logout"); | 83 | userInfo.append(" is logout"); |
96 | } | 84 | } |
97 | 85 | ||
98 | } | 86 | } |