Skip to content

Commit edf5810

Browse files
committed
Edited documentation.
1 parent f4e2d5f commit edf5810

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

doc/content.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,46 @@ <h4><a name="modifying-the-appearance">4 Modifying the dialog's appearance</a></
136136

137137
<p>If a dialog, which is created by the class <a href="javadoc/de/mrapp/android/dialog/MaterialDialog.Builder.html" target="_blank" class="code">MaterialDialog.Builder</a>, should use an individual theme instead of the App's default theme, the theme's resource ID can be passed to the builder's constructor.</p>
138138

139+
<p>Besides using the setter methods mentioned above, theme attributes can be used to change the appearance of dialogs. The following table shows all available attributes. They must either be defined in the app's global theme or in the theme, whose ID is pased to the builder's constructor, if any.</p>
140+
141+
<table>
142+
<tr>
143+
<th>Theme attribute</th>
144+
<th>Explaination</th>
145+
<th>Format</th>
146+
</tr>
147+
<tr>
148+
<td><tt>materialDialogTitleColor</tt></td>
149+
<td>Specified the color of the dialogs' title.</td>
150+
<td><center><tt>color</center></td>
151+
</tr>
152+
<tr>
153+
<td><tt>materialDialogMessageColor</tt></td>
154+
<td>Specifies the color of the dialogs' message.</td>
155+
<td><center><tt>color</tt></center></td>
156+
</tr>
157+
<tr>
158+
<td><tt>materialDialogItemColor</tt></td>
159+
<td>Specifies the color of the dialogs' list items.</td>
160+
<td><center><tt>color</tt></center></td>
161+
</tr>
162+
<tr>
163+
<td><tt>materialDialogItemControlColor</tt></td>
164+
<td>Specifies the color of the dialogs' item controls (e.g. checkboxes).</td>
165+
<td><center><tt>color</tt></center></td>
166+
</tr>
167+
<tr>
168+
<td><tt>materialDialogButtonTextColor</tt></td>
169+
<td>Specifies the text color of the dialogs' buttons.</td>
170+
<td><center><tt>color</tt></center></td>
171+
</tr>
172+
<tr>
173+
<td><tt>materialDialogBackground</tt></td>
174+
<td>Specifies the dialogs' background.</td>
175+
<td><center><tt>color|reference</tt></center></td>
176+
</tr>
177+
</table>
178+
139179
<h4><a name="show-list-items">5 Use the dialog to show list items</a></h4>
140180

141181
<p>A dialog, which is created by the class <a href="javadoc/de/mrapp/android/dialog/MaterialDialog.Builder.html" target="_blank" class="code">MaterialDialog.Builder</a> can also be used to show list items. Three different choice modes are available. Each one of them will be discussed in one of the following subsections.</p>

0 commit comments

Comments
 (0)