Instantiate RecyclerView.LayoutManager in XML.
In newer versions of RecyclerView, layout manager can be instantiated
via an XML attribute. Use the feature as it results in better layout
previews in Android Studio. This also encourages developers to find more
XML attributes like spanCount in case of GridLayoutManager.
Change-Id: I9bac1058181722d861cbe8d285df7edc944fc4b2
[trevorjohns@google.com: Moved from //development, paths updated.]
Signed-off-by:
Trevor Johns <trevorjohns@google.com>
Loading
Please sign in to comment