Skip to content

Commit 8a35c16

Browse files
committed
Update README for pl_ namespace.
1 parent 39cbd59 commit 8a35c16

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,38 @@ Available `PatternView` attributes are, as in `attrs.xml`:
4444
```xml
4545
<declare-styleable name="PatternView">
4646
<!-- Defines the aspect to use when drawing PatternView. -->
47-
<attr name="aspect">
47+
<attr name="pl_aspect">
4848
<!-- Square; the default value. -->
4949
<enum name="square" value="0" />
5050
<enum name="lock_width" value="1" />
5151
<enum name="lock_height" value="2" />
5252
</attr>
5353
<!-- Defines the regular pattern color. -->
54-
<attr name="regularColor" format="color|reference" />
54+
<attr name="pl_regularColor" format="color|reference" />
5555
<!-- Defines the error color. -->
56-
<attr name="errorColor" format="color|reference" />
56+
<attr name="pl_errorColor" format="color|reference" />
5757
<!-- Defines the success color. -->
58-
<attr name="successColor" format="color|reference"/>
58+
<attr name="pl_successColor" format="color|reference"/>
5959
</declare-styleable>
6060
```
6161

6262
And built-in styles, as in `styles.xml`:
6363

6464
```xml
6565
<style name="Base.PatternView" parent="">
66-
<item name="aspect">square</item>
66+
<item name="pl_aspect">square</item>
6767
</style>
6868

6969
<style name="PatternView" parent="Base.PatternView">
70-
<item name="regularColor">?colorControlNormal</item>
71-
<item name="errorColor">#fff4511e</item>
72-
<item name="successColor">?colorControlActivated</item>
70+
<item name="pl_regularColor">?colorControlNormal</item>
71+
<item name="pl_errorColor">#fff4511e</item>
72+
<item name="pl_successColor">?colorControlActivated</item>
7373
</style>
7474

7575
<style name="PatternView.Light" parent="Base.PatternView">
76-
<item name="regularColor">?colorControlNormal</item>
77-
<item name="errorColor">#fff4511e</item>
78-
<item name="successColor">?colorControlActivated</item>
76+
<item name="pl_regularColor">?colorControlNormal</item>
77+
<item name="pl_errorColor">#fff4511e</item>
78+
<item name="pl_successColor">?colorControlActivated</item>
7979
</style>
8080
```
8181

0 commit comments

Comments
 (0)