Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

GridLayout & RecyclerView: Using the Remaining Space

$
0
0

I am creating an Android Native app that uses RecyclerView. I have a GridLayout which contains several elements that have a consistent height (for example, Button & TextView) and a RecyclerView. I want the RecyclerView to use the space not used by the other elements. In UWP, Grid allowed you to specify heights in the RowDefinitions, one of which could be *. However, the only options in Android Native (other than a constant value) for android:layout_height are wrap_content & match_parent. wrap_content either does not use all of the space or uses more space than is available, and match_parent gives a height that is the height of the entire app, not just the available height. What can I do to make the RecyclerView use all of the remaining space? Thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>