how do i set the height of each row in my gridlayout in xml



Hi guys I am new to android. I want to use a GridLayout that has 1 column and 4 rows to structure my application.



<GridLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:columnCount="1"
android:rowCount="4"
tools:context=".MainActivity">

</GridLayout>


The only thing is I want my rows to have different heights. Is there a way to specify this for each row in xml?


No comments:

Post a Comment