extension_detail_header.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:orientation="vertical">
  8. <TextView
  9. android:id="@+id/warning_banner"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:background="?attr/colorError"
  13. android:gravity="center"
  14. android:padding="16dp"
  15. android:textColor="?attr/colorOnError"
  16. android:visibility="gone"
  17. tools:visibility="visible" />
  18. <androidx.constraintlayout.widget.ConstraintLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:padding="16dp">
  22. <ImageView
  23. android:id="@+id/icon"
  24. android:layout_width="56dp"
  25. android:layout_height="56dp"
  26. android:src="@mipmap/ic_launcher"
  27. app:layout_constraintBottom_toBottomOf="@id/pkgname"
  28. app:layout_constraintStart_toStartOf="parent"
  29. app:layout_constraintTop_toTopOf="parent"
  30. tools:ignore="ContentDescription" />
  31. <TextView
  32. android:id="@+id/title"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginStart="16dp"
  36. android:elevation="3dp"
  37. android:textAppearance="?attr/textAppearanceTitleMedium"
  38. app:layout_constraintStart_toEndOf="@id/icon"
  39. app:layout_constraintTop_toTopOf="parent"
  40. tools:text="Tachiyomi: Extension" />
  41. <TextView
  42. android:id="@+id/version"
  43. android:layout_width="0dp"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="center"
  46. android:layout_weight="1"
  47. android:elevation="3dp"
  48. android:gravity="center"
  49. android:textAppearance="?attr/textAppearanceBodySmall"
  50. app:layout_constraintStart_toStartOf="@id/title"
  51. app:layout_constraintTop_toBottomOf="@id/title"
  52. tools:text="Version: 1.0.0" />
  53. <TextView
  54. android:id="@+id/lang"
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. android:layout_gravity="center"
  58. android:layout_weight="1"
  59. android:elevation="3dp"
  60. android:gravity="center"
  61. android:textAppearance="?attr/textAppearanceBodySmall"
  62. app:layout_constraintStart_toStartOf="@id/title"
  63. app:layout_constraintTop_toBottomOf="@id/version"
  64. tools:text="Language: English" />
  65. <TextView
  66. android:id="@+id/nsfw"
  67. android:layout_width="0dp"
  68. android:layout_height="wrap_content"
  69. android:layout_gravity="center"
  70. android:layout_weight="1"
  71. android:elevation="3dp"
  72. android:gravity="center"
  73. android:text="@string/ext_nsfw_warning"
  74. android:textAppearance="?attr/textAppearanceBodySmall"
  75. android:textColor="?attr/colorError"
  76. android:visibility="gone"
  77. app:layout_constraintStart_toStartOf="@id/title"
  78. app:layout_constraintTop_toBottomOf="@id/lang"
  79. tools:visibility="visible" />
  80. <TextView
  81. android:id="@+id/pkgname"
  82. android:layout_width="0dp"
  83. android:layout_height="wrap_content"
  84. android:elevation="3dp"
  85. android:ellipsize="middle"
  86. android:singleLine="true"
  87. android:textAppearance="?attr/textAppearanceBodySmall"
  88. app:layout_constraintEnd_toEndOf="parent"
  89. app:layout_constraintStart_toStartOf="@id/title"
  90. app:layout_constraintTop_toBottomOf="@id/nsfw"
  91. tools:text="eu.kanade.tachiyomi.extension.en.myext" />
  92. <Button
  93. android:id="@+id/btn_uninstall"
  94. style="@style/Widget.Tachiyomi.Button.OutlinedButton"
  95. android:layout_width="0dp"
  96. android:layout_height="wrap_content"
  97. android:layout_marginTop="8dp"
  98. android:layout_marginEnd="4dp"
  99. android:text="@string/ext_uninstall"
  100. app:layout_constraintStart_toStartOf="parent"
  101. app:layout_constraintEnd_toStartOf="@+id/btn_app_info"
  102. app:layout_constraintTop_toBottomOf="@id/pkgname" />
  103. <Button
  104. android:id="@+id/btn_app_info"
  105. android:layout_width="0dp"
  106. android:layout_height="wrap_content"
  107. android:layout_marginTop="8dp"
  108. android:layout_marginStart="4dp"
  109. android:text="@string/ext_app_info"
  110. app:layout_constraintStart_toEndOf="@+id/btn_uninstall"
  111. app:layout_constraintEnd_toEndOf="parent"
  112. app:layout_constraintTop_toBottomOf="@id/pkgname" />
  113. </androidx.constraintlayout.widget.ConstraintLayout>
  114. <com.google.android.material.divider.MaterialDivider
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content" />
  117. </LinearLayout>