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.
88 lines
3.5 KiB
XML
88 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="invisible"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/playlist_ctrl_play_bg_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/playlist_ctrl_height"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="4dp"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/controls_background_title"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textSize="@dimen/channel_rss_title_size"
|
|
app:drawableLeftCompat="@drawable/ic_headset"
|
|
app:drawableStartCompat="@drawable/ic_headset" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="@dimen/playlist_ctrl_separator_margin"
|
|
android:layout_marginBottom="@dimen/playlist_ctrl_separator_margin"
|
|
android:background="?attr/colorAccent"
|
|
android:clickable="false" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/playlist_ctrl_play_all_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/play_all"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textSize="@dimen/channel_rss_title_size" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="@dimen/playlist_ctrl_separator_margin"
|
|
android:layout_marginBottom="@dimen/playlist_ctrl_separator_margin"
|
|
android:background="?attr/colorAccent"
|
|
android:clickable="false" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/playlist_ctrl_play_popup_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="4dp"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/controls_popup_title"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textSize="@dimen/channel_rss_title_size"
|
|
app:drawableLeftCompat="@drawable/ic_picture_in_picture"
|
|
app:drawableStartCompat="@drawable/ic_picture_in_picture" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|