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

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" />