mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-06-30 21:36:10 -04:00
Add some cosmetic tweaks
Text size and color mostly
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user