Must be a color value, in the form of "#rgb", "#argb",
13 | "#rrggbb", or "#aarrggbb".
14 |
This may also be a reference to a resource (in the form
15 | "@[package:]type:name") or
16 | theme attribute (in the form
17 | "?[package:][type:]name")
18 | containing a value of this type.
19 | */
20 | public static final int gridColor=0x7f010003;
21 | /**
Must be a color value, in the form of "#rgb", "#argb",
22 | "#rrggbb", or "#aarrggbb".
23 |
This may also be a reference to a resource (in the form
24 | "@[package:]type:name") or
25 | theme attribute (in the form
26 | "?[package:][type:]name")
27 | containing a value of this type.
28 | */
29 | public static final int lineColor=0x7f010002;
30 | /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
31 | Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
32 | in (inches), mm (millimeters).
33 |
This may also be a reference to a resource (in the form
34 | "@[package:]type:name") or
35 | theme attribute (in the form
36 | "?[package:][type:]name")
37 | containing a value of this type.
38 | */
39 | public static final int lineWidth=0x7f010004;
40 | /**
Must be an integer value, such as "100".
41 |
This may also be a reference to a resource (in the form
42 | "@[package:]type:name") or
43 | theme attribute (in the form
44 | "?[package:][type:]name")
45 | containing a value of this type.
46 | */
47 | public static final int passwordLength=0x7f010005;
48 | /**
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
49 |
This may also be a reference to a resource (in the form
50 | "@[package:]type:name") or
51 | theme attribute (in the form
52 | "?[package:][type:]name")
53 | containing a value of this type.
54 | */
55 | public static final int passwordTransformation=0x7f010006;
56 | /**
Must be one of the following constant values.
57 |
58 |
59 |
60 |
61 |
Constant
Value
Description
62 |
numberPassword
0
63 |
textPassword
1
64 |
textVisiblePassword
2
65 |
textWebPassword
3
66 |
67 | */
68 | public static final int passwordType=0x7f010007;
69 | /**
May be a reference to another resource, in the form "@[+][package:]type:name"
70 | or to a theme attribute in the form "?[package:][type:]name".
71 |
May be a color value, in the form of "#rgb", "#argb",
72 | "#rrggbb", or "#aarrggbb".
73 | */
74 | public static final int textColor=0x7f010000;
75 | /**
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
76 | Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
77 | in (inches), mm (millimeters).
78 |
This may also be a reference to a resource (in the form
79 | "@[package:]type:name") or
80 | theme attribute (in the form
81 | "?[package:][type:]name")
82 | containing a value of this type.
83 | */
84 | public static final int textSize=0x7f010001;
85 | }
86 | public static final class dimen {
87 | /** Default screen margins, per the Android Design guidelines.
88 |
89 | Example customization of dimensions originally defined in res/values/dimens.xml
90 | (such as screen margins) for screens with more than 820dp of available width. This
91 | would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
92 |
93 | */
94 | public static final int activity_horizontal_margin=0x7f040000;
95 | public static final int activity_vertical_margin=0x7f040001;
96 | }
97 | public static final class drawable {
98 | public static final int cancel_btn_select=0x7f020000;
99 | public static final int confirm_btn_select=0x7f020001;
100 | public static final int custom_dialog_cancel_shape=0x7f020002;
101 | public static final int custom_dialog_shape=0x7f020003;
102 | public static final int dialog_bg=0x7f020004;
103 | public static final int ic_launcher=0x7f020005;
104 | }
105 | public static final class id {
106 | public static final int action_settings=0x7f08000a;
107 | public static final int cancel_btn=0x7f080007;
108 | public static final int confirm_btn=0x7f080008;
109 | public static final int inputView=0x7f080009;
110 | public static final int layout=0x7f080005;
111 | public static final int numberPassword=0x7f080000;
112 | public static final int password=0x7f080006;
113 | public static final int password_et=0x7f080004;
114 | public static final int textPassword=0x7f080001;
115 | public static final int textVisiblePassword=0x7f080002;
116 | public static final int textWebPassword=0x7f080003;
117 | }
118 | public static final class layout {
119 | public static final int activity_main=0x7f030000;
120 | public static final int customdialog=0x7f030001;
121 | public static final int divider=0x7f030002;
122 | public static final int gridpasswordview=0x7f030003;
123 | public static final int textview=0x7f030004;
124 | }
125 | public static final class menu {
126 | public static final int main=0x7f070000;
127 | }
128 | public static final class string {
129 | public static final int action_settings=0x7f050002;
130 | public static final int app_name=0x7f050000;
131 | public static final int hello_world=0x7f050001;
132 | }
133 | public static final class style {
134 | /**
135 | Base application theme, dependent on API level. This theme is replaced
136 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
137 |
138 |
139 | Theme customizations available in newer API levels can go in
140 | res/values-vXX/styles.xml, while customizations related to
141 | backward-compatibility can go here.
142 |
143 |
144 | Base application theme for API 11+. This theme completely replaces
145 | AppBaseTheme from res/values/styles.xml on API 11+ devices.
146 |
147 | API 11 theme customizations can go here.
148 |
149 | Base application theme for API 14+. This theme completely replaces
150 | AppBaseTheme from BOTH res/values/styles.xml and
151 | res/values-v11/styles.xml on API 14+ devices.
152 |
153 | API 14 theme customizations can go here.
154 | */
155 | public static final int AppBaseTheme=0x7f060000;
156 | /** Application theme.
157 | All customizations that are NOT specific to a particular API-level can go here.
158 | */
159 | public static final int AppTheme=0x7f060001;
160 | /** 添加
161 | */
162 | public static final int GridPasswordView=0x7f060004;
163 | public static final int GridPasswordView_Divider=0x7f060007;
164 | public static final int GridPasswordView_EditText=0x7f060006;
165 | public static final int GridPasswordView_TextView=0x7f060005;
166 | public static final int mystyle=0x7f060003;
167 | public static final int text_style=0x7f060002;
168 | }
169 | public static final class styleable {
170 | /** Attributes that can be used with a gridPasswordView.
171 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#gridColor}
200 | attribute's value can be found in the {@link #gridPasswordView} array.
201 |
202 |
203 |
Must be a color value, in the form of "#rgb", "#argb",
204 | "#rrggbb", or "#aarrggbb".
205 |
This may also be a reference to a resource (in the form
206 | "@[package:]type:name") or
207 | theme attribute (in the form
208 | "?[package:][type:]name")
209 | containing a value of this type.
210 | @attr name com.amberwhitesky.paypassworddemo:gridColor
211 | */
212 | public static final int gridPasswordView_gridColor = 3;
213 | /**
214 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#lineColor}
215 | attribute's value can be found in the {@link #gridPasswordView} array.
216 |
217 |
218 |
Must be a color value, in the form of "#rgb", "#argb",
219 | "#rrggbb", or "#aarrggbb".
220 |
This may also be a reference to a resource (in the form
221 | "@[package:]type:name") or
222 | theme attribute (in the form
223 | "?[package:][type:]name")
224 | containing a value of this type.
225 | @attr name com.amberwhitesky.paypassworddemo:lineColor
226 | */
227 | public static final int gridPasswordView_lineColor = 2;
228 | /**
229 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#lineWidth}
230 | attribute's value can be found in the {@link #gridPasswordView} array.
231 |
232 |
233 |
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
234 | Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
235 | in (inches), mm (millimeters).
236 |
This may also be a reference to a resource (in the form
237 | "@[package:]type:name") or
238 | theme attribute (in the form
239 | "?[package:][type:]name")
240 | containing a value of this type.
241 | @attr name com.amberwhitesky.paypassworddemo:lineWidth
242 | */
243 | public static final int gridPasswordView_lineWidth = 4;
244 | /**
245 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#passwordLength}
246 | attribute's value can be found in the {@link #gridPasswordView} array.
247 |
248 |
249 |
Must be an integer value, such as "100".
250 |
This may also be a reference to a resource (in the form
251 | "@[package:]type:name") or
252 | theme attribute (in the form
253 | "?[package:][type:]name")
254 | containing a value of this type.
255 | @attr name com.amberwhitesky.paypassworddemo:passwordLength
256 | */
257 | public static final int gridPasswordView_passwordLength = 5;
258 | /**
259 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#passwordTransformation}
260 | attribute's value can be found in the {@link #gridPasswordView} array.
261 |
262 |
263 |
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
264 |
This may also be a reference to a resource (in the form
265 | "@[package:]type:name") or
266 | theme attribute (in the form
267 | "?[package:][type:]name")
268 | containing a value of this type.
269 | @attr name com.amberwhitesky.paypassworddemo:passwordTransformation
270 | */
271 | public static final int gridPasswordView_passwordTransformation = 6;
272 | /**
273 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#passwordType}
274 | attribute's value can be found in the {@link #gridPasswordView} array.
275 |
276 |
277 |
Must be one of the following constant values.
278 |
279 |
280 |
281 |
282 |
Constant
Value
Description
283 |
numberPassword
0
284 |
textPassword
1
285 |
textVisiblePassword
2
286 |
textWebPassword
3
287 |
288 | @attr name com.amberwhitesky.paypassworddemo:passwordType
289 | */
290 | public static final int gridPasswordView_passwordType = 7;
291 | /**
292 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#textColor}
293 | attribute's value can be found in the {@link #gridPasswordView} array.
294 |
295 |
296 |
May be a reference to another resource, in the form "@[+][package:]type:name"
297 | or to a theme attribute in the form "?[package:][type:]name".
298 |
May be a color value, in the form of "#rgb", "#argb",
299 | "#rrggbb", or "#aarrggbb".
300 | @attr name com.amberwhitesky.paypassworddemo:textColor
301 | */
302 | public static final int gridPasswordView_textColor = 0;
303 | /**
304 |
This symbol is the offset where the {@link com.amberwhitesky.paypassworddemo.R.attr#textSize}
305 | attribute's value can be found in the {@link #gridPasswordView} array.
306 |
307 |
308 |
Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp".
309 | Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
310 | in (inches), mm (millimeters).
311 |
This may also be a reference to a resource (in the form
312 | "@[package:]type:name") or
313 | theme attribute (in the form
314 | "?[package:][type:]name")
315 | containing a value of this type.
316 | @attr name com.amberwhitesky.paypassworddemo:textSize
317 | */
318 | public static final int gridPasswordView_textSize = 1;
319 | };
320 | }
321 |
--------------------------------------------------------------------------------
/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/ic_launcher-web.png
--------------------------------------------------------------------------------
/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
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
12 |
13 | # Project target.
14 | target=android-19
15 |
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AmberWhiteSky/PayPassWordDemo/f90a151fc320ae917440eef07765b5153c047361/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable/cancel_btn_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/res/drawable/confirm_btn_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/res/drawable/custom_dialog_cancel_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
14 |
15 |
18 |
19 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/res/drawable/custom_dialog_shape.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
14 |
15 |
18 |
19 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/res/drawable/dialog_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
11 |
12 |
18 |
19 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/res/layout/customdialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
14 |
15 |
22 |
23 |
29 |
30 |
34 |
35 |
36 |
37 |
43 |
44 |
45 |
49 |
50 |
51 |
58 |
59 |
72 |
73 |
86 |
87 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/res/layout/divider.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/res/layout/gridpasswordview.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
--------------------------------------------------------------------------------
/res/layout/textview.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |