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 |                 this@apply.adapter = adapter | ||||||
|                 addItemDecoration(RecyclerViewDivider(context)) |                 addItemDecoration(RecyclerViewDivider(context)) | ||||||
|             } |             } | ||||||
|  |             items_fastscroller.setViews(items_list, items_swipe_refresh) | ||||||
|         } else { |         } else { | ||||||
|             val state = (items_list.layoutManager as LinearLayoutManager).onSaveInstanceState() |             val state = (items_list.layoutManager as LinearLayoutManager).onSaveInstanceState() | ||||||
|             (currAdapter as ItemsAdapter).updateItems(mItems) |             (currAdapter as ItemsAdapter).updateItems(mItems) | ||||||
|   | |||||||
| @@ -11,14 +11,29 @@ | |||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content"> |         android:layout_height="wrap_content"> | ||||||
|  |  | ||||||
|         <android.support.v7.widget.RecyclerView |         <RelativeLayout | ||||||
|             android:id="@+id/items_list" |             android:id="@+id/items_wrapper" | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content"> | ||||||
|             android:clipToPadding="false" |  | ||||||
|             android:paddingLeft="@dimen/activity_margin" |             <android.support.v7.widget.RecyclerView | ||||||
|             android:scrollbars="vertical" |                 android:id="@+id/items_list" | ||||||
|             app:layoutManager="android.support.v7.widget.LinearLayoutManager"/> |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:clipToPadding="false" | ||||||
|  |                 android:paddingLeft="@dimen/activity_margin" | ||||||
|  |                 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> |     </android.support.v4.widget.SwipeRefreshLayout> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user