Hello! There was a need to fill the gridlayout'a with numbers to fully utilize the place (increase the buttons) and there was no free space. Is it possible to do this in some way, using gridlayout? Ie, I want to create numbers like a calculator. The android attribute: useDefaultMargins = "true" just sprawled the numbers a little. I hope clearly explained :)
Here is the code for the selected item:
<GridLayout android:layout_weight="1" android:layout_width="match_parent" android:layout_height="wrap_content" android:alignmentMode="alignBounds" android:columnCount="3" android:rowCount="4" android:useDefaultMargins="true"> <Button android:text="1"/> <Button android:text="2"/> <Button android:text="3"/> <Button android:text="4"/> <Button android:text="5"/> <Button android:text="6"/> <Button android:text="7"/> <Button android:text="8"/> <Button android:text="9"/> <Button android:layout_gravity="fill_horizontal" android:layout_columnSpan="2" android:text="0" /> <Button android:text="x"/> </GridLayout> 
