mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-07-04 15:25:14 -04:00
Sometimes you have to destroy first to create
Re-writing most of the UI for Material compliance. This is going to be a significant effort, but the final product is going to look *much* nicer for it.
This commit is contained in:
@ -92,10 +92,9 @@ class BibleMenu(val b: Book) : BaseExpandableListAdapter() {
|
||||
val content = bindTo.findViewById(resource) as TextView
|
||||
val resources = bindTo.getResources(): Resources
|
||||
|
||||
fun getHighlightedColor(highlighted: Boolean) = when(highlighted) {
|
||||
true -> resources getColor R.color.navbar_highlight
|
||||
else -> resources getColor R.color.navbar_unhighlighted // false
|
||||
}
|
||||
fun getHighlightedColor(highlighted: Boolean) =
|
||||
if (highlighted) resources getColor R.color.colorAccent
|
||||
else resources getColor R.color.textColor
|
||||
|
||||
fun bind(obj: Any, highlighted: Boolean) {
|
||||
content setText obj.toString()
|
||||
|
Reference in New Issue
Block a user