This repository was archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
RecyclerView
Yanndroid edited this page Jan 30, 2022
·
3 revisions
de.dlyt.yanndroid.oneui.view.RecyclerView
Samsung's RecyclerView, heavily used in their apps.
<de.dlyt.yanndroid.oneui.view.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent" />Attributes and usage are the same as Google's RecyclerView.
Enable Samsung's FastScroller. ![]()
public void seslSetFastScrollerEnabled(boolean enabled)
public void seslSetFastScrollerEventListener(RecyclerView.SeslFastScrollerEventListener listener)Enable Samsung's Go To Top button. ![]()
public void seslSetGoToTopEnabled(boolean enabled)
public void seslSetGoToTopBottomPadding(int padding)
public void seslSetOnGoToTopClickListener(RecyclerView.SeslOnGoToTopClickListener listener)Round the corners of the last item.
public void seslSetLastRoundedCorner(boolean enabled)Fill the background at the bottom after the last item with the app background color.
public void seslSetFillBottomEnabled(boolean enabled)
public void seslSetFillBottomColor(int color)Samsung also customized RecyclerView.ItemDecoration class by adding a call to onDispatchDraw method of the View. Overriding the seslOnDispatchDraw method lets you customize even more your list/grid view. You can find an example of it here.
todo add screenshot
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<de.dlyt.yanndroid.oneui.view.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent" />
<de.dlyt.yanndroid.oneui.view.IndexScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>Simple usage:
public void syncWithRecyclerView(RecyclerView recyclerView, List<String> itemNames, boolean useLetters)BlackMesa123 - OneUI Design Library - Yanndroid