Make track view transparent by default

This commit is contained in:
birdbird 2023-06-09 11:36:56 +00:00
parent 1f68a59af9
commit 83fae89763
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,6 @@
package org.moire.ultrasonic.adapters
import android.graphics.Color
import android.view.View
import android.widget.Checkable
import android.widget.CheckedTextView
@ -45,7 +46,6 @@ class TrackViewHolder(val view: View) :
CoroutineScope by CoroutineScope(Dispatchers.IO) {
companion object {
val COLOR_NORMAL = com.google.android.material.R.attr.colorSurface
val COLOR_HIGHLIGHT = com.google.android.material.R.attr.colorSecondaryContainer
}
@ -186,8 +186,7 @@ class TrackViewHolder(val view: View) :
title.setCompoundDrawablesWithIntrinsicBounds(
0, 0, 0, 0
)
val color = MaterialColors.getColor(view, COLOR_NORMAL)
songLayout.setBackgroundColor(color)
songLayout.setBackgroundColor(Color.TRANSPARENT)
songLayout.elevation = 0F
}
}

View File

@ -5,7 +5,6 @@
a:id="@+id/song_layout"
a:layout_width="fill_parent"
a:layout_height="?android:attr/listPreferredItemHeight"
a:background="?attr/colorSurface"
a:minHeight="?android:attr/listPreferredItemHeight"
a:orientation="horizontal">