|
|
|
@ -210,13 +210,18 @@ fun View.sp(value: Float) = InterfaceUtils.spToPixels(context, value)
|
|
|
|
|
fun View.dp(value: Float) = InterfaceUtils.dpToPixels(context, value)
|
|
|
|
|
fun View.str(id: Int) = resources.getString(id)
|
|
|
|
|
|
|
|
|
|
fun View.drawNotesIndicator(canvas: Canvas, color: Int, size: Float, notes: String) {
|
|
|
|
|
val pNotesIndicator = Paint()
|
|
|
|
|
fun View.drawNotesIndicator(
|
|
|
|
|
pNotesIndicator: Paint,
|
|
|
|
|
canvas: Canvas,
|
|
|
|
|
color: Int,
|
|
|
|
|
size: Float,
|
|
|
|
|
notes: String,
|
|
|
|
|
) {
|
|
|
|
|
if (notes.isBlank()) return
|
|
|
|
|
|
|
|
|
|
pNotesIndicator.color = color
|
|
|
|
|
if (notes.isNotBlank()) {
|
|
|
|
|
val cy = 0.8f * size
|
|
|
|
|
canvas.drawCircle(width.toFloat() - cy, cy, 8f, pNotesIndicator)
|
|
|
|
|
}
|
|
|
|
|
val cy = 0.8f * size
|
|
|
|
|
canvas.drawCircle(width.toFloat() - cy, cy, 8f, pNotesIndicator)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val View.sres: StyledResources
|
|
|
|
|