Recommendation item on explore screen (not finished)

This commit is contained in:
Zakhar Timoshenko
2023-07-02 02:15:07 +03:00
parent e2835e3e95
commit b2817a2ce7
11 changed files with 171 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ class MemoryUsageView @JvmOverloads constructor(
fun bind(usage: StorageUsage?) {
val storageSegment = SegmentedBarView.Segment(usage?.savedManga?.percent ?: 0f, segmentColor(com.google.android.material.R.attr.colorPrimary))
val pagesSegment = SegmentedBarView.Segment(usage?.pagesCache?.percent ?: 0f, segmentColor(com.google.android.material.R.attr.colorSecondary))
val pagesSegment = SegmentedBarView.Segment(usage?.pagesCache?.percent ?: 0f, segmentColor(com.google.android.material.R.attr.colorOnPrimaryContainer))
val otherSegment = SegmentedBarView.Segment(usage?.otherCache?.percent ?: 0f, segmentColor(com.google.android.material.R.attr.colorTertiary))
with(binding) {