Clean up extension details layout a bit

This commit is contained in:
arkon 2020-06-15 22:54:11 -04:00
parent ff5f13eafe
commit c041410f61

View File

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