Add some cosmetic tweaks

Text size and color mostly
This commit is contained in:
Bradlee Speice
2014-11-29 22:32:39 -05:00
parent 320159f1bd
commit 3d1e34e586
5 changed files with 19 additions and 5 deletions

View File

@ -17,13 +17,15 @@ import android.text.style.StyleSpan
import android.graphics.Typeface
import android.text.style.SuperscriptSpan
import android.text.style.RelativeSizeSpan
import android.util.TypedValue
/**
* Adapter used for displaying a book
* Displays one chapter at a time,
* as each TextView widget is it's own line break
*/
class BookAdapter(val b: Book, val lookup: VerseLookup)
class BookAdapter(val b: Book, val lookup: VerseLookup,
val prefs: BibleViewerPreferences)
: RecyclerView.Adapter<PassageView>() {
val versification = b.getVersification()
@ -76,6 +78,9 @@ class BookAdapter(val b: Book, val lookup: VerseLookup)
val emptyView = LayoutInflater.from(parent?.getContext())
.inflate(R.layout.viewer_passage_view, parent, false) as TextView
// TODO: Prefs object for handling this?
emptyView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16f)
val passage = PassageView(emptyView, b, lookup)
return passage
}