-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathattrs.xml
More file actions
41 lines (41 loc) · 1.92 KB
/
attrs.xml
File metadata and controls
41 lines (41 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="PinEntryView">
<!-- The number of digits in the pin -->
<attr name="numDigits" format="integer" />
<!-- Digit dimensions, default 50dp x 50dp -->
<attr name="digitWidth" format="dimension" />
<attr name="digitHeight" format="dimension" />
<!-- Spacing between the pin boxes, default 20dp -->
<attr name="digitSpacing" format="dimension" />
<!-- Digit background, colour or drawable -->
<attr name="digitBackground" format="reference|color" />
<!-- Font size to use for the mask text, default 15sp -->
<attr name="digitTextSize" format="dimension" />
<!-- Colour of the mask text, defaults to theme textColorPrimary -->
<attr name="digitTextColor" format="color" />
<!-- Digit elevation (API 21+ only), default 0dp -->
<attr name="digitElevation" format="dimension" />
<!-- The character to use to mask the input -->
<attr name="mask" format="string" />
<!-- Accent color, defaults to theme colorAccent -->
<attr name="pinAccentColor" format="color" />
<!-- Accent width, default 3dp -->
<attr name="accentWidth" format="dimension" />
<!-- Accent type, default 'character' -->
<attr name="accentType" format="enum">
<enum name="none" value="0" />
<enum name="all" value="1" />
<enum name="character" value="2" />
</attr>
<!-- Input type -->
<attr name="pinInputType" format="enum">
<enum name="text" value="1" />
<enum name="number" value="2" />
</attr>
<!-- Only draw accent when View has focus -->
<attr name="accentRequiresFocus" format="boolean" />
<!-- All uppercase when no mask set -->
<attr name="textUpperCase" format="boolean" />
</declare-styleable>
</resources>