Commit 4c1c42af510b95e7a9bc9c2dce4895444d3fbf3b
1 parent
312c33111f
Exists in
master
增加vk登录
修改ui布局
Showing 85 changed files with 397 additions and 365 deletions Side-by-side Diff
- android/GameSDKRelease/libs/GameSDK_v3.2.0_proguard.jar
- android/GameSDKRelease/libs/GameSDK_v3.3.0_proguard.jar
- android/GameSDKRelease/libs/android-support-v4.jar
- android/GameSDKRelease/project.properties
- android/GameSDKRelease/res/drawable-hdpi/arrow_tag.png
- android/GameSDKRelease/res/drawable-hdpi/bottom_light_bg.png
- android/GameSDKRelease/res/drawable-hdpi/btn_orange_normal.png
- android/GameSDKRelease/res/drawable-hdpi/btn_orange_pressed.png
- android/GameSDKRelease/res/drawable-hdpi/horizontal_line.png
- android/GameSDKRelease/res/drawable-hdpi/ic_back_light.png
- android/GameSDKRelease/res/drawable-hdpi/ic_cancel_dark.png
- android/GameSDKRelease/res/drawable-hdpi/ic_fb.png
- android/GameSDKRelease/res/drawable-hdpi/ic_pwd.png
- android/GameSDKRelease/res/drawable-hdpi/ic_user.png
- android/GameSDKRelease/res/drawable-hdpi/ic_vk.png
- android/GameSDKRelease/res/drawable-hdpi/loading.png
- android/GameSDKRelease/res/drawable-hdpi/logo.png
- android/GameSDKRelease/res/drawable-hdpi/title_light_bg.png
- android/GameSDKRelease/res/drawable-hdpi/utype_fb.png
- android/GameSDKRelease/res/drawable-hdpi/utype_gump.png
- android/GameSDKRelease/res/drawable-hdpi/utype_quick.png
- android/GameSDKRelease/res/drawable-mdpi/arrow_tag.png
- android/GameSDKRelease/res/drawable-mdpi/btn_orange_normal.png
- android/GameSDKRelease/res/drawable-mdpi/btn_orange_pressed.png
- android/GameSDKRelease/res/drawable-mdpi/ic_back_light.png
- android/GameSDKRelease/res/drawable-mdpi/ic_cancel_dark.png
- android/GameSDKRelease/res/drawable-mdpi/utype_fb.png
- android/GameSDKRelease/res/drawable-mdpi/utype_gump.png
- android/GameSDKRelease/res/drawable-mdpi/utype_quick.png
- android/GameSDKRelease/res/drawable-nodpi/r_bg_normal.9.png
- android/GameSDKRelease/res/drawable-nodpi/r_bg_selected.9.png
- android/GameSDKRelease/res/drawable-xhdpi/arrow_tag.png
- android/GameSDKRelease/res/drawable-xhdpi/bottom_light_bg.png
- android/GameSDKRelease/res/drawable-xhdpi/btn_orange_normal.png
- android/GameSDKRelease/res/drawable-xhdpi/btn_orange_pressed.png
- android/GameSDKRelease/res/drawable-xhdpi/horizontal_line.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_arrow_down.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_back_light.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_cancel_dark.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_fb.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_pwd.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_user.png
- android/GameSDKRelease/res/drawable-xhdpi/ic_vk.png
- android/GameSDKRelease/res/drawable-xhdpi/loading.png
- android/GameSDKRelease/res/drawable-xhdpi/logo.png
- android/GameSDKRelease/res/drawable-xhdpi/title_light_bg.png
- android/GameSDKRelease/res/drawable-xhdpi/utype_fb.png
- android/GameSDKRelease/res/drawable-xhdpi/utype_gump.png
- android/GameSDKRelease/res/drawable-xhdpi/utype_quick.png
- android/GameSDKRelease/res/drawable/btn_green_bg.xml
- android/GameSDKRelease/res/drawable/btn_light_gray_bg.xml
- android/GameSDKRelease/res/drawable/btn_orange_bg.xml
- android/GameSDKRelease/res/drawable/btn_wallet_bg.xml
- android/GameSDKRelease/res/drawable/btn_white_bg.xml
- android/GameSDKRelease/res/drawable/com_facebook_button_blue.xml
- android/GameSDKRelease/res/drawable/com_facebook_button_blue_normal.9.png
- android/GameSDKRelease/res/drawable/com_facebook_button_blue_pressed.9.png
- android/GameSDKRelease/res/drawable/dash_line.xml
- android/GameSDKRelease/res/drawable/dialog_bg.xml
- android/GameSDKRelease/res/drawable/et_bg.xml
- android/GameSDKRelease/res/drawable/item_card_choice_bg.xml
- android/GameSDKRelease/res/drawable/loading_progress.xml
- android/GameSDKRelease/res/drawable/payment_bg.xml
- android/GameSDKRelease/res/drawable/payment_bg_normal.9.png
- android/GameSDKRelease/res/drawable/payment_bg_pressed.9.png
- android/GameSDKRelease/res/drawable/r_bg.xml
- android/GameSDKRelease/res/layout/container.xml
- android/GameSDKRelease/res/layout/fragment_container.xml
- android/GameSDKRelease/res/layout/fragment_login.xml
- android/GameSDKRelease/res/layout/fragment_loging.xml
- android/GameSDKRelease/res/layout/fragment_sign_choice.xml
- android/GameSDKRelease/res/layout/fragment_signup.xml
- android/GameSDKRelease/res/layout/login_container.xml
- android/GameSDKRelease/res/layout/title.xml
- android/GameSDKRelease/res/values-pt/strings.xml
- android/GameSDKRelease/res/values-th/strings.xml
- android/GameSDKRelease/res/values-zh-rTW/strings.xml
- android/GameSDKRelease/res/values-zh/strings.xml
- android/GameSDKRelease/res/values/colors.xml
- android/GameSDKRelease/res/values/strings.xml
- android/GameSDKRelease/res/values/themes.xml
- android/GameSDKSample/AndroidManifest.xml
- android/GameSDKSample/project.properties
- android/GameSDKSample/res/layout/activity_main.xml
- android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
android/GameSDKRelease/libs/GameSDK_v3.2.0_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/GameSDK_v3.3.0_proguard.jar
No preview for this file type
android/GameSDKRelease/libs/android-support-v4.jar
No preview for this file type
android/GameSDKRelease/project.properties
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt |
12 | 12 | |
13 | 13 | # Project target. |
14 | -target=android-18 | |
14 | +target=android-19 | |
15 | 15 | android.library=true |
16 | -android.library.reference.1=../../../../../facebook | |
16 | +android.library.reference.1=..\\..\\..\\..\\..\\facebook | |
17 | +android.library.reference.2=../../../../../Project/vksdk_library |
android/GameSDKRelease/res/drawable-hdpi/arrow_tag.png
1.55 KB
android/GameSDKRelease/res/drawable-hdpi/bottom_light_bg.png
2.05 KB
android/GameSDKRelease/res/drawable-hdpi/btn_orange_normal.png
1.33 KB
android/GameSDKRelease/res/drawable-hdpi/btn_orange_pressed.png
1.27 KB
android/GameSDKRelease/res/drawable-hdpi/horizontal_line.png
1.59 KB
android/GameSDKRelease/res/drawable-hdpi/ic_back_light.png
1.11 KB
android/GameSDKRelease/res/drawable-hdpi/ic_cancel_dark.png
1.23 KB
android/GameSDKRelease/res/drawable-hdpi/ic_fb.png
2.21 KB
android/GameSDKRelease/res/drawable-hdpi/ic_pwd.png
1.31 KB
android/GameSDKRelease/res/drawable-hdpi/ic_user.png
1.39 KB
android/GameSDKRelease/res/drawable-hdpi/ic_vk.png
2.85 KB
android/GameSDKRelease/res/drawable-hdpi/loading.png
7.04 KB
android/GameSDKRelease/res/drawable-hdpi/logo.png
android/GameSDKRelease/res/drawable-hdpi/title_light_bg.png
2.02 KB
android/GameSDKRelease/res/drawable-hdpi/utype_fb.png
1.65 KB
android/GameSDKRelease/res/drawable-hdpi/utype_gump.png
3.41 KB
android/GameSDKRelease/res/drawable-hdpi/utype_quick.png
1.9 KB
android/GameSDKRelease/res/drawable-mdpi/arrow_tag.png
1.29 KB
android/GameSDKRelease/res/drawable-mdpi/btn_orange_normal.png
1.16 KB
android/GameSDKRelease/res/drawable-mdpi/btn_orange_pressed.png
1.13 KB
android/GameSDKRelease/res/drawable-mdpi/ic_back_light.png
1.05 KB
android/GameSDKRelease/res/drawable-mdpi/ic_cancel_dark.png
1.07 KB
android/GameSDKRelease/res/drawable-mdpi/utype_fb.png
1.41 KB
android/GameSDKRelease/res/drawable-mdpi/utype_gump.png
2.17 KB
android/GameSDKRelease/res/drawable-mdpi/utype_quick.png
1.52 KB
android/GameSDKRelease/res/drawable-nodpi/r_bg_normal.9.png
190 Bytes
android/GameSDKRelease/res/drawable-nodpi/r_bg_selected.9.png
244 Bytes
android/GameSDKRelease/res/drawable-xhdpi/arrow_tag.png
2.12 KB
android/GameSDKRelease/res/drawable-xhdpi/bottom_light_bg.png
2.42 KB
android/GameSDKRelease/res/drawable-xhdpi/btn_orange_normal.png
1.44 KB
android/GameSDKRelease/res/drawable-xhdpi/btn_orange_pressed.png
1.39 KB
android/GameSDKRelease/res/drawable-xhdpi/horizontal_line.png
1.75 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_arrow_down.png
1.1 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_back_light.png
1.22 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_cancel_dark.png
1.18 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_fb.png
2.52 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_pwd.png
1.37 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_user.png
1.52 KB
android/GameSDKRelease/res/drawable-xhdpi/ic_vk.png
3.42 KB
android/GameSDKRelease/res/drawable-xhdpi/loading.png
11.2 KB
android/GameSDKRelease/res/drawable-xhdpi/logo.png
android/GameSDKRelease/res/drawable-xhdpi/title_light_bg.png
2.44 KB
android/GameSDKRelease/res/drawable-xhdpi/utype_fb.png
1.87 KB
android/GameSDKRelease/res/drawable-xhdpi/utype_gump.png
4.91 KB
android/GameSDKRelease/res/drawable-xhdpi/utype_quick.png
2.26 KB
android/GameSDKRelease/res/drawable/btn_green_bg.xml
... | ... | @@ -0,0 +1,21 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android" > | |
3 | + <item android:state_pressed="true"> | |
4 | + <shape android:shape="rectangle"> | |
5 | + <corners android:radius="1.5dp" /> | |
6 | + | |
7 | + <solid android:color="@color/btn_green_pressed" /> | |
8 | + | |
9 | + <size android:height="30.5dp" /> | |
10 | + </shape></item> | |
11 | + <item> | |
12 | + <shape android:shape="rectangle"> | |
13 | + <corners android:radius="1.5dp" /> | |
14 | + | |
15 | + <solid android:color="@color/btn_green_normal" /> | |
16 | + | |
17 | + <size android:height="30.5dp" /> | |
18 | + </shape></item> | |
19 | + | |
20 | + | |
21 | +</selector> |
android/GameSDKRelease/res/drawable/btn_light_gray_bg.xml
... | ... | @@ -1,19 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:state_pressed="true"><shape> | |
5 | - <corners android:radius="3dp" /> | |
6 | - | |
7 | - <solid android:color="@color/dark_gray" /> | |
8 | - | |
9 | - <size android:height="30dp" /> | |
10 | - </shape></item> | |
11 | - <item><shape> | |
12 | - <corners android:radius="3dp" /> | |
13 | - | |
14 | - <solid android:color="@color/light_gray" /> | |
15 | - | |
16 | - <size android:height="30dp" /> | |
17 | - </shape></item> | |
18 | - | |
19 | -</selector> | |
20 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/btn_orange_bg.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
3 | - | |
4 | - <item android:state_pressed="true" android:drawable="@drawable/btn_orange_pressed"/> | |
5 | - <item android:drawable="@drawable/btn_orange_normal"/> | |
6 | 3 | |
7 | -<!-- <item android:state_pressed="true"> --> | |
8 | -<!-- <shape android:shape="rectangle"> --> | |
9 | -<!-- <corners android:radius="3dp" /> --> | |
4 | + <!-- <item android:state_pressed="true" android:drawable="@drawable/btn_orange_pressed"/> --> | |
5 | + <!-- <item android:drawable="@drawable/btn_orange_normal"/> --> | |
10 | 6 | |
11 | -<!-- <solid android:color="@color/orange_pressed" /> --> | |
7 | + <item android:state_pressed="true"> | |
8 | + <shape android:shape="rectangle"> | |
9 | + <corners android:radius="1.5dp" /> | |
12 | 10 | |
13 | -<!-- <size android:height="35dp" /> --> | |
14 | -<!-- </shape> --> | |
15 | - | |
16 | -<!-- </item> --> | |
17 | -<!-- <item> --> | |
18 | -<!-- <shape android:shape="rectangle"> --> | |
19 | -<!-- <corners android:radius="3dp" /> --> | |
11 | + <solid android:color="@color/orange_pressed" /> | |
20 | 12 | |
21 | -<!-- <solid android:color="@color/orange_normal" /> --> | |
13 | + <size android:height="30.5dp" /> | |
14 | + </shape></item> | |
15 | + <item> | |
16 | + <shape android:shape="rectangle"> | |
17 | + <corners android:radius="1.5dp" /> | |
22 | 18 | |
23 | -<!-- <size android:height="35dp" /> --> | |
24 | -<!-- </shape> --> | |
25 | - | |
26 | -<!-- </item> --> | |
19 | + <solid android:color="@color/orange_normal" /> | |
20 | + | |
21 | + <size android:height="30.5dp" /> | |
22 | + </shape></item> | |
27 | 23 | |
28 | 24 | </selector> |
29 | 25 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/btn_wallet_bg.xml
... | ... | @@ -1,29 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:state_pressed="true"> | |
5 | - <shape android:shape="rectangle"> | |
6 | - <corners android:radius="3dp" /> | |
7 | - | |
8 | - <solid android:color="@color/btn_white_pressed" /> | |
9 | - | |
10 | - <size android:height="35dp" /> | |
11 | - | |
12 | - <stroke android:width="1dp" android:color="@color/line" /> | |
13 | - </shape> | |
14 | - | |
15 | - </item> | |
16 | - <item> | |
17 | - <shape android:shape="rectangle"> | |
18 | - <corners android:radius="3dp" /> | |
19 | - | |
20 | - <solid android:color="@color/btn_white_normal" /> | |
21 | - | |
22 | - <size android:height="35dp" /> | |
23 | - | |
24 | - <stroke android:width="1dp" android:color="@color/line" /> | |
25 | - </shape> | |
26 | - | |
27 | - </item> | |
28 | - | |
29 | -</selector> | |
30 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/btn_white_bg.xml
... | ... | @@ -1,10 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | - android:shape="rectangle" > | |
4 | - | |
5 | - <corners android:radius="3dp" /> | |
6 | - | |
7 | - <solid android:color="#f2efeb" /> | |
8 | - <size android:height="35dp"/> | |
9 | - | |
10 | -</shape> | |
11 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/com_facebook_button_blue.xml
... | ... | @@ -1,8 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:drawable="@drawable/com_facebook_button_blue_pressed" android:state_focused="true" android:state_pressed="true"/> | |
5 | - <item android:drawable="@drawable/com_facebook_button_blue_pressed" android:state_focused="false" android:state_pressed="true"/> | |
6 | - <item android:drawable="@drawable/com_facebook_button_blue_normal"/> | |
7 | - | |
8 | -</selector> |
android/GameSDKRelease/res/drawable/com_facebook_button_blue_normal.9.png
380 Bytes
android/GameSDKRelease/res/drawable/com_facebook_button_blue_pressed.9.png
323 Bytes
android/GameSDKRelease/res/drawable/dash_line.xml
... | ... | @@ -1,10 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | - android:shape="line" > | |
4 | - | |
5 | - <stroke | |
6 | - android:dashGap="2dp" | |
7 | - android:dashWidth="4dp" | |
8 | - android:color="@color/line" /> | |
9 | - | |
10 | -</shape> | |
11 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/dialog_bg.xml
android/GameSDKRelease/res/drawable/et_bg.xml
... | ... | @@ -1,21 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | - android:shape="rectangle" > | |
4 | - | |
5 | - <solid android:color="@android:color/white" /> | |
6 | - | |
7 | - <stroke | |
8 | - android:width="1dp" | |
9 | - android:color="@color/line" /> | |
10 | - | |
11 | - <size android:height="35dp" /> | |
12 | - | |
13 | - <padding | |
14 | - android:bottom="2dp" | |
15 | - android:left="8dp" | |
16 | - android:right="8dp" | |
17 | - android:top="2dp" /> | |
18 | - | |
19 | - <corners android:radius="5dp" /> | |
20 | - | |
21 | -</shape> | |
22 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/item_card_choice_bg.xml
... | ... | @@ -1,7 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:drawable="@color/orange_normal" android:state_pressed="true"/> | |
5 | - <item android:drawable="@android:color/white"/> | |
6 | - | |
7 | -</selector> | |
8 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/loading_progress.xml
android/GameSDKRelease/res/drawable/payment_bg.xml
... | ... | @@ -1,7 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:drawable="@drawable/payment_bg_pressed" android:state_pressed="true"/> | |
5 | - <item android:drawable="@drawable/payment_bg_normal"/> | |
6 | - | |
7 | -</selector> | |
8 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/drawable/payment_bg_normal.9.png
105 Bytes
android/GameSDKRelease/res/drawable/payment_bg_pressed.9.png
112 Bytes
android/GameSDKRelease/res/drawable/r_bg.xml
... | ... | @@ -1,7 +0,0 @@ |
1 | -<?xml version="1.0" encoding="utf-8"?> | |
2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
3 | - | |
4 | - <item android:drawable="@drawable/r_bg_selected" android:state_checked="true"/> | |
5 | - <item android:drawable="@drawable/r_bg_normal"/> | |
6 | - | |
7 | -</selector> | |
8 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/layout/container.xml
... | ... | @@ -1,19 +0,0 @@ |
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="wrap_content" | |
5 | - android:gravity="center" | |
6 | - android:background="@drawable/dialog_bg" | |
7 | - android:orientation="vertical" > | |
8 | - | |
9 | - <include layout="@layout/title" /> | |
10 | - | |
11 | - <LinearLayout | |
12 | - android:id="@+id/container" | |
13 | - android:layout_width="match_parent" | |
14 | - android:layout_height="wrap_content" | |
15 | - android:orientation="vertical" > | |
16 | - | |
17 | - </LinearLayout> | |
18 | - | |
19 | -</LinearLayout> | |
20 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/layout/fragment_container.xml
... | ... | @@ -0,0 +1,17 @@ |
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="wrap_content" | |
5 | + android:gravity="center" | |
6 | + android:orientation="vertical" > | |
7 | + | |
8 | + <include layout="@layout/title" /> | |
9 | + | |
10 | + <LinearLayout | |
11 | + android:id="@+id/container" | |
12 | + android:layout_width="match_parent" | |
13 | + android:layout_height="wrap_content" | |
14 | + android:orientation="vertical" > | |
15 | + </LinearLayout> | |
16 | + | |
17 | +</LinearLayout> | |
0 | 18 | \ No newline at end of file |
android/GameSDKRelease/res/layout/fragment_login.xml
... | ... | @@ -1,70 +0,0 @@ |
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="wrap_content" | |
5 | - android:scrollbars="none" > | |
6 | - | |
7 | - <LinearLayout | |
8 | - android:layout_width="match_parent" | |
9 | - android:layout_height="wrap_content" | |
10 | - android:background="@drawable/dialog_bg" | |
11 | - android:minWidth="293dp" | |
12 | - android:orientation="vertical" > | |
13 | - | |
14 | - <EditText | |
15 | - android:id="@+id/username" | |
16 | - android:layout_width="fill_parent" | |
17 | - android:layout_height="wrap_content" | |
18 | - android:layout_marginLeft="13dp" | |
19 | - android:layout_marginRight="13dp" | |
20 | - android:layout_marginTop="10dp" | |
21 | - android:background="@drawable/et_bg" | |
22 | - android:hint="@string/user_name_hint" | |
23 | - android:imeOptions="flagNoExtractUi" | |
24 | - android:textColor="@color/black_text" /> | |
25 | - | |
26 | - <EditText | |
27 | - android:id="@+id/password" | |
28 | - android:layout_width="fill_parent" | |
29 | - android:layout_height="wrap_content" | |
30 | - android:layout_marginLeft="13dp" | |
31 | - android:layout_marginRight="13dp" | |
32 | - android:layout_marginTop="10dp" | |
33 | - android:background="@drawable/et_bg" | |
34 | - android:hint="@string/password_hint" | |
35 | - android:imeOptions="flagNoExtractUi" | |
36 | - android:inputType="textPassword" | |
37 | - android:textColor="@color/black_text" /> | |
38 | - | |
39 | - <LinearLayout | |
40 | - android:layout_width="match_parent" | |
41 | - android:layout_height="wrap_content" | |
42 | - android:layout_marginBottom="10dp" | |
43 | - android:layout_marginTop="13dp" | |
44 | - android:gravity="center" | |
45 | - android:orientation="horizontal" > | |
46 | - | |
47 | - <Button | |
48 | - android:id="@+id/login" | |
49 | - android:layout_width="100dp" | |
50 | - android:layout_height="wrap_content" | |
51 | - android:background="@drawable/btn_orange_bg" | |
52 | - android:padding="5dp" | |
53 | - android:text="@string/login" | |
54 | - android:textColor="@android:color/white" | |
55 | - android:textSize="16sp" /> | |
56 | - | |
57 | - <Button | |
58 | - android:id="@+id/sign_up" | |
59 | - android:layout_width="100dp" | |
60 | - android:layout_height="wrap_content" | |
61 | - android:layout_marginLeft="13dp" | |
62 | - android:background="@drawable/btn_white_bg" | |
63 | - android:padding="5dp" | |
64 | - android:text="@string/signup" | |
65 | - android:textColor="@color/black_text" | |
66 | - android:textSize="16sp" /> | |
67 | - </LinearLayout> | |
68 | - </LinearLayout> | |
69 | - | |
70 | -</ScrollView> | |
71 | 0 | \ No newline at end of file |
android/GameSDKRelease/res/layout/fragment_loging.xml
... | ... | @@ -0,0 +1,49 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + android:layout_width="wrap_content" | |
4 | + android:layout_height="wrap_content" | |
5 | + android:background="@color/white_translucent" | |
6 | + android:minWidth="293dp" | |
7 | + android:orientation="vertical" > | |
8 | + | |
9 | + <RelativeLayout | |
10 | + android:layout_width="match_parent" | |
11 | + android:layout_height="36dp" > | |
12 | + | |
13 | + <TextView | |
14 | + android:id="@+id/switch_user" | |
15 | + android:layout_width="wrap_content" | |
16 | + android:layout_height="wrap_content" | |
17 | + android:layout_alignParentRight="true" | |
18 | + android:layout_centerVertical="true" | |
19 | + android:layout_marginRight="17dp" | |
20 | + android:text="@string/switch_user" | |
21 | + android:textColor="@color/black_text" /> | |
22 | + | |
23 | + <View | |
24 | + android:layout_width="fill_parent" | |
25 | + android:layout_height="1dp" | |
26 | + android:layout_alignParentBottom="true" | |
27 | + android:background="@color/light_gray" /> | |
28 | + </RelativeLayout> | |
29 | + | |
30 | + <ProgressBar | |
31 | + android:layout_width="wrap_content" | |
32 | + android:layout_height="wrap_content" | |
33 | + android:layout_gravity="center" | |
34 | + android:layout_marginBottom="17dp" | |
35 | + android:layout_marginTop="23dp" | |
36 | + android:indeterminateBehavior="repeat" | |
37 | + android:indeterminateDrawable="@drawable/loading_progress" | |
38 | + android:indeterminateDuration="800" | |
39 | + android:indeterminateOnly="true" /> | |
40 | + | |
41 | + <TextView | |
42 | + android:layout_width="wrap_content" | |
43 | + android:layout_height="wrap_content" | |
44 | + android:layout_gravity="center_horizontal" | |
45 | + android:layout_marginBottom="17dp" | |
46 | + android:text="@string/loging" | |
47 | + android:textColor="@color/black_text" /> | |
48 | + | |
49 | +</LinearLayout> | |
0 | 50 | \ No newline at end of file |
android/GameSDKRelease/res/layout/fragment_sign_choice.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | android:layout_width="match_parent" |
4 | - android:layout_height="match_parent" | |
4 | + android:layout_height="wrap_content" | |
5 | + android:gravity="center" | |
5 | 6 | android:orientation="vertical" > |
6 | 7 | |
7 | 8 | <LinearLayout |
8 | 9 | android:layout_width="match_parent" |
9 | 10 | android:layout_height="wrap_content" |
10 | - android:layout_marginTop="13dp" | |
11 | - android:gravity="center_horizontal" | |
12 | - android:orientation="horizontal" > | |
11 | + android:background="@color/white_translucent" | |
12 | + android:orientation="vertical" > | |
13 | 13 | |
14 | - <ImageView | |
15 | - android:id="@+id/utype_tag" | |
16 | - android:layout_width="25dp" | |
17 | - android:layout_height="25dp" | |
18 | - android:layout_marginRight="8dp" | |
19 | - android:src="@drawable/utype_quick" /> | |
20 | - | |
21 | - <TextView | |
22 | - android:id="@+id/tv_nick" | |
23 | - android:layout_width="wrap_content" | |
14 | + <LinearLayout | |
15 | + android:layout_width="match_parent" | |
16 | + android:layout_height="31dp" | |
17 | + android:layout_marginLeft="35dp" | |
18 | + android:layout_marginRight="35dp" | |
19 | + android:layout_marginTop="13dp" | |
20 | + android:background="@color/white" > | |
21 | + | |
22 | + <ImageView | |
23 | + android:layout_width="wrap_content" | |
24 | + android:layout_height="wrap_content" | |
25 | + android:layout_gravity="center_vertical" | |
26 | + android:layout_marginLeft="9.5dp" | |
27 | + android:layout_marginRight="9.5dp" | |
28 | + android:src="@drawable/ic_user" /> | |
29 | + | |
30 | + <View | |
31 | + android:layout_width="1dp" | |
32 | + android:layout_height="20dp" | |
33 | + android:layout_gravity="center_vertical" | |
34 | + android:background="@color/light_gray" /> | |
35 | + | |
36 | + <EditText | |
37 | + android:id="@+id/username" | |
38 | + android:layout_width="match_parent" | |
39 | + android:layout_height="match_parent" | |
40 | + android:background="@color/transparent" | |
41 | + android:hint="@string/user_name_hint" | |
42 | + android:paddingLeft="6dp" /> | |
43 | + </LinearLayout> | |
44 | + | |
45 | + <LinearLayout | |
46 | + android:layout_width="match_parent" | |
47 | + android:layout_height="31dp" | |
48 | + android:layout_marginLeft="35dp" | |
49 | + android:layout_marginRight="35dp" | |
50 | + android:layout_marginTop="16dp" | |
51 | + android:background="@color/white" | |
52 | + android:orientation="horizontal" > | |
53 | + | |
54 | + <ImageView | |
55 | + android:layout_width="wrap_content" | |
56 | + android:layout_height="wrap_content" | |
57 | + android:layout_gravity="center_vertical" | |
58 | + android:layout_marginLeft="12.5dp" | |
59 | + android:layout_marginRight="12.5dp" | |
60 | + android:src="@drawable/ic_pwd" /> | |
61 | + | |
62 | + <View | |
63 | + android:layout_width="1dp" | |
64 | + android:layout_height="20dp" | |
65 | + android:layout_gravity="center_vertical" | |
66 | + android:background="@color/light_gray" /> | |
67 | + | |
68 | + <EditText | |
69 | + android:id="@+id/pwd" | |
70 | + android:layout_width="match_parent" | |
71 | + android:layout_height="match_parent" | |
72 | + android:background="@color/white" | |
73 | + android:hint="@string/password_hint" | |
74 | + android:inputType="textPassword" | |
75 | + android:paddingLeft="6dp" /> | |
76 | + </LinearLayout> | |
77 | + | |
78 | + <LinearLayout | |
79 | + android:layout_width="fill_parent" | |
80 | + android:layout_height="wrap_content" | |
81 | + android:layout_marginLeft="35dp" | |
82 | + android:layout_marginRight="35dp" | |
83 | + android:layout_marginTop="16dp" | |
84 | + android:orientation="horizontal" > | |
85 | + | |
86 | + <Button | |
87 | + android:id="@+id/gump_reg" | |
88 | + android:layout_width="fill_parent" | |
89 | + android:layout_height="wrap_content" | |
90 | + android:layout_marginRight="10dp" | |
91 | + android:layout_weight="1" | |
92 | + android:background="@drawable/btn_green_bg" | |
93 | + android:text="@string/signup" | |
94 | + android:textColor="@color/white" /> | |
95 | + | |
96 | + <Button | |
97 | + android:id="@+id/gump_login" | |
98 | + android:layout_width="fill_parent" | |
99 | + android:layout_height="wrap_content" | |
100 | + android:layout_marginLeft="11dp" | |
101 | + android:layout_weight="1" | |
102 | + android:background="@drawable/btn_orange_bg" | |
103 | + android:gravity="center" | |
104 | + android:text="@string/login" | |
105 | + android:textColor="@android:color/white" | |
106 | + android:textSize="15sp" | |
107 | + android:textStyle="bold" /> | |
108 | + </LinearLayout> | |
109 | + | |
110 | + <Button | |
111 | + android:id="@+id/play" | |
112 | + android:layout_width="fill_parent" | |
24 | 113 | android:layout_height="wrap_content" |
25 | - android:layout_gravity="center_vertical" | |
26 | - android:textColor="@color/black_text" | |
27 | - android:textSize="15sp" | |
114 | + android:layout_marginBottom="16dp" | |
115 | + android:layout_marginLeft="35dp" | |
116 | + android:layout_marginRight="35dp" | |
117 | + android:layout_marginTop="16dp" | |
118 | + android:background="@drawable/btn_orange_bg" | |
119 | + android:padding="5dp" | |
120 | + android:text="@string/quick_play" | |
121 | + android:textColor="@android:color/white" | |
122 | + android:textSize="16sp" | |
28 | 123 | android:textStyle="bold" /> |
124 | + | |
125 | + <ImageView | |
126 | + android:layout_width="fill_parent" | |
127 | + android:layout_height="wrap_content" | |
128 | + android:layout_marginLeft="35dp" | |
129 | + android:layout_marginRight="35dp" | |
130 | + android:background="@drawable/horizontal_line" /> | |
29 | 131 | </LinearLayout> |
30 | 132 | |
31 | - <Button | |
32 | - android:id="@+id/play" | |
33 | - android:layout_width="fill_parent" | |
34 | - android:layout_height="46dp" | |
35 | - android:layout_marginBottom="10dp" | |
36 | - android:layout_marginLeft="13dp" | |
37 | - android:layout_marginRight="13dp" | |
38 | - android:layout_marginTop="23dp" | |
39 | - android:background="@drawable/btn_orange_bg" | |
40 | - android:padding="5dp" | |
41 | - android:text="@string/quick_play" | |
42 | - android:textStyle="bold" | |
43 | - android:textColor="@android:color/white" | |
44 | - android:textSize="16sp" /> | |
45 | - | |
46 | - <View | |
47 | - android:layout_width="fill_parent" | |
48 | - android:layout_height="2dp" | |
49 | - android:background="@drawable/dash_line" /> | |
50 | - | |
51 | - <Button | |
52 | - android:id="@+id/fb_login" | |
53 | - android:layout_width="fill_parent" | |
133 | + <LinearLayout | |
134 | + android:layout_width="match_parent" | |
54 | 135 | android:layout_height="wrap_content" |
55 | - android:layout_marginLeft="13dp" | |
56 | - android:layout_marginRight="13dp" | |
57 | - android:layout_marginTop="10dp" | |
58 | - android:background="@drawable/com_facebook_button_blue" | |
59 | - android:text="@string/fb_login" | |
60 | - android:textColor="@color/white" | |
61 | - android:textSize="16sp" | |
62 | - android:textStyle="bold" /> | |
63 | - | |
64 | - <Button | |
65 | - android:id="@+id/gump_login" | |
66 | - android:layout_width="fill_parent" | |
67 | - android:layout_height="40dp" | |
68 | - android:layout_marginBottom="15dp" | |
69 | - android:layout_marginLeft="13dp" | |
70 | - android:layout_marginRight="13dp" | |
71 | - android:layout_marginTop="8dp" | |
72 | - android:background="@drawable/btn_light_gray_bg" | |
73 | - android:gravity="center" | |
74 | - android:text="@string/gump_login" | |
75 | - android:textColor="@android:color/white" | |
76 | - android:textSize="15sp" | |
77 | - android:textStyle="bold" /> | |
136 | + android:background="@drawable/bottom_light_bg" | |
137 | + android:gravity="center_horizontal" > | |
138 | + | |
139 | + <ImageView | |
140 | + android:id="@+id/fb_login" | |
141 | + android:layout_width="wrap_content" | |
142 | + android:layout_height="wrap_content" | |
143 | + android:layout_marginTop="10dp" | |
144 | + android:layout_marginRight="5dp" | |
145 | + android:src="@drawable/ic_fb" /> | |
146 | + | |
147 | + <ImageView | |
148 | + android:id="@+id/vk_login" | |
149 | + android:layout_width="wrap_content" | |
150 | + android:layout_height="wrap_content" | |
151 | + android:layout_marginTop="10dp" | |
152 | + android:layout_marginLeft="5dp" | |
153 | + android:src="@drawable/ic_vk" /> | |
154 | + </LinearLayout> | |
78 | 155 | |
79 | 156 | </LinearLayout> |
80 | 157 | \ No newline at end of file |
android/GameSDKRelease/res/layout/fragment_signup.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
3 | - android:layout_width="match_parent" | |
3 | + android:layout_width="wrap_content" | |
4 | 4 | android:layout_height="wrap_content" |
5 | 5 | android:scrollbars="none" > |
6 | 6 | |
7 | 7 | <LinearLayout |
8 | - android:layout_width="match_parent" | |
8 | + android:layout_width="wrap_content" | |
9 | 9 | android:layout_height="wrap_content" |
10 | - android:background="@drawable/dialog_bg" | |
11 | - android:minWidth="293dp" | |
10 | + android:minWidth="292dp" | |
12 | 11 | android:orientation="vertical" > |
13 | 12 | |
14 | - <EditText | |
15 | - android:id="@+id/username" | |
13 | + <LinearLayout | |
16 | 14 | android:layout_width="match_parent" |
17 | 15 | android:layout_height="wrap_content" |
18 | - android:layout_margin="10dp" | |
19 | - android:background="@drawable/et_bg" | |
20 | - android:hint="@string/user_name_hint" | |
21 | - android:imeOptions="flagNoExtractUi" | |
22 | - android:textColor="@color/black_text" /> | |
23 | - | |
24 | - <EditText | |
25 | - android:id="@+id/pwd" | |
26 | - android:layout_width="match_parent" | |
27 | - android:layout_height="wrap_content" | |
28 | - android:layout_margin="10dp" | |
29 | - android:background="@drawable/et_bg" | |
30 | - android:hint="@string/password_hint" | |
31 | - android:imeOptions="flagNoExtractUi" | |
32 | - android:inputType="textPassword" | |
33 | - android:textColor="@color/black_text" /> | |
34 | - | |
35 | - <Button | |
36 | - android:id="@+id/signup" | |
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/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 | + </LinearLayout> | |
53 | + | |
54 | + <LinearLayout | |
37 | 55 | android:layout_width="match_parent" |
38 | 56 | android:layout_height="wrap_content" |
39 | - android:layout_margin="8dp" | |
40 | - android:background="@drawable/btn_orange_bg" | |
41 | - android:padding="5dp" | |
42 | - android:text="@string/signup" | |
43 | - android:textColor="@android:color/white" | |
44 | - android:textSize="16sp" /> | |
57 | + android:background="@drawable/bottom_light_bg" > | |
58 | + | |
59 | + <Button | |
60 | + android:id="@+id/signup" | |
61 | + android:layout_width="match_parent" | |
62 | + android:layout_height="wrap_content" | |
63 | + android:layout_marginLeft="35dp" | |
64 | + android:layout_marginRight="35dp" | |
65 | + android:layout_marginTop="8dp" | |
66 | + android:background="@drawable/btn_orange_bg" | |
67 | + android:padding="5dp" | |
68 | + android:text="@string/signup" | |
69 | + android:textColor="@android:color/white" | |
70 | + android:textSize="16sp" /> | |
71 | + </LinearLayout> | |
45 | 72 | </LinearLayout> |
46 | 73 | |
47 | 74 | </ScrollView> |
48 | 75 | \ No newline at end of file |
android/GameSDKRelease/res/layout/login_container.xml
... | ... | @@ -0,0 +1,8 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | + android:id="@+id/login_root" | |
4 | + android:layout_width="match_parent" | |
5 | + android:layout_height="match_parent" | |
6 | + android:orientation="vertical" > | |
7 | + | |
8 | +</LinearLayout> | |
0 | 9 | \ No newline at end of file |
android/GameSDKRelease/res/layout/title.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | android:layout_width="match_parent" |
4 | - android:layout_height="45dp" | |
5 | - android:background="@drawable/dialog_bg" > | |
4 | + android:layout_height="wrap_content" | |
5 | + android:background="@drawable/title_light_bg" > | |
6 | 6 | |
7 | 7 | <ImageView |
8 | 8 | android:id="@+id/btn_back" |
9 | 9 | android:layout_width="wrap_content" |
10 | - android:layout_height="match_parent" | |
10 | + android:layout_height="wrap_content" | |
11 | 11 | android:layout_alignParentLeft="true" |
12 | 12 | android:layout_centerVertical="true" |
13 | - android:paddingLeft="10dp" | |
13 | + android:layout_marginLeft="10dp" | |
14 | + android:paddingLeft="20dp" | |
14 | 15 | android:paddingRight="10dp" |
15 | 16 | android:src="@drawable/ic_back_dark" /> |
16 | 17 | |
... | ... | @@ -26,8 +27,9 @@ |
26 | 27 | <ImageView |
27 | 28 | android:id="@+id/log" |
28 | 29 | android:layout_width="wrap_content" |
29 | - android:layout_height="30dp" | |
30 | - android:layout_centerInParent="true" | |
30 | + android:layout_height="wrap_content" | |
31 | + android:layout_marginTop="27dp" | |
32 | + android:layout_marginLeft="35dp" | |
31 | 33 | android:visibility="gone" /> |
32 | 34 | |
33 | 35 | <TextView |
... | ... | @@ -38,19 +40,4 @@ |
38 | 40 | android:textColor="@android:color/black" |
39 | 41 | android:textSize="18sp" /> |
40 | 42 | |
41 | - <ImageView | |
42 | - android:id="@+id/btn_cancel" | |
43 | - android:layout_width="wrap_content" | |
44 | - android:layout_height="match_parent" | |
45 | - android:layout_alignParentRight="true" | |
46 | - android:layout_centerVertical="true" | |
47 | - android:padding="10dp" | |
48 | - android:src="@drawable/ic_cancel_dark" /> | |
49 | - | |
50 | - <View | |
51 | - android:layout_width="fill_parent" | |
52 | - android:layout_height="1dp" | |
53 | - android:layout_alignParentBottom="true" | |
54 | - android:background="@color/line" /> | |
55 | - | |
56 | 43 | </RelativeLayout> |
57 | 44 | \ No newline at end of file |
android/GameSDKRelease/res/values-pt/strings.xml
... | ... | @@ -2,10 +2,13 @@ |
2 | 2 | |
3 | 3 | <string name="user_name_hint">Email</string> |
4 | 4 | <string name="password_hint">Senha</string> |
5 | + <string name="quick_play">jogo de hóspedes</string> | |
5 | 6 | <string name="login">Login</string> |
6 | 7 | <string name="signup">Registrar</string> |
7 | 8 | <string name="bind">Vincular ao email</string> |
8 | 9 | <string name="loading">Carregando</string> |
10 | + <string name="loging">Carregando</string> | |
11 | + <string name="switch_user">Contas de comutação</string> | |
9 | 12 | <!-- toast --> |
10 | 13 | <string name="illegal_uname_tip">Email inválido</string> |
11 | 14 | <string name="illegal_pwd_tip">Senha Inválida (6-20 caracteres)</string> |
... | ... | @@ -16,6 +19,8 @@ |
16 | 19 | <string name="login_fail">Login falhou</string> |
17 | 20 | <string name="signup_fail">Registrar falhou</string> |
18 | 21 | <string name="bind_fail">Vincular falhou</string> |
22 | + <string name="gen_quick_acc_err">Entre falhou, por favor tente novamente</string> | |
23 | + <string name="quick_login_err">Entre falhou, por favor tente novamente</string> | |
19 | 24 | <!-- facebook id --> |
20 | 25 | |
21 | 26 | </resources> |
22 | 27 | \ No newline at end of file |
android/GameSDKRelease/res/values-th/strings.xml
... | ... | @@ -2,10 +2,13 @@ |
2 | 2 | |
3 | 3 | <string name="user_name_hint">อีเมลล์</string> |
4 | 4 | <string name="password_hint">พาสเวิร์ด</string> |
5 | + <string name="quick_play">การเล่นของผู้เข้าพัก</string> | |
5 | 6 | <string name="login">ล็อกอิน</string> |
6 | 7 | <string name="signup">ลงทะเบียน</string> |
7 | 8 | <string name="bind">ผูกอีเมลล์</string> |
8 | 9 | <string name="loading">กำลังโหลด</string> |
10 | + <string name="loging">กำลังโหลด</string> | |
11 | + <string name="switch_user">การสลับบัญชี</string> | |
9 | 12 | <!-- toast --> |
10 | 13 | <string name="illegal_uname_tip">อีเมลล์ไม่ถูกต้อง</string> |
11 | 14 | <string name="illegal_pwd_tip">พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)</string> |
... | ... | @@ -35,5 +38,7 @@ |
35 | 38 | <string name="paypal_choice_tip">กรุณาเลือกยอดเติมเงิน</string> |
36 | 39 | <!-- gp --> |
37 | 40 | <string name="gp_choice_tip">กรุณาเลือกยอดเติมเงิน</string> |
41 | + <string name="gen_quick_acc_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> | |
42 | + <string name="quick_login_err">เข้าสู่ระบบที่ล้มเหลวโปรดลองอีกครั้ง</string> | |
38 | 43 | |
39 | 44 | </resources> |
40 | 45 | \ No newline at end of file |
android/GameSDKRelease/res/values-zh-rTW/strings.xml
... | ... | @@ -6,6 +6,8 @@ |
6 | 6 | <string name="signup">註冊</string> |
7 | 7 | <string name="bind">綁定郵箱</string> |
8 | 8 | <string name="loading">加載中……</string> |
9 | + <string name="loging">加載中……</string> | |
10 | + <string name="switch_user">切換賬戶</string> | |
9 | 11 | <!-- toast --> |
10 | 12 | <string name="illegal_uname_tip">郵箱格式不正確</string> |
11 | 13 | <string name="illegal_pwd_tip">密碼格式不正確 (6–20字符)</string> |
... | ... | @@ -34,5 +36,7 @@ |
34 | 36 | <string name="paypal_choice_tip">請選擇支付金額</string> |
35 | 37 | <!-- gp --> |
36 | 38 | <string name="gp_choice_tip">請選擇支付金額</string> |
39 | + <string name="gen_quick_acc_err">登錄失敗,請重試</string> | |
40 | + <string name="quick_login_err">登錄失敗,請重試</string> | |
37 | 41 | |
38 | 42 | </resources> |
39 | 43 | \ No newline at end of file |
android/GameSDKRelease/res/values-zh/strings.xml
... | ... | @@ -2,10 +2,13 @@ |
2 | 2 | |
3 | 3 | <string name="user_name_hint">邮箱</string> |
4 | 4 | <string name="password_hint">密码</string> |
5 | + <string name="quick_play">Guest Play</string> | |
5 | 6 | <string name="login">登录</string> |
6 | 7 | <string name="signup">注册</string> |
7 | 8 | <string name="bind">绑定邮箱</string> |
8 | 9 | <string name="loading">加载中……</string> |
10 | + <string name="loging">加载中……</string> | |
11 | + <string name="switch_user">切换用户</string> | |
9 | 12 | <!-- toast --> |
10 | 13 | <string name="illegal_uname_tip">请输入正确的邮箱</string> |
11 | 14 | <string name="illegal_pwd_tip">密码格式不正确 (6–20字符)</string> |
... | ... | @@ -34,5 +37,7 @@ |
34 | 37 | <string name="paypal_choice_tip">请选择支付金额</string> |
35 | 38 | <!-- gp --> |
36 | 39 | <string name="gp_choice_tip">请选择支付金额</string> |
40 | + <string name="gen_quick_acc_err">登录失败,请重试</string> | |
41 | + <string name="quick_login_err">登录失败,请重试</string> | |
37 | 42 | |
38 | 43 | </resources> |
39 | 44 | \ No newline at end of file |
android/GameSDKRelease/res/values/colors.xml
... | ... | @@ -2,14 +2,17 @@ |
2 | 2 | <resources> |
3 | 3 | |
4 | 4 | <color name="white">#FFFFFF</color> |
5 | + <color name="white_translucent">#D9FFFFFF</color> | |
5 | 6 | <color name="line">#e5e5e5</color> |
6 | 7 | <color name="light_gray">#c9c9c9</color> |
7 | 8 | <color name="dark_gray">#d9d9d9</color> |
8 | - <color name="orange_normal">#fe5f27</color> | |
9 | - <color name="orange_pressed">#fe0000</color> | |
9 | + <color name="orange_normal">#f8b500</color> | |
10 | + <color name="orange_pressed">#ffc62c</color> | |
10 | 11 | <color name="black_text">#3f3c38</color> |
11 | - <color name="btn_white_normal">#f8f7f4</color> | |
12 | - <color name="btn_white_pressed">#f8f7f4</color> | |
12 | +<!-- <color name="btn_white_normal">#f8f7f4</color> --> | |
13 | +<!-- <color name="btn_white_pressed">#f8f7f4</color> --> | |
14 | + <color name="btn_green_normal">#3eb370</color> | |
15 | + <color name="btn_green_pressed">#3cca79</color> | |
13 | 16 | |
14 | 17 | <color name="common_gray">#ecf0f0</color> |
15 | 18 | <color name="common_gray2">#e0e6e8</color> |
android/GameSDKRelease/res/values/strings.xml
... | ... | @@ -3,11 +3,13 @@ |
3 | 3 | <string name="user_name_hint">Email</string> |
4 | 4 | <string name="password_hint">Password</string> |
5 | 5 | <string name="quick_login">Play(%sS)</string> |
6 | - <string name="quick_play">Play</string> | |
6 | + <string name="quick_play">Guest Play</string> | |
7 | 7 | <string name="login">Login</string> |
8 | 8 | <string name="signup">Signup</string> |
9 | 9 | <string name="bind">Bound to email</string> |
10 | 10 | <string name="loading">Loading</string> |
11 | + <string name="loging">Loding...</string> | |
12 | + <string name="switch_user">Switching accounts</string> | |
11 | 13 | <!-- toast --> |
12 | 14 | <string name="illegal_uname_tip">Invalid Email</string> |
13 | 15 | <string name="illegal_pwd_tip">Invalid Password (6–20 characters).</string> |
... | ... | @@ -19,9 +21,12 @@ |
19 | 21 | <string name="signup_fail">Signup failed</string> |
20 | 22 | <string name="bind_fail">Bound failed</string> |
21 | 23 | <string name="net_error">Internet unavailable, please check</string> |
22 | - <string name="gump_login">Login with Gumptech</string> | |
24 | + <string name="gump_login">Login</string> | |
25 | + <string name="vk_login">Login with VK</string> | |
23 | 26 | <string name="fb_login">Login with Facebook</string> |
24 | 27 | <string name="signup_success">Sign Up Successfully</string> |
28 | + <string name="gen_quick_acc_err">Login failed, please try again</string> | |
29 | + <string name="quick_login_err">Login failed, please try again</string> | |
25 | 30 | <!-- facebook --> |
26 | 31 | |
27 | 32 |
android/GameSDKRelease/res/values/themes.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <resources> |
3 | 3 | |
4 | - <style name="container_dialog" > | |
4 | + <style name="Theme.TransparentWin" parent="android:Theme"> | |
5 | 5 | <item name="android:windowFrame">@null</item> |
6 | 6 | <item name="android:windowIsFloating">true</item> |
7 | 7 | <item name="android:windowIsTranslucent">true</item> |
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | <item name="android:windowFullscreen">true</item> |
12 | 12 | </style> |
13 | 13 | |
14 | - <style name="ex_win" parent="@style/container_dialog"> | |
14 | + <style name="Theme.WinForExchange" parent="@style/Theme.TransparentWin"> | |
15 | 15 | <item name="android:backgroundDimEnabled">true</item> |
16 | 16 | </style> |
17 | 17 |
android/GameSDKSample/AndroidManifest.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | - package="com.loginsdk.sample" | |
3 | + package="com.gumpsdk.wuruid" | |
4 | 4 | android:versionCode="6" |
5 | 5 | android:versionName="1.6" > |
6 | 6 | |
... | ... | @@ -40,7 +40,8 @@ |
40 | 40 | <activity |
41 | 41 | android:name="com.gumptech.sdk.ContainerActivity" |
42 | 42 | android:configChanges="orientation|screenLayout" |
43 | - android:theme="@style/container_dialog" > | |
43 | + android:windowSoftInputMode="stateAlwaysHidden|adjustPan" | |
44 | + android:theme="@style/Theme.TransparentWin" > | |
44 | 45 | </activity> |
45 | 46 | <activity |
46 | 47 | android:name="com.gumptech.sdk.PaymentActivity" |
... | ... | @@ -50,7 +51,7 @@ |
50 | 51 | <activity |
51 | 52 | android:name="com.gumptech.sdk.ExchangeWindow" |
52 | 53 | android:configChanges="orientation|screenLayout" |
53 | - android:theme="@style/ex_win" > | |
54 | + android:theme="@style/Theme.WinForExchange" > | |
54 | 55 | </activity> |
55 | 56 | |
56 | 57 | <service android:name="com.gumptech.sdk.PushService" > |
... | ... | @@ -62,6 +63,12 @@ |
62 | 63 | android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" |
63 | 64 | android:label="@string/app_name" |
64 | 65 | android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
66 | + <!-- vk --> | |
67 | + <activity android:name="com.vk.sdk.VKOpenAuthActivity" /> | |
68 | + <activity | |
69 | + android:name="com.vk.sdk.VKServiceActivity" | |
70 | + android:label="ServiceActivity" | |
71 | + android:theme="@style/VK.Transparent" /> | |
65 | 72 | </application> |
66 | 73 | |
67 | 74 | </manifest> |
68 | 75 | \ No newline at end of file |
android/GameSDKSample/project.properties
android/GameSDKSample/res/layout/activity_main.xml
android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
1 | 1 | package com.gumptech.loginsdk.sample; |
2 | 2 | |
3 | 3 | import android.app.Activity; |
4 | -import android.content.Intent; | |
5 | 4 | import android.os.Bundle; |
6 | 5 | import android.util.Log; |
7 | 6 | import android.view.View; |
... | ... | @@ -15,7 +14,7 @@ import com.gumptech.sdk.bean.PurchaseResult; |
15 | 14 | import com.gumptech.sdk.callback.InitializeCallback; |
16 | 15 | import com.gumptech.sdk.callback.LoginStateListener; |
17 | 16 | import com.gumptech.sdk.callback.PurchaseCallback; |
18 | -import com.loginsdk.sample.R; | |
17 | +import com.gumpsdk.wuruid.R; | |
19 | 18 | |
20 | 19 | public class MainActivity extends Activity implements PurchaseCallback{ |
21 | 20 | |
... | ... | @@ -55,13 +54,29 @@ public class MainActivity extends Activity implements PurchaseCallback{ |
55 | 54 | payInfo.putString("product", "元宝"); |
56 | 55 | payInfo.putFloat("amount", 0.0f); |
57 | 56 | payInfo.putString("extraInfo", "This is demo!"); |
58 | - payInfo.putString("serverId", "5001"); | |
59 | - GumpSDK.pay(MainActivity.this, payInfo, "3332768", MainActivity.this); | |
57 | + payInfo.putString("serverId", "103"); | |
58 | + GumpSDK.pay(MainActivity.this, payInfo, "6151046", MainActivity.this); | |
60 | 59 | } |
61 | 60 | }); |
61 | + /** | |
62 | + * 设置否是开启debug模式 | |
63 | + */ | |
62 | 64 | GumpSDK.setDebugState(true); |
63 | - GumpSDK.setLogoShow(true); | |
65 | + /** | |
66 | + * 设置是否启用facebook登录 | |
67 | + */ | |
68 | + GumpSDK.setFBEnable(true); | |
69 | + /** | |
70 | + * 设置是否启用Vk登录 | |
71 | + */ | |
72 | + GumpSDK.setVKEnable(true); | |
73 | + /** | |
74 | + * 设置屏幕方向 | |
75 | + */ | |
64 | 76 | GumpSDK.setScreenLandscape(false); |
77 | + /** | |
78 | + * 设置用户登录状态监听器 | |
79 | + */ | |
65 | 80 | GumpSDK.setUserStateListener(new LoginStateListener() { |
66 | 81 | @Override |
67 | 82 | public void onLoginSuccess(GumpUser user) { |
... | ... | @@ -88,6 +103,9 @@ public class MainActivity extends Activity implements PurchaseCallback{ |
88 | 103 | userInfo.setText("User is logout"); |
89 | 104 | } |
90 | 105 | }); |
106 | + /** | |
107 | + * 初始化sdk | |
108 | + */ | |
91 | 109 | GumpSDK.init(getApplicationContext(), appId, appKey, "1000", new InitializeCallback() { |
92 | 110 | @Override |
93 | 111 | public void initComplete(int result) { |