mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Convert Extension tab to use Compose (#7107)
* Convert Extension tab to use Compose Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com> * Review changes Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com>
This commit is contained in:
		| @@ -1,32 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent"> | ||||
|  | ||||
|     <eu.kanade.tachiyomi.widget.ThemedSwipeRefreshLayout | ||||
|         android:id="@+id/swipe_refresh" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent"> | ||||
|  | ||||
|         <androidx.recyclerview.widget.RecyclerView | ||||
|             android:id="@+id/recycler" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent" | ||||
|             android:clipToPadding="false" | ||||
|             android:paddingTop="8dp" | ||||
|             android:paddingBottom="@dimen/action_toolbar_list_padding" | ||||
|             tools:listitem="@layout/section_header_item" /> | ||||
|  | ||||
|     </eu.kanade.tachiyomi.widget.ThemedSwipeRefreshLayout> | ||||
|  | ||||
|     <eu.kanade.tachiyomi.widget.MaterialFastScroll | ||||
|         android:id="@+id/fast_scroller" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_gravity="end" | ||||
|         app:fastScrollerBubbleEnabled="false" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
| </FrameLayout> | ||||
| @@ -1,98 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="64dp" | ||||
|     android:background="@drawable/list_item_selector_background" | ||||
|     android:paddingEnd="16dp"> | ||||
|  | ||||
|     <ImageView | ||||
|         android:id="@+id/icon" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="0dp" | ||||
|         android:paddingStart="16dp" | ||||
|         android:paddingEnd="8dp" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintDimensionRatio="1:1" | ||||
|         app:layout_constraintStart_toStartOf="parent" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         tools:ignore="ContentDescription" | ||||
|         tools:src="@mipmap/ic_launcher_round" /> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/name" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_marginEnd="4dp" | ||||
|         android:ellipsize="end" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="?attr/textAppearanceBodyMedium" | ||||
|         app:layout_constraintBottom_toTopOf="@id/lang" | ||||
|         app:layout_constraintEnd_toStartOf="@id/ext_button" | ||||
|         app:layout_constraintStart_toEndOf="@id/icon" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         app:layout_constraintVertical_chainStyle="packed" | ||||
|         tools:text="Batoto" /> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/lang" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="?attr/textAppearanceBodySmall" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintStart_toEndOf="@id/icon" | ||||
|         app:layout_constraintTop_toBottomOf="@+id/name" | ||||
|         tools:text="English" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/version" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_marginStart="4dp" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="?attr/textAppearanceBodySmall" | ||||
|         app:layout_constraintStart_toEndOf="@id/lang" | ||||
|         app:layout_constraintTop_toBottomOf="@+id/name" | ||||
|         tools:text="Version" /> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/warning" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_marginStart="4dp" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="?attr/textAppearanceBodySmall" | ||||
|         android:textColor="?attr/colorError" | ||||
|         app:layout_constraintStart_toEndOf="@id/version" | ||||
|         app:layout_constraintTop_toBottomOf="@+id/name" | ||||
|         tools:text="Warning" /> | ||||
|  | ||||
|     <Button | ||||
|         android:id="@+id/ext_button" | ||||
|         style="?attr/borderlessButtonStyle" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintEnd_toStartOf="@+id/cancel_button" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         tools:text="Details" /> | ||||
|  | ||||
|     <ImageButton | ||||
|         android:id="@+id/cancel_button" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:background="?selectableItemBackgroundBorderless" | ||||
|         android:contentDescription="@android:string/cancel" | ||||
|         android:padding="12dp" | ||||
|         android:src="@drawable/ic_close_24dp" | ||||
|         android:visibility="gone" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintEnd_toEndOf="parent" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         app:tint="?android:attr/textColorPrimary" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||||
		Reference in New Issue
	
	Block a user