Center reader transition text properly (fixes #3819)
This commit is contained in:
parent
8cef35f4a0
commit
01ad405dd2
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
|||
|
||||
init {
|
||||
inflate(context, R.layout.reader_transition_view, this)
|
||||
layoutParams = LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)
|
||||
}
|
||||
|
||||
fun bind(transition: ChapterTransition) {
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
|
Reference in a new issue