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.
75 lines
2.9 KiB
XML
75 lines
2.9 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="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/error_message_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="@string/general_error"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
tools:text="Account terminated" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/error_message_service_info_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:gravity="center"
|
|
android:text="@string/general_error"
|
|
android:textSize="16sp"
|
|
android:visibility="gone"
|
|
tools:text="YouTube provides this reason:"
|
|
tools:visibility="visible" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/error_message_service_explanation_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/general_error"
|
|
android:textSize="16sp"
|
|
android:textStyle="italic"
|
|
android:visibility="gone"
|
|
tools:text="This account has been terminated because we received multiple third-party claims of copyright infringement regarding material that the user posted."
|
|
tools:visibility="visible" />
|
|
|
|
|
|
<Button
|
|
android:id="@+id/error_action_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/error_snackbar_action"
|
|
android:textAlignment="center"
|
|
android:textAllCaps="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:textSize="16sp"
|
|
android:theme="@style/ServiceColoredButton"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
<Button
|
|
android:id="@+id/error_retry_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:text="@string/retry"
|
|
android:textAlignment="center"
|
|
android:textAllCaps="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:textSize="16sp"
|
|
android:theme="@style/ServiceColoredButton"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|