Commit 971fb434c4941431ec1810e65ecc4887fe7c44e4
Exists in
master
Merge branch 'master' of http://123.59.74.8/document/spreader
Showing 25 changed files Inline Diff
- android/PromoterDemo/AndroidManifest.xml
- android/PromoterDemo/project.properties
- android/PromoterDemo/res/layout/activity_main.xml
- android/PromoterDemo/src/com/example/promoterdemo/MainActivity.java
- android/PromoterRelease/libs/PromoterSdk_proguard_1.0.1.jar
- android/PromoterRelease/libs/PromoterSdk_proguard_1.0.2.jar
- android/PromoterRelease/libs/picasso-2.2.0.jar
- android/PromoterRelease/res/color/btn_confirm_text_color.xml
- android/PromoterRelease/res/color/btn_text_color.xml
- android/PromoterRelease/res/drawable-hdpi/progress.png
- android/PromoterRelease/res/drawable-hdpi/progress_bar.png
- android/PromoterRelease/res/drawable-xhdpi/instructions.png.png
- android/PromoterRelease/res/drawable-xxhdpi/instructions.png.png
- android/PromoterRelease/res/drawable/btn_confirm_bg.xml
- android/PromoterRelease/res/drawable/btn_reward_bg.xml
- android/PromoterRelease/res/drawable/progress_drawable.xml
- android/PromoterRelease/res/drawable/progressbar_horizontal_1.xml
- android/PromoterRelease/res/layout/activity_promoter.xml
- android/PromoterRelease/res/layout/item_share_app.xml
- android/PromoterRelease/res/layout/share_dialog.xml
- android/PromoterRelease/res/values-sw720dp-land/dimens.xml
- android/PromoterRelease/res/values/colors.xml
- android/PromoterRelease/res/values/strings.xml
- doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md
- doc/\346\216\250\345\271\277\345\221\230\351\241\271\347\233\256Sdk for android\344\275\277\347\224\250\350\257\264\346\230\216.md.bak
android/PromoterDemo/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.example.promoterdemo" | 3 | package="com.example.promoterdemo" |
| 4 | android:versionCode="1" | 4 | android:versionCode="1" |
| 5 | android:versionName="1.0" > | 5 | android:versionName="1.0" > |
| 6 | 6 | ||
| 7 | <uses-sdk | 7 | <uses-sdk |
| 8 | android:minSdkVersion="8" | 8 | android:minSdkVersion="8" |
| 9 | android:targetSdkVersion="19" /> | 9 | android:targetSdkVersion="19" /> |
| 10 | <uses-permission android:name="android.permission.INTERNET" /> | 10 | <uses-permission android:name="android.permission.INTERNET" /> |
| 11 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | 11 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
| 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_EXTERNAL_STORAGE" /> | 15 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 16 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | 16 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 17 | <application | 17 | <application |
| 18 | android:allowBackup="true" | 18 | android:allowBackup="true" |
| 19 | android:icon="@drawable/ic_launcher" | 19 | android:icon="@drawable/ic_launcher" |
| 20 | android:label="@string/app_name" | 20 | android:label="@string/app_name" |
| 21 | android:theme="@style/AppTheme" > | 21 | android:theme="@style/AppTheme" > |
| 22 | <activity | 22 | <activity |
| 23 | android:name="com.example.promoterdemo.MainActivity" | 23 | android:name="com.example.promoterdemo.MainActivity" |
| 24 | android:screenOrientation="portrait" | 24 | android:screenOrientation="landscape" |
| 25 | android:label="@string/app_name" > | 25 | android:label="@string/app_name" > |
| 26 | <intent-filter> | 26 | <intent-filter> |
| 27 | <action android:name="android.intent.action.MAIN" /> | 27 | <action android:name="android.intent.action.MAIN" /> |
| 28 | 28 | ||
| 29 | <category android:name="android.intent.category.LAUNCHER" /> | 29 | <category android:name="android.intent.category.LAUNCHER" /> |
| 30 | </intent-filter> | 30 | </intent-filter> |
| 31 | </activity> | 31 | </activity> |
| 32 | <activity | 32 | <activity |
| 33 | android:name="com.gumptech.promoter.activity.PromoterActivity" | 33 | android:name="com.gumptech.promoter.activity.PromoterActivity" |
| 34 | android:label="@string/app_name" | 34 | android:label="@string/app_name" |
| 35 | android:theme="@android:style/Theme.NoTitleBar.Fullscreen" | 35 | android:theme="@android:style/Theme.NoTitleBar.Fullscreen" |
| 36 | android:screenOrientation="landscape" > | 36 | android:screenOrientation="landscape" > |
| 37 | </activity> | 37 | </activity> |
| 38 | 38 | ||
| 39 | </application> | 39 | </application> |
| 40 | 40 | ||
| 41 | </manifest> | 41 | </manifest> |
| 42 | 42 |
android/PromoterDemo/project.properties
| 1 | # This file is automatically generated by Android Tools. | 1 | # This file is automatically generated by Android Tools. |
| 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! | 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! |
| 3 | # | 3 | # |
| 4 | # This file must be checked in Version Control Systems. | 4 | # This file must be checked in Version Control Systems. |
| 5 | # | 5 | # |
| 6 | # To customize properties used by the Ant build system edit | 6 | # To customize properties used by the Ant build system edit |
| 7 | # "ant.properties", and override values to adapt the script to your | 7 | # "ant.properties", and override values to adapt the script to your |
| 8 | # project structure. | 8 | # project structure. |
| 9 | # | 9 | # |
| 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): | 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): |
| 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt | 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt |
| 12 | 12 | ||
| 13 | # Project target. | 13 | # Project target. |
| 14 | target=android-19 | 14 | target=android-19 |
| 15 | android.library.reference.1=..\\PromoterRelease | 15 | android.library.reference.1=../../../../spreader/PromoterSdk |
| 16 | 16 |
android/PromoterDemo/res/layout/activity_main.xml
| 1 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | xmlns:tools="http://schemas.android.com/tools" | 2 | xmlns:tools="http://schemas.android.com/tools" |
| 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 | android:orientation="vertical" | ||
| 5 | android:paddingBottom="@dimen/activity_vertical_margin" | 6 | android:paddingBottom="@dimen/activity_vertical_margin" |
| 6 | android:paddingLeft="@dimen/activity_horizontal_margin" | 7 | android:paddingLeft="@dimen/activity_horizontal_margin" |
| 7 | android:paddingRight="@dimen/activity_horizontal_margin" | 8 | android:paddingRight="@dimen/activity_horizontal_margin" |
| 8 | android:paddingTop="@dimen/activity_vertical_margin" | 9 | android:paddingTop="@dimen/activity_vertical_margin" |
| 9 | tools:context=".MainActivity" > | 10 | tools:context=".MainActivity" > |
| 10 | 11 | ||
| 11 | <TextView | 12 | <TextView |
| 12 | android:id="@+id/click_textview" | 13 | android:id="@+id/app_info" |
| 13 | android:layout_width="match_parent" | 14 | android:layout_width="match_parent" |
| 14 | android:layout_height="match_parent" | 15 | android:layout_height="wrap_content" /> |
| 16 | |||
| 17 | <EditText | ||
| 18 | android:id="@+id/uid" | ||
| 19 | android:layout_width="match_parent" | ||
| 20 | android:layout_height="wrap_content" | ||
| 15 | android:gravity="center" | 21 | android:gravity="center" |
| 16 | android:text="@string/hello_world" /> | 22 | android:hint="uid" /> |
| 23 | |||
| 24 | <Button | ||
| 25 | android:id="@+id/goin" | ||
| 26 | android:layout_width="match_parent" | ||
| 27 | android:layout_height="wrap_content" | ||
| 28 | android:text="Go into Promoter" /> | ||
| 17 | 29 | ||
| 18 | </RelativeLayout> | 30 | </LinearLayout> |
android/PromoterDemo/src/com/example/promoterdemo/MainActivity.java
| 1 | package com.example.promoterdemo; | 1 | package com.example.promoterdemo; |
| 2 | |||
| 3 | import com.gumptech.promoter.Entrance; | ||
| 4 | |||
| 2 | import android.app.Activity; | 5 | import android.app.Activity; |
| 3 | import android.os.Bundle; | 6 | import android.os.Bundle; |
| 4 | import android.util.Log; | 7 | import android.util.Log; |
| 5 | import android.view.View; | 8 | import android.view.View; |
| 6 | import android.view.View.OnClickListener; | 9 | import android.view.View.OnClickListener; |
| 10 | import android.widget.Button; | ||
| 11 | import android.widget.EditText; | ||
| 7 | import android.widget.TextView; | 12 | import android.widget.TextView; |
| 8 | import com.gumptech.promoter.util.Constant; | 13 | |
| 9 | import com.gumptech.promoter.Entrance; | ||
| 10 | public class MainActivity extends Activity implements OnClickListener { | 14 | public class MainActivity extends Activity implements OnClickListener { |
| 11 | @Override | 15 | EditText etUid; |
| 12 | protected void onCreate(Bundle savedInstanceState) { | 16 | String appId = "10022"; |
| 13 | super.onCreate(savedInstanceState); | 17 | String serverID = ""; |
| 14 | setContentView(R.layout.activity_main); | 18 | String roleId = ""; |
| 15 | TextView clickText=(TextView) findViewById(R.id.click_textview); | 19 | |
| 16 | clickText.setOnClickListener(this); | 20 | @Override |
| 17 | Log.d("MainActivity", "VERSION_CODE="+Constant.VERSION_CODE); | 21 | protected void onCreate(Bundle savedInstanceState) { |
| 18 | } | 22 | super.onCreate(savedInstanceState); |
| 23 | setContentView(R.layout.activity_main); | ||
| 24 | TextView info = (TextView) findViewById(R.id.app_info); | ||
| 25 | etUid = (EditText) findViewById(R.id.uid); | ||
| 26 | Button goin = (Button) findViewById(R.id.goin); | ||
| 27 | goin.setOnClickListener(this); | ||
| 28 | info.setText("appId=" + appId + "\nserverId=" + serverID + "\nroleId=" + roleId + "\nsdk version:" + Entrance.getVersion()); | ||
| 29 | } | ||
| 19 | 30 | ||
| 20 | @Override | 31 | @Override |
| 21 | public void onClick(View v) { | 32 | public void onClick(View v) { |
| 22 | // TODO Auto-generated method stub | 33 | String uid = etUid.getText().toString(); |
| 23 | Entrance.DoPromoter("1545402", "10022", "", "", this); | 34 | Entrance.enableDebug(true); |
| 24 | 35 | Entrance.DoPromoter(uid, appId, serverID, roleId, this); | |
| 25 | } | 36 | } |
| 26 | } | 37 | } |
android/PromoterRelease/libs/PromoterSdk_proguard_1.0.1.jar
No preview for this file type
android/PromoterRelease/libs/PromoterSdk_proguard_1.0.2.jar
No preview for this file type
android/PromoterRelease/libs/picasso-2.2.0.jar
No preview for this file type
android/PromoterRelease/res/color/btn_confirm_text_color.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | <item android:state_enabled="true" android:color="@color/red"/> | ||
| 4 | <item android:state_enabled="false" android:color="@color/gray2"/> | ||
| 5 | </selector> | ||
| 6 |
android/PromoterRelease/res/color/btn_text_color.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | <item android:state_enabled="true" android:color="@color/red"/> | ||
| 4 | <item android:state_enabled="false" android:color="@color/gray"/> | ||
| 5 | </selector> | ||
| 6 |
android/PromoterRelease/res/drawable-hdpi/progress.png
7.45 KB
android/PromoterRelease/res/drawable-hdpi/progress_bar.png
4.13 KB
android/PromoterRelease/res/drawable-xhdpi/instructions.png.png
2.96 KB
android/PromoterRelease/res/drawable-xxhdpi/instructions.png.png
5.15 KB
android/PromoterRelease/res/drawable/btn_confirm_bg.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 3 | <item android:state_enabled="true" android:drawable="@drawable/confirm"/> | ||
| 4 | <item android:state_enabled="false" android:drawable="@drawable/confirm_grey"/> | ||
| 5 | </selector> | ||
| 6 |
android/PromoterRelease/res/drawable/btn_reward_bg.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 3 | <item android:state_enabled="true" android:drawable="@drawable/reward"/> | ||
| 4 | <item android:state_enabled="false" android:drawable="@drawable/reward_grey"/> | ||
| 5 | </selector> | ||
| 6 |
android/PromoterRelease/res/drawable/progress_drawable.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 3 | |||
| 4 | <item android:id="@android:id/progress"> | ||
| 5 | <clip> | ||
| 6 | <bitmap android:src="@drawable/progress" /> | ||
| 7 | </clip> | ||
| 8 | </item> | ||
| 9 | |||
| 10 | </layer-list> |
android/PromoterRelease/res/drawable/progressbar_horizontal_1.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | File was deleted | |
| 2 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 3 | |||
| 4 | <item | ||
| 5 | android:id="@android:id/background" | ||
| 6 | android:drawable="@drawable/progress_bar_background"> | ||
| 7 | </item> | ||
| 8 | <item android:id="@android:id/secondaryProgress"> | ||
| 9 | <scale | ||
| 10 | android:drawable="@drawable/confirm" | ||
| 11 | android:scaleGravity="center_vertical" | ||
| 12 | android:scaleHeight="percentage" | ||
| 13 | android:scaleWidth="percentage" /> | ||
| 14 | </item> | ||
| 15 | <item android:id="@android:id/progress"> | ||
| 16 | <scale | ||
| 17 | android:drawable="@drawable/edite_hint" | ||
| 18 | android:scaleWidth="100%" /> | ||
| 19 | </item> | ||
| 20 | |||
| 21 | </layer-list> |
android/PromoterRelease/res/layout/activity_promoter.xml
| 1 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | xmlns:tools="http://schemas.android.com/tools" | ||
| 3 | android:id="@+id/root_layout" | ||
| 4 | android:layout_width="match_parent" | 2 | android:layout_width="match_parent" |
| 5 | android:layout_height="match_parent" | 3 | android:layout_height="match_parent" > |
| 6 | android:background="@color/bankground" | ||
| 7 | android:orientation="horizontal" > | ||
| 8 | 4 | ||
| 9 | <!-- 左边宣传图片 --> | 5 | <LinearLayout |
| 10 | |||
| 11 | <ImageView | ||
| 12 | android:id="@+id/left_imge" | ||
| 13 | android:layout_width="wrap_content" | ||
| 14 | android:layout_height="match_parent" | ||
| 15 | android:layout_alignParentLeft="true" | ||
| 16 | android:scaleType="fitXY" | ||
| 17 | /> | ||
| 18 | <!-- 右边宣传图片 --> | ||
| 19 | |||
| 20 | <ImageView | ||
| 21 | android:id="@+id/right_imge" | ||
| 22 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" | 7 | android:layout_height="match_parent" |
| 24 | android:layout_toRightOf="@+id/left_imge" | 8 | android:background="@color/common_bg" |
| 25 | android:scaleType="fitXY" | 9 | android:orientation="horizontal" > |
| 26 | android:visibility="gone" /> | ||
| 27 | <!-- 右边上 --> | ||
| 28 | 10 | ||
| 29 | <ImageView | 11 | <!-- 左边宣传图片 --> |
| 30 | android:id="@+id/right_top_imge" | ||
| 31 | android:layout_width="match_parent" | ||
| 32 | android:layout_height="match_parent" | ||
| 33 | android:layout_toRightOf="@+id/left_imge" | ||
| 34 | android:scaleType="fitXY" | ||
| 35 | /> | ||
| 36 | <!-- 右边上下 --> | ||
| 37 | 12 | ||
| 38 | <ImageView | 13 | <RelativeLayout |
| 39 | android:id="@+id/right_down_imge" | 14 | android:layout_width="match_parent" |
| 40 | android:layout_width="match_parent" | 15 | android:layout_height="match_parent" |
| 41 | android:layout_height="match_parent" | 16 | android:layout_marginRight="6dp" |
| 42 | android:layout_below="@+id/right_top_imge" | 17 | android:layout_weight="9" > |
| 43 | android:layout_toRightOf="@+id/left_imge" | 18 | |
| 44 | android:scaleType="fitXY" | 19 | <ImageView |
| 45 | /> | 20 | android:id="@+id/left_imge" |
| 46 | <!-- 获取推广链接按钮 --> | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" | ||
| 23 | android:scaleType="fitXY" /> | ||
| 24 | |||
| 25 | <Button | ||
| 26 | android:id="@+id/promoter_linked" | ||
| 27 | android:layout_width="wrap_content" | ||
| 28 | android:layout_height="wrap_content" | ||
| 29 | android:layout_alignParentBottom="true" | ||
| 30 | android:layout_centerHorizontal="true" | ||
| 31 | android:layout_marginBottom="20dp" | ||
| 32 | android:background="@drawable/promoter_linked" | ||
| 33 | android:gravity="center" | ||
| 34 | android:text="@string/promote" | ||
| 35 | android:textColor="@color/red" /> | ||
| 36 | </RelativeLayout> | ||
| 37 | |||
| 38 | <LinearLayout | ||
| 39 | android:layout_width="match_parent" | ||
| 40 | android:layout_height="match_parent" | ||
| 41 | android:layout_weight="5" | ||
| 42 | android:orientation="vertical" > | ||
| 43 | |||
| 44 | <RelativeLayout | ||
| 45 | android:layout_weight="2" | ||
| 46 | android:layout_width="match_parent" | ||
| 47 | android:layout_height="match_parent" > | ||
| 48 | |||
| 49 | <ImageView | ||
| 50 | android:id="@+id/right_top" | ||
| 51 | android:layout_width="match_parent" | ||
| 52 | android:layout_height="match_parent" | ||
| 53 | android:scaleType="fitXY" | ||
| 54 | /> | ||
| 55 | <!-- 进度条上方进度提示 --> | ||
| 56 | |||
| 57 | <RelativeLayout | ||
| 58 | android:layout_width="match_parent" | ||
| 59 | android:layout_height="wrap_content" | ||
| 60 | android:layout_marginLeft="32dp" | ||
| 61 | android:layout_marginTop="28dp" | ||
| 62 | android:gravity="bottom" | ||
| 63 | android:orientation="horizontal" > | ||
| 64 | |||
| 65 | <!-- 进度条 --> | ||
| 66 | |||
| 67 | <LinearLayout | ||
| 68 | android:id="@+id/playout" | ||
| 69 | android:layout_width="match_parent" | ||
| 70 | android:layout_height="wrap_content" | ||
| 71 | android:layout_toLeftOf="@+id/reward" | ||
| 72 | android:orientation="vertical" > | ||
| 73 | |||
| 74 | <LinearLayout | ||
| 75 | android:id="@+id/progress_instructions" | ||
| 76 | android:layout_width="match_parent" | ||
| 77 | android:layout_height="wrap_content" | ||
| 78 | android:orientation="horizontal" /> | ||
| 79 | |||
| 80 | <ProgressBar | ||
| 81 | android:id="@+id/prgress_bar" | ||
| 82 | style="?android:attr/progressBarStyleHorizontal" | ||
| 83 | android:layout_width="match_parent" | ||
| 84 | android:layout_height="wrap_content" | ||
| 85 | android:layout_marginRight="12.5dp" | ||
| 86 | android:background="@drawable/progress_bar_background" | ||
| 87 | android:progressDrawable="@drawable/progress_drawable" /> | ||
| 88 | </LinearLayout> | ||
| 89 | <!-- 获取奖励 --> | ||
| 47 | 90 | ||
| 48 | <Button | 91 | <Button |
| 49 | android:id="@+id/promoter_linked" | 92 | android:id="@id/reward" |
| 93 | android:layout_width="wrap_content" | ||
| 94 | android:layout_height="wrap_content" | ||
| 95 | android:layout_alignBottom="@id/playout" | ||
| 96 | android:layout_alignParentRight="true" | ||
| 97 | android:layout_marginRight="26dp" | ||
| 98 | android:background="@drawable/btn_reward_bg" | ||
| 99 | android:enabled="true" | ||
| 100 | android:gravity="bottom|center_horizontal" | ||
| 101 | android:paddingBottom="2dp" | ||
| 102 | android:text="@string/claim" | ||
| 103 | android:textColor="@color/btn_text_color" /> | ||
| 104 | </RelativeLayout> | ||
| 105 | </RelativeLayout> | ||
| 106 | |||
| 107 | <RelativeLayout | ||
| 108 | android:layout_weight="3" | ||
| 109 | android:layout_width="match_parent" | ||
| 110 | android:layout_height="match_parent" > | ||
| 111 | |||
| 112 | <ImageView | ||
| 113 | android:id="@+id/right_down" | ||
| 114 | android:layout_width="match_parent" | ||
| 115 | android:layout_height="match_parent" | ||
| 116 | android:scaleType="fitXY" | ||
| 117 | /> | ||
| 118 | |||
| 119 | <LinearLayout | ||
| 120 | android:layout_width="wrap_content" | ||
| 121 | android:layout_height="wrap_content" | ||
| 122 | android:layout_alignParentBottom="true" | ||
| 123 | android:layout_centerHorizontal="true" | ||
| 124 | android:layout_marginBottom="21dp" | ||
| 125 | android:gravity="center_vertical" | ||
| 126 | android:orientation="horizontal" > | ||
| 127 | |||
| 128 | <EditText | ||
| 129 | android:id="@+id/edittext" | ||
| 130 | android:layout_width="wrap_content" | ||
| 131 | android:layout_height="36.5dp" | ||
| 132 | android:layout_marginRight="22.5dp" | ||
| 133 | android:background="@drawable/edite_hint" | ||
| 134 | android:paddingLeft="10dp" | ||
| 135 | android:textColor="@color/edit_text_color" /> | ||
| 136 | |||
| 137 | <Button | ||
| 138 | android:id="@+id/confirm" | ||
| 139 | android:layout_width="wrap_content" | ||
| 140 | android:layout_height="30dp" | ||
| 141 | android:background="@drawable/btn_confirm_bg" | ||
| 142 | android:enabled="false" | ||
| 143 | android:paddingBottom="2dp" | ||
| 144 | android:text="@string/verify" | ||
| 145 | android:textColor="@color/btn_confirm_text_color" /> |
android/PromoterRelease/res/layout/item_share_app.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | android:layout_width="match_parent" | ||
| 4 | android:layout_height="match_parent" > | ||
| 5 | |||
| 6 | <ImageView | ||
| 7 | android:id="@+id/app_icon" | ||
| 8 | android:layout_width="69dp" | ||
| 9 | android:layout_height="69dp" | ||
| 10 | android:layout_centerHorizontal="true" | ||
| 11 | android:layout_marginTop="15dp" | ||
| 12 | android:scaleType="fitXY" /> | ||
| 13 | |||
| 14 | <TextView | ||
| 15 | android:id="@+id/app_name" | ||
| 16 | android:layout_width="wrap_content" | ||
| 17 | android:layout_height="wrap_content" | ||
| 18 | android:layout_below="@id/app_icon" | ||
| 19 | android:layout_centerHorizontal="true" | ||
| 20 | android:layout_marginTop="7dp" | ||
| 21 | android:ellipsize="end" | ||
| 22 | android:gravity="center" | ||
| 23 | android:singleLine="true" | ||
| 24 | android:text="game name" | ||
| 25 | android:textSize="12sp" /> | ||
| 26 | |||
| 27 | </RelativeLayout> |
android/PromoterRelease/res/layout/share_dialog.xml
| File was created | 1 | <?xml version="1.0" encoding="utf-8"?> | |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | android:layout_width="match_parent" | ||
| 4 | android:layout_height="match_parent" | ||
| 5 | android:orientation="vertical" | ||
| 6 | android:padding="5dp" > | ||
| 7 | |||
| 8 | <TextView | ||
| 9 | android:id="@+id/intro" | ||
| 10 | android:layout_width="match_parent" | ||
| 11 | android:layout_height="wrap_content" | ||
| 12 | android:layout_margin="5dp" | ||
| 13 | android:textColor="@color/black" | ||
| 14 | android:background="@color/common_bg" | ||
| 15 | android:text="259egeg" /> | ||
| 16 | |||
| 17 | <GridView | ||
| 18 | android:id="@+id/app_list" | ||
| 19 | android:layout_width="match_parent" | ||
| 20 | android:layout_height="match_parent" | ||
| 21 | android:numColumns="3" /> | ||
| 22 | |||
| 23 | </LinearLayout> |
android/PromoterRelease/res/values-sw720dp-land/dimens.xml
| 1 | <resources> | File was deleted | |
| 2 | |||
| 3 | <!-- | ||
| 4 | Customize dimensions originally defined in res/values/dimens.xml (such as | ||
| 5 | screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. | ||
| 6 | --> | ||
| 7 | <dimen name="activity_horizontal_margin">128dp</dimen> | ||
| 8 | |||
| 9 | </resources> | ||
| 10 | 1 | <resources> |
android/PromoterRelease/res/values/colors.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <resources> | 2 | <resources> |
| 3 | 3 | ||
| 4 | <color name="white">#ffffff</color> | 4 | <color name="white">#ffffff</color> |
| 5 | <color name="black">#000000</color> | 5 | <color name="black">#000000</color> |
| 6 | <!-- 有奖励 --> | 6 | <color name="transparent">#00FFFFFF</color> |
| 7 | <color name="have_reward_color">#ff9d1e</color> | 7 | <color name="common_bg">#cdc1c1</color> |
| 8 | <!-- 没奖励 --> | 8 | <color name="gray2">#6c6a6e</color> |
| 9 | <color name="no_reward_color">#514c52</color> | 9 | <color name="edit_text_color">#ff9000</color> |
| 10 | <!-- 验证 --> | 10 | <color name="red">#ff0000</color> |
| 11 | <color name="validate">#ff0000</color> | 11 | <color name="gray">#514c52</color> |
| 12 | <!-- 验证 --> | ||
| 13 | <color name="already_verification">#6c6a6e</color> | ||
| 14 | <!-- 验证 --> | ||
| 15 | <color name="bankground">#CDc1c1</color> | ||
| 16 | |||
| 17 | 12 | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | </resources> | 13 | </resources> |
android/PromoterRelease/res/values/strings.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <resources> | 2 | <resources> |
| 3 | 3 | ||
| 4 | <string name="app_name">Promoter</string> | 4 | <string name="app_name">Promoter</string> |
| 5 | <string name="action_settings">Settings</string> | 5 | <string name="share_title">Paste to the following apps</string> |
| 6 | <string name="hello_world">Hello world!</string> | 6 | <string name="copy_tip">Copied</string> |
| 7 | 7 | ||
| 8 | <string name="claim">Claim</string> | ||
| 9 | <string name="promote">Promote</string> | ||
| 10 | <string name="verify">Verify</string> | ||
| 11 | <string name="invalid_request">Invalid request</string> | ||
| 8 | </resources> | 12 | </resources> |
| 9 | 13 |