image: introduce sizing

Unify corner radius and icon size configurations under a new sizing
property. This is largely driven by a need to remove the typical
half-width icon sizing, as it results in blurry playing indicators
in some cases. This also co-incides with a change of parent image
icon sizes to 32dp over 28dp.

Resolves #415.
This commit is contained in:
Alexander Capehart
2023-05-28 20:00:52 -06:00
parent 47b791b95f
commit b93a512bf7
6 changed files with 116 additions and 140 deletions
+5
View File
@@ -12,6 +12,11 @@
<declare-styleable name="CoverView">
<attr name="cornerRadius" format="dimension" />
<attr name="sizing" format="enum">
<enum name="small" value="0" />
<enum name="medium" value="1" />
<enum name="large" value="2" />
</attr>
<attr name="enablePlaybackIndicator" format="boolean" />
<attr name="enableSelectionBadge" format="boolean" />
</declare-styleable>