mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-15 08:50:35 +03:00
Make track view transparent by default
This commit is contained in:
parent
1f68a59af9
commit
83fae89763
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user