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:
Bradlee Speice
2014-12-21 23:23:12 -05:00
parent e1ab61dd5f
commit 51783afc0b
14 changed files with 127 additions and 328 deletions

View File

@ -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()