Dynamically Setting a Fixed Height for a Staggered Grid View
问题 I'm trying to take a RecyclerView with a StaggeredGridLayout and make it a fixed height by having it measure the views and set the height dynamically. I'm overriding the onMeasure() , but it does not always seem to measure correctly. I'd say it works about 50% of the time. The other 50% of the time it under measures it. I think it has to do with when the text wraps in the view_tile_small.xml , but I'm not sure. Fragment public class AtTheMuseumFragment extends Fragment implements