YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.browser.MaxHeightRecyclerView Class Reference

A RecyclerView that wraps its content up to a cap and scrolls inside beyond it: the smaller of R.dimen.mini_player_list_max_height (about three mini-player rows) and {@value MAX_SHARE_OF_AVAILABLE_PERCENT} percent of the height the parent offers (so a landscape phone keeps room for the content). More...

Inheritance diagram for de.yaacc.browser.MaxHeightRecyclerView:
Inheritance graph
Collaboration diagram for de.yaacc.browser.MaxHeightRecyclerView:
Collaboration graph

Public Member Functions

 MaxHeightRecyclerView (@NonNull Context context)
 
 MaxHeightRecyclerView (@NonNull Context context, @Nullable AttributeSet attrs)
 
 MaxHeightRecyclerView (@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr)
 

Protected Member Functions

void onMeasure (int widthSpec, int heightSpec)
 

Detailed Description

A RecyclerView that wraps its content up to a cap and scrolls inside beyond it: the smaller of R.dimen.mini_player_list_max_height (about three mini-player rows) and {@value MAX_SHARE_OF_AVAILABLE_PERCENT} percent of the height the parent offers (so a landscape phone keeps room for the content).

With fewer rows than the cap it is exactly as high as its rows: no empty space.


The documentation for this class was generated from the following file: