a55acd38df
This TextView class extends the AppCompatTextView class from androidx. These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
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">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="wrap_content"
|
|
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"
|
|
android:textSize="40sp" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
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" />
|
|
|
|
</LinearLayout>
|