2018-02-06 05:50:56 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-06-16 10:54:11 +08:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-02-06 05:50:56 +08:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-16 10:54:11 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-05-14 11:12:35 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/extension_warning_banner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-14 05:27:03 +08:00
|
|
|
android:background="?attr/colorError"
|
2020-05-14 11:12:35 +08:00
|
|
|
android:gravity="center"
|
|
|
|
android:padding="16dp"
|
2020-06-14 05:27:03 +08:00
|
|
|
android:textColor="?attr/colorOnError"
|
2020-05-14 11:12:35 +08:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-01 06:28:05 +08:00
|
|
|
android:background="?attr/colorPrimary"
|
|
|
|
android:elevation="2dp"
|
2020-06-16 10:54:11 +08:00
|
|
|
android:padding="16dp">
|
2020-06-01 06:28:05 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/extension_icon"
|
|
|
|
android:layout_width="56dp"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:src="@mipmap/ic_launcher"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/extension_pkg"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/extension_title"
|
|
|
|
style="@style/TextAppearance.Regular.SubHeading"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:elevation="3dp"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/extension_icon"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Tachiyomi: Extension" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/extension_version"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:elevation="3dp"
|
|
|
|
android:gravity="center"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/extension_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/extension_title"
|
|
|
|
tools:text="Version: 1.0.0" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/extension_lang"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:elevation="3dp"
|
|
|
|
android:gravity="center"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/extension_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/extension_version"
|
|
|
|
tools:text="Language: English" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/extension_pkg"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:elevation="3dp"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:singleLine="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/extension_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/extension_lang"
|
|
|
|
tools:text="eu.kanade.tachiyomi.extension.en.myext" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
<Button
|
|
|
|
android:id="@+id/extension_uninstall_button"
|
|
|
|
style="@style/Theme.Widget.Button.FilledAccent"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:paddingStart="32dp"
|
|
|
|
android:paddingEnd="32dp"
|
|
|
|
android:text="@string/ext_uninstall"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/extension_lang" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-01 04:23:51 +08:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/extension_prefs_recycler"
|
2020-06-16 10:54:11 +08:00
|
|
|
android:layout_width="match_parent"
|
2020-06-01 04:23:51 +08:00
|
|
|
android:layout_height="0dp"
|
2020-06-16 10:54:11 +08:00
|
|
|
android:layout_weight="1" />
|
2018-02-06 05:50:56 +08:00
|
|
|
|
2020-06-16 10:54:11 +08:00
|
|
|
</LinearLayout>
|