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.
42 lines
1.6 KiB
XML
42 lines
1.6 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:padding="13dp">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:text="@string/select_a_channel"
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/items_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:listitem="@layout/select_channel_item" />
|
|
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/empty_state_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:text="@string/no_channel_subscribed_yet"
|
|
android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp" />
|
|
</LinearLayout>
|