Skip to content

Commit 8dedc2b

Browse files
committed
Added docs for attributes
1 parent 39322f2 commit 8dedc2b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

lib/src/main/res/values/attrs.xml

+39
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,62 @@
2020
<attr name="icdStyle" format="reference"/>
2121

2222
<declare-styleable name="IconDialog">
23+
24+
<!-- Maximum width for the calculator dialog. The dialog will expand to that width. -->
2325
<attr name="icdMaxWidth" format="dimension|reference"/>
26+
27+
<!-- Maximum height for the calculator dialog. The dialog will expand to that height. -->
2428
<attr name="icdMaxHeight" format="dimension|reference"/>
29+
30+
<!-- Size of the icons displayed in the dialog. This has an influence on the number
31+
of spans shown (the number of columns). -->
2532
<attr name="icdIconSize" format="dimension|reference"/>
33+
34+
<!-- Style for the icon image views. Note that these views support `android:state_checked`
35+
state attribute in color state lists. -->
2636
<attr name="icdIconStyle" format="reference"/>
37+
38+
<!-- Style for the icon foreground view.
39+
It's used to display the ripple drawable by default. -->
2740
<attr name="icdIconForegroundStyle" format="reference"/>
41+
42+
<!-- Normal icon color. Note that color state lists aren't supported as a value of this
43+
attribute until API 23. On lower APIs, use attributes or hardcoded colors. -->
2844
<attr name="icdIconColor" format="color|reference"/>
45+
46+
<!-- Selected icon color. -->
2947
<attr name="icdSelectedIconColor" format="color|reference"/>
48+
49+
<!-- Style for a list header used to display a category name (non sticky). -->
3050
<attr name="icdListHeaderStyle" format="reference"/>
51+
52+
<!-- Style for a list header used to display a category name (sticky). -->
3153
<attr name="icdListStickyHeaderStyle" format="reference"/>
54+
55+
<!-- Style for the drawable used to separate the header and footer of the dialog. -->
3256
<attr name="icdDividerDrawable" format="reference"/>
57+
58+
<!-- Style for the search EditText. -->
3359
<attr name="icdSearchBarStyle" format="reference"/>
60+
61+
<!-- Style for the search icon at the start of the search field. -->
3462
<attr name="icdSearchIconStyle" format="reference"/>
63+
64+
<!-- Style for the cancel/erase search button at the end of the search field. -->
3565
<attr name="icdCancelSearchIconStyle" format="reference"/>
66+
67+
<!-- Style for the text displayed when search returned no results. -->
3668
<attr name="icdNoResultLabelStyle" format="reference"/>
69+
70+
<!-- Style for the dialog title text. -->
3771
<attr name="icdDialogTitleStyle" format="reference"/>
72+
73+
<!-- Style for the RecyclerView used to display icons. -->
3874
<attr name="icdDialogListStyle" format="reference"/>
75+
76+
<!-- Style for the dialog buttons. -->
3977
<attr name="icdDialogButtonStyle" format="reference"/>
78+
4079
</declare-styleable>
4180

4281
</resources>

0 commit comments

Comments
 (0)