mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-17 15:24:55 +00:00
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.
56 lines
2.5 KiB
XML
56 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_vertical_margin"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
android:text="@string/app_license_title"
|
|
android:textAppearance="@android:style/TextAppearance.Large" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:text="@string/app_license" />
|
|
|
|
<Button
|
|
android:id="@+id/licenses_app_read_license"
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end"
|
|
android:layout_marginRight="@dimen/activity_vertical_margin"
|
|
android:text="@string/read_full_license" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="10dp"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:text="@string/title_licenses"
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/licenses_software_components"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" />
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|