Commit 46543ff958d5dc9ae4679cdc34f171735f3e6761
1 parent
773e140c38
Exists in
master
Release1.0.3
增加领取奖励提示语
Showing 5 changed files with 3 additions and 1 deletions Inline Diff
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=../../../../spreader/PromoterSdk | 15 | android.library.reference.1=../PromoterRelease |
16 | 16 |
android/PromoterRelease/libs/PromoterSdk_proguard_1.0.2.jar
No preview for this file type
android/PromoterRelease/libs/PromoterSdk_proguard_1.0.3.jar
No preview for this file type
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 | android:layout_width="match_parent" | 2 | android:layout_width="match_parent" |
3 | android:layout_height="match_parent" > | 3 | android:layout_height="match_parent" > |
4 | 4 | ||
5 | <LinearLayout | 5 | <LinearLayout |
6 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" |
7 | android:layout_height="match_parent" | 7 | android:layout_height="match_parent" |
8 | android:background="@color/common_bg" | 8 | android:background="@color/common_bg" |
9 | android:orientation="horizontal" > | 9 | android:orientation="horizontal" > |
10 | 10 | ||
11 | <!-- 左边宣传图片 --> | 11 | <!-- 左边宣传图片 --> |
12 | 12 | ||
13 | <RelativeLayout | 13 | <RelativeLayout |
14 | android:layout_width="match_parent" | 14 | android:layout_width="match_parent" |
15 | android:layout_height="match_parent" | 15 | android:layout_height="match_parent" |
16 | android:layout_marginRight="6dp" | 16 | android:layout_marginRight="6dp" |
17 | android:layout_weight="9" > | 17 | android:layout_weight="9" > |
18 | 18 | ||
19 | <ImageView | 19 | <ImageView |
20 | android:id="@+id/left_imge" | 20 | android:id="@+id/left_imge" |
21 | android:layout_width="match_parent" | 21 | android:layout_width="match_parent" |
22 | android:layout_height="match_parent" | 22 | android:layout_height="match_parent" |
23 | android:scaleType="fitXY" /> | 23 | android:scaleType="fitXY" /> |
24 | 24 | ||
25 | <Button | 25 | <Button |
26 | android:id="@+id/promoter_linked" | 26 | android:id="@+id/promoter_linked" |
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_alignParentBottom="true" | 29 | android:layout_alignParentBottom="true" |
30 | android:layout_centerHorizontal="true" | 30 | android:layout_centerHorizontal="true" |
31 | android:layout_marginBottom="20dp" | 31 | android:layout_marginBottom="20dp" |
32 | android:background="@drawable/promoter_linked" | 32 | android:background="@drawable/promoter_linked" |
33 | android:gravity="center" | 33 | android:gravity="center" |
34 | android:text="@string/promote" | 34 | android:text="@string/promote" |
35 | android:textColor="@color/red" /> | 35 | android:textColor="@color/red" /> |
36 | </RelativeLayout> | 36 | </RelativeLayout> |
37 | 37 | ||
38 | <LinearLayout | 38 | <LinearLayout |
39 | android:layout_width="match_parent" | 39 | android:layout_width="match_parent" |
40 | android:layout_height="match_parent" | 40 | android:layout_height="match_parent" |
41 | android:layout_weight="5" | 41 | android:layout_weight="5" |
42 | android:orientation="vertical" > | 42 | android:orientation="vertical" > |
43 | 43 | ||
44 | <RelativeLayout | 44 | <RelativeLayout |
45 | android:layout_weight="2" | 45 | android:layout_weight="2" |
46 | android:layout_width="match_parent" | 46 | android:layout_width="match_parent" |
47 | android:layout_height="match_parent" > | 47 | android:layout_height="match_parent" > |
48 | 48 | ||
49 | <ImageView | 49 | <ImageView |
50 | android:id="@+id/right_top" | 50 | android:id="@+id/right_top" |
51 | android:layout_width="match_parent" | 51 | android:layout_width="match_parent" |
52 | android:layout_height="match_parent" | 52 | android:layout_height="match_parent" |
53 | android:scaleType="fitXY" | 53 | android:scaleType="fitXY" |
54 | /> | 54 | /> |
55 | <!-- 进度条上方进度提示 --> | 55 | <!-- 进度条上方进度提示 --> |
56 | 56 | ||
57 | <RelativeLayout | 57 | <RelativeLayout |
58 | android:layout_width="match_parent" | 58 | android:layout_width="match_parent" |
59 | android:layout_height="wrap_content" | 59 | android:layout_height="wrap_content" |
60 | android:layout_marginLeft="32dp" | 60 | android:layout_marginLeft="32dp" |
61 | android:layout_marginTop="28dp" | 61 | android:layout_marginTop="28dp" |
62 | android:gravity="bottom" | 62 | android:gravity="bottom" |
63 | android:orientation="horizontal" > | 63 | android:orientation="horizontal" > |
64 | 64 | ||
65 | <!-- 进度条 --> | 65 | <!-- 进度条 --> |
66 | 66 | ||
67 | <LinearLayout | 67 | <LinearLayout |
68 | android:id="@+id/playout" | 68 | android:id="@+id/playout" |
69 | android:layout_width="match_parent" | 69 | android:layout_width="match_parent" |
70 | android:layout_height="wrap_content" | 70 | android:layout_height="wrap_content" |
71 | android:layout_toLeftOf="@+id/reward" | 71 | android:layout_toLeftOf="@+id/reward" |
72 | android:orientation="vertical" > | 72 | android:orientation="vertical" > |
73 | 73 | ||
74 | <LinearLayout | 74 | <LinearLayout |
75 | android:id="@+id/progress_instructions" | 75 | android:id="@+id/progress_instructions" |
76 | android:layout_width="match_parent" | 76 | android:layout_width="match_parent" |
77 | android:layout_height="wrap_content" | 77 | android:layout_height="wrap_content" |
78 | android:orientation="horizontal" /> | 78 | android:orientation="horizontal" /> |
79 | 79 | ||
80 | <ProgressBar | 80 | <ProgressBar |
81 | android:id="@+id/prgress_bar" | 81 | android:id="@+id/prgress_bar" |
82 | style="?android:attr/progressBarStyleHorizontal" | 82 | style="?android:attr/progressBarStyleHorizontal" |
83 | android:layout_width="match_parent" | 83 | android:layout_width="match_parent" |
84 | android:layout_height="wrap_content" | 84 | android:layout_height="wrap_content" |
85 | android:layout_marginRight="12.5dp" | 85 | android:layout_marginRight="12.5dp" |
86 | android:background="@drawable/progress_bar_background" | 86 | android:background="@drawable/progress_bar_background" |
87 | |||
87 | android:progressDrawable="@drawable/progress_drawable" /> | 88 | android:progressDrawable="@drawable/progress_drawable" /> |
88 | </LinearLayout> | 89 | </LinearLayout> |
89 | <!-- 获取奖励 --> | 90 | <!-- 获取奖励 --> |
90 | 91 | ||
91 | <Button | 92 | <Button |
92 | android:id="@id/reward" | 93 | android:id="@id/reward" |
93 | android:layout_width="wrap_content" | 94 | android:layout_width="wrap_content" |
94 | android:layout_height="wrap_content" | 95 | android:layout_height="wrap_content" |
95 | android:layout_alignBottom="@id/playout" | 96 | android:layout_alignBottom="@id/playout" |
96 | android:layout_alignParentRight="true" | 97 | android:layout_alignParentRight="true" |
97 | android:layout_marginRight="26dp" | 98 | android:layout_marginRight="26dp" |
98 | android:background="@drawable/btn_reward_bg" | 99 | android:background="@drawable/btn_reward_bg" |
99 | android:enabled="true" | 100 | android:enabled="true" |
100 | android:gravity="bottom|center_horizontal" | 101 | android:gravity="bottom|center_horizontal" |
101 | android:paddingBottom="2dp" | 102 | android:paddingBottom="2dp" |
102 | android:text="@string/claim" | 103 | android:text="@string/claim" |
103 | android:textColor="@color/btn_text_color" /> | 104 | android:textColor="@color/btn_text_color" /> |
104 | </RelativeLayout> | 105 | </RelativeLayout> |
105 | </RelativeLayout> | 106 | </RelativeLayout> |
106 | 107 | ||
107 | <RelativeLayout | 108 | <RelativeLayout |
108 | android:layout_weight="3" | 109 | android:layout_weight="3" |
109 | android:layout_width="match_parent" | 110 | android:layout_width="match_parent" |
110 | android:layout_height="match_parent" > | 111 | android:layout_height="match_parent" > |
111 | 112 | ||
112 | <ImageView | 113 | <ImageView |
113 | android:id="@+id/right_down" | 114 | android:id="@+id/right_down" |
114 | android:layout_width="match_parent" | 115 | android:layout_width="match_parent" |
115 | android:layout_height="match_parent" | 116 | android:layout_height="match_parent" |
116 | android:scaleType="fitXY" | 117 | android:scaleType="fitXY" |
117 | /> | 118 | /> |
118 | 119 | ||
119 | <LinearLayout | 120 | <LinearLayout |
120 | android:layout_width="wrap_content" | 121 | android:layout_width="wrap_content" |
121 | android:layout_height="wrap_content" | 122 | android:layout_height="wrap_content" |
122 | android:layout_alignParentBottom="true" | 123 | android:layout_alignParentBottom="true" |
123 | android:layout_centerHorizontal="true" | 124 | android:layout_centerHorizontal="true" |
124 | android:layout_marginBottom="21dp" | 125 | android:layout_marginBottom="21dp" |
125 | android:gravity="center_vertical" | 126 | android:gravity="center_vertical" |
126 | android:orientation="horizontal" > | 127 | android:orientation="horizontal" > |
127 | 128 | ||
128 | <EditText | 129 | <EditText |
129 | android:id="@+id/edittext" | 130 | android:id="@+id/edittext" |
130 | android:layout_width="wrap_content" | 131 | android:layout_width="wrap_content" |
131 | android:layout_height="36.5dp" | 132 | android:layout_height="36.5dp" |
132 | android:layout_marginRight="22.5dp" | 133 | android:layout_marginRight="22.5dp" |
133 | android:background="@drawable/edite_hint" | 134 | android:background="@drawable/edite_hint" |
134 | android:paddingLeft="10dp" | 135 | android:paddingLeft="10dp" |
135 | android:textColor="@color/edit_text_color" /> | 136 | android:textColor="@color/edit_text_color" /> |
136 | 137 | ||
137 | <Button | 138 | <Button |
138 | android:id="@+id/confirm" | 139 | android:id="@+id/confirm" |
139 | android:layout_width="wrap_content" | 140 | android:layout_width="wrap_content" |
140 | android:layout_height="30dp" | 141 | android:layout_height="30dp" |
141 | android:background="@drawable/btn_confirm_bg" | 142 | android:background="@drawable/btn_confirm_bg" |
142 | android:enabled="false" | 143 | android:enabled="false" |
143 | android:paddingBottom="2dp" | 144 | android:paddingBottom="2dp" |
144 | android:text="@string/verify" | 145 | android:text="@string/verify" |
145 | android:textColor="@color/btn_confirm_text_color" /> | 146 | android:textColor="@color/btn_confirm_text_color" /> |
146 | </LinearLayout> | 147 | </LinearLayout> |
147 | </RelativeLayout> | 148 | </RelativeLayout> |
148 | </LinearLayout> | 149 | </LinearLayout> |
149 | </LinearLayout> | 150 | </LinearLayout> |
150 | <!-- 中间指示 --> | 151 | <!-- 中间指示 --> |
151 | 152 | ||
152 | <ImageView | 153 | <ImageView |
153 | android:id="@+id/middle_instructions" | 154 | android:id="@+id/middle_instructions" |
154 | android:layout_width="wrap_content" | 155 | android:layout_width="wrap_content" |
155 | android:layout_height="wrap_content" | 156 | android:layout_height="wrap_content" |
156 | android:layout_marginLeft="210dp" | 157 | android:layout_marginLeft="210dp" |
157 | android:layout_marginTop="101dp" | 158 | android:layout_marginTop="101dp" |
158 | android:scaleType="fitXY" | 159 | android:scaleType="fitXY" |
159 | android:src="@drawable/middle_instructions" /> | 160 | android:src="@drawable/middle_instructions" /> |
160 | <!-- 关闭按钮 --> | 161 | <!-- 关闭按钮 --> |
161 | 162 | ||
162 | <ImageView | 163 | <ImageView |
163 | android:id="@+id/close_image" | 164 | android:id="@+id/close_image" |
164 | android:layout_width="wrap_content" | 165 | android:layout_width="wrap_content" |
165 | android:layout_height="wrap_content" | 166 | android:layout_height="wrap_content" |
166 | android:layout_alignParentRight="true" | 167 | android:layout_alignParentRight="true" |
167 | android:layout_alignParentTop="true" | 168 | android:layout_alignParentTop="true" |
168 | android:src="@drawable/close_image" /> | 169 | android:src="@drawable/close_image" /> |
169 | 170 | ||
170 | </RelativeLayout> | 171 | </RelativeLayout> |
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="share_title">Paste to the following apps</string> | 5 | <string name="share_title">Paste to the following apps</string> |
6 | <string name="copy_tip">Copied</string> | 6 | <string name="copy_tip">Copied</string> |
7 | 7 | ||
8 | <string name="claim">Claim</string> | 8 | <string name="claim">Claim</string> |
9 | <string name="promote">Promote</string> | 9 | <string name="promote">Promote</string> |
10 | <string name="verify">Verify</string> | 10 | <string name="verify">Verify</string> |
11 | <string name="invalid_request">Invalid request</string> | 11 | <string name="invalid_request">Invalid request</string> |
12 | <string name="get_reward_succ">Claimed</string> | ||
12 | </resources> | 13 | </resources> |
13 | 14 |