com.droidux.pack.commons.widget.editor.NoteInterface |
![]() |
Represents contracts that need to be implemented by notes widgets.
XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
dux_drawLine | setShouldDrawLine(boolean) | Controls whether a horizontal line should be drawn across the note widget. | |||||||||
dux_drawMargin | setShouldDrawMargin(boolean) | Controls whether to draw a color margin on the left side of the widget. | |||||||||
dux_lineColor | setLineColor(int) | Specifies the line color to be used if the dux_drawLine is set to true . |
|||||||||
dux_marginColor | setMarginColor(int) | Specifies the margin color to be used if the dux_drawMargin is set to true . |
|||||||||
dux_marginType | setMarginType(int) | The type of the paper color for use as background of text editing widgets. | |||||||||
dux_marginWidth | setMarginWidth(int) | Specifies the width of the margin, if the dux_drawMargin is set to true . |
|||||||||
dux_paperColor | setPaperColor(int) | Specifies the paper color for use as background of text editing widgets. | |||||||||
dux_paperColorType | setPaperColorType(int) | The type of the paper color for use as background of text editing widgets. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MARGIN_TYPE_DOUBLE_LINE | |||||||||||
MARGIN_TYPE_EDGE | |||||||||||
MARGIN_TYPE_LINE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the color to use to draw the horizontal lines.
| |||||||||||
Gets the color to use to draw the colored margin.
| |||||||||||
Returns the margin type.
| |||||||||||
Gets the width of the colored margin.
| |||||||||||
Gets the base color to use to draw the background.
| |||||||||||
Gets the type of color to use to draw the background.
| |||||||||||
Gets whether to draw horizontal lines.
| |||||||||||
Gets whether to draw a colored margin.
| |||||||||||
Sets the color to use to draw the horizontal lines.
| |||||||||||
Sets the color to use to draw the colored margin.
| |||||||||||
Sets the type of the margin.
| |||||||||||
Sets the width of the colored margin.
| |||||||||||
Sets the base color to use to draw the background.
| |||||||||||
Sets the type of color to use to draw the background.
| |||||||||||
Sets whether to draw horizontal lines.
| |||||||||||
Sets whether to draw a colored margin.
|
Controls whether a horizontal line should be drawn across the note widget. Default is true
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Controls whether to draw a color margin on the left side of the widget. Default is false
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
Specifies the line color to be used if the dux_drawLine
is set to true
. If the line color is not specified and the dux_drawLine
is true
, a color will be automatically calculated.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
Specifies the margin color to be used if the dux_drawMargin
is set to true
.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
The type of the paper color for use as background of text editing widgets.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
solid | 0 | Use solid color. |
gradient | 1 | Use gradient color. The gradient color will be automatically created based on the color specified by the
dux_paperColor attribute. |
Specifies the width of the margin, if the dux_drawMargin
is set to true
.
Its value should be a dimension (such as "5dip").
Must be a dimension value, which is a floating point number appended with a unit such as "2.5sp
".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
Specifies the paper color for use as background of text editing widgets. If the widget already has a background, the color specified by this attribute will be drawn over the background, so you might need to adjust the opacity of the color to still see the background. You can use a transparent color to not draw a color on the background.
May be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
May be a color value, in the form of "#rgb
", "#argb
",
"#rrggbb
", or "#aarrggbb
".
The type of the paper color for use as background of text editing widgets.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
solid | 0 | Use solid color. |
gradient | 1 | Use gradient color. The gradient color will be automatically created based on the color specified by the
dux_paperColor attribute. |
Gets the color to use to draw the horizontal lines.
Gets the color to use to draw the colored margin.
Returns the margin type.
Gets the width of the colored margin.
Gets the base color to use to draw the background.
Gets the type of color to use to draw the background.
solid
or gradient
.Gets whether to draw horizontal lines.
Gets whether to draw a colored margin.
Sets the color to use to draw the horizontal lines.
color | The line color. |
---|
Sets the color to use to draw the colored margin.
color | The margin color. |
---|
Sets the width of the colored margin.
width | The width of the margin. |
---|
Sets the base color to use to draw the background.
color | The color. |
---|
Sets the type of color to use to draw the background.
type | The type of color. Can be solid or gradient . |
---|
Sets whether to draw horizontal lines.
draw | If true, horizontal lines will be drawn. |
---|
Sets whether to draw a colored margin.
draw | If true, a colored margin will be drawn. |
---|