mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Remove old FastScroller
Not sure if this will return to the download queue screen, you really shouldn't be downloading a ton of stuff at once anyway?
This commit is contained in:
		| @@ -1,17 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <item android:state_selected="true"> | ||||
|         <shape android:shape="rectangle"> | ||||
|             <corners android:radius="8dp" /> | ||||
|             <solid android:color="?attr/colorAccent" /> | ||||
|             <size android:width="6dp" android:height="54dp" /> | ||||
|         </shape> | ||||
|     </item> | ||||
|     <item> | ||||
|         <shape android:shape="rectangle"> | ||||
|             <corners android:radius="8dp" /> | ||||
|             <solid android:color="@color/fast_scroller_handle_idle" /> | ||||
|             <size android:width="6dp" android:height="54dp" /> | ||||
|         </shape> | ||||
|     </item> | ||||
| </selector> | ||||
| @@ -1,24 +1,7 @@ | ||||
| <?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" | ||||
| <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:id="@+id/frame_container" | ||||
|     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" | ||||
|         tools:listitem="@layout/download_item" /> | ||||
|  | ||||
|     <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> | ||||
|     android:layout_height="match_parent" | ||||
|     android:clipToPadding="false" | ||||
|     tools:listitem="@layout/download_item" /> | ||||
|   | ||||
| @@ -1,43 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <merge xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="wrap_content" | ||||
|     android:layout_height="match_parent"> | ||||
|  | ||||
|     <View | ||||
|         android:id="@+id/fast_scroller_bar" | ||||
|         android:layout_width="7dp" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_gravity="end" | ||||
|         android:background="@null" /> | ||||
|  | ||||
|     <RelativeLayout | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_gravity="end"> | ||||
|  | ||||
|         <!-- No margin, use padding at the handle --> | ||||
|         <com.google.android.material.textview.MaterialTextView | ||||
|             android:id="@+id/fast_scroller_bubble" | ||||
|             style="@style/FloatingTextView" | ||||
|             android:layout_gravity="end|center_vertical" | ||||
|             android:layout_toStartOf="@+id/fast_scroller_handle" | ||||
|             android:gravity="center" | ||||
|             android:visibility="gone" | ||||
|             tools:text="A" | ||||
|             tools:visibility="visible" /> | ||||
|  | ||||
|         <!-- Padding is here to have better grab --> | ||||
|         <ImageView | ||||
|             android:id="@+id/fast_scroller_handle" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_alignParentEnd="true" | ||||
|             android:contentDescription="@null" | ||||
|             android:paddingStart="6dp" | ||||
|             android:paddingEnd="4dp" | ||||
|             android:src="@drawable/material_thumb_drawable" /> | ||||
|  | ||||
|     </RelativeLayout> | ||||
|  | ||||
| </merge> | ||||
| @@ -56,21 +56,6 @@ | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--============--> | ||||
|     <!--FastScroller--> | ||||
|     <!--============--> | ||||
|     <style name="FloatingTextView" parent="TextAppearance.AppCompat"> | ||||
|         <item name="android:layout_height">wrap_content</item> | ||||
|         <item name="android:layout_width">wrap_content</item> | ||||
|         <item name="android:elevation">5dp</item> | ||||
|         <item name="android:paddingStart">12dp</item> | ||||
|         <item name="android:paddingEnd">12dp</item> | ||||
|         <item name="android:paddingTop">8dp</item> | ||||
|         <item name="android:paddingBottom">8dp</item> | ||||
|         <item name="android:textColor">?attr/colorOnPrimary</item> | ||||
|         <item name="android:textSize">15sp</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--===========--> | ||||
|     <!--Preferences--> | ||||
|     <!--===========--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user