Merge pull request #6387 from TeamNewPipe/empty_fragment_design

Fix empty fragment text not centered when text longer than one line
This commit is contained in:
Robin 2021-05-28 17:48:38 +02:00 committed by GitHub
commit 67b83388b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

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