-
Notifications
You must be signed in to change notification settings - Fork 1.4k
xml setup
世外桃源 edited this page May 15, 2015
·
1 revision
Show empty view when the adapter is null:
<com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
...
app:recyclerviewEmptyView="@layout/empty_view"/>
Show custom FloatingView(Both menu and button are fine. It is easy to set click event on them) when the adapter is null:
<com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
...
app:recyclerviewFloatingActionView="@layout/floating_view"/>
Set custom colorful style of pull to refresh:
<com.marshalchen.ultimaterecyclerview.CustomUltimateRecyclerview
.../>
Using CustomUltimateRecyclerview instead of UltimateRecyclerView
ultimateRecyclerView.setCustomSwipeToRefresh();
Set scrollbars of RecyclerView by set attributes of UltimateRecyclerView in xml layout:
<com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
app:recyclerviewScrollbars="vertical" />
Note that set scrollbars of RecyclerView dynamically by code is NOT SUPPORTED refer to this