RecyclerView with wrap content items
问题 I need to implement next UI element: Unknown size list of strings (That came from a server call) Any item should be wrap content. If an item is not fits to row, he will be in the next row. All list/grid is centered I thought of using RecyclerView with StaggeredGridLayoutManager But I don't know if it the right way, any ideas? 回答1: I don't sure that method would be helpful for you, but instead of using RecyclerView with StaggeredGridLayoutManager you can use third-party FlowLayout : First