mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-04 15:28:21 +03:00
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.
32 lines
No EOL
1.1 KiB
XML
32 lines
No EOL
1.1 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="wrap_content"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="12dp">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/header_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:gravity="start|center_vertical"
|
|
android:maxLines="2"
|
|
android:minHeight="24dp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
tools:text="Header" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/header_menu_item"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="16dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
tools:src="@drawable/ic_bookmark" />
|
|
</LinearLayout> |