1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 20:42:34 +01:00

Fix empty fragment text not centered when text longer than one line

This commit is contained in:
TobiGr 2021-05-28 12:43:15 +02:00
parent e8d518cd6c
commit 6ec72ef945

View File

@ -5,6 +5,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingStart="@dimen/activity_horizontal_margin"
android:paddingEnd="@dimen/activity_horizontal_margin"
tools:context=".fragments.detail.VideoDetailFragment"> tools:context=".fragments.detail.VideoDetailFragment">
<TextView <TextView
@ -13,6 +15,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:layout_marginBottom="20dp"
android:fontFamily="sans-serif-condensed" android:fontFamily="sans-serif-condensed"
android:text="@string/app_name" android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceLarge" android:textAppearance="?android:attr/textAppearanceLarge"
@ -20,9 +23,10 @@
<TextView <TextView
android:id="@+id/mainBGSubtitle" android:id="@+id/mainBGSubtitle"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:gravity="center"
android:text="@string/main_bg_subtitle" android:text="@string/main_bg_subtitle"
android:textAppearance="?android:attr/textAppearanceMedium" /> android:textAppearance="?android:attr/textAppearanceMedium" />