mirror of
				https://github.com/SimpleMobileTools/Simple-File-Manager.git
				synced 2025-06-05 22:09:15 +02:00 
			
		
		
		
	add fastscroller
This commit is contained in:
		| @@ -89,6 +89,7 @@ class ItemsFragment : android.support.v4.app.Fragment(), ItemsAdapter.ItemOperat | ||||
|                 this@apply.adapter = adapter | ||||
|                 addItemDecoration(RecyclerViewDivider(context)) | ||||
|             } | ||||
|             items_fastscroller.setViews(items_list, items_swipe_refresh) | ||||
|         } else { | ||||
|             val state = (items_list.layoutManager as LinearLayoutManager).onSaveInstanceState() | ||||
|             (currAdapter as ItemsAdapter).updateItems(mItems) | ||||
|   | ||||
| @@ -11,15 +11,30 @@ | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content"> | ||||
|  | ||||
|         <RelativeLayout | ||||
|             android:id="@+id/items_wrapper" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content"> | ||||
|  | ||||
|             <android.support.v7.widget.RecyclerView | ||||
|                 android:id="@+id/items_list" | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:clipToPadding="false" | ||||
|                 android:paddingLeft="@dimen/activity_margin" | ||||
|             android:scrollbars="vertical" | ||||
|                 android:scrollbars="none" | ||||
|                 app:layoutManager="android.support.v7.widget.LinearLayoutManager"/> | ||||
|  | ||||
|             <com.simplemobiletools.commons.views.FastScroller | ||||
|                 android:id="@+id/items_fastscroller" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="match_parent" | ||||
|                 android:layout_alignParentEnd="true" | ||||
|                 android:layout_alignParentRight="true" | ||||
|                 android:paddingLeft="@dimen/normal_margin" | ||||
|                 android:paddingStart="@dimen/normal_margin"/> | ||||
|         </RelativeLayout> | ||||
|  | ||||
|     </android.support.v4.widget.SwipeRefreshLayout> | ||||
|  | ||||
|     <com.simplemobiletools.commons.views.MyFloatingActionButton | ||||
|   | ||||
		Reference in New Issue
	
	Block a user