I am new to Android/Java/Programming in general, so sorry if this is a dumb question.
I have been making a small game for my LG G3, and the layout of a grid looks fine (9x9) which can be found here : https://i.stack.imgur.com/OwT3p.png
However, I have recently tested it on the emulator, which is a Nexus 5, and the layout turns out like this : https://i.stack.imgur.com/dixlA.png (it is now an 8x9 grid and flows over the screen margins.)
I have set all of the button widths and heights to "dp".
Here is the layout XML
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top|right"
android:background="#ff000000"
android:layout_centerHorizontal="true"
android:id="@+id/fifteen_by_fifteen">
<Button
android:layout_width="80dp"
android:layout_height="50dp"
android:textSize="23sp"
android:background="@android:color/transparent"
android:text="@string/back"
android:layout_gravity="top|right"
android:textColor="#ffff274a"
android:id="@+id/back_button"/>
<Button
android:layout_width="fill_parent"
android:layout_height="50dp"
android:textSize="30sp"
android:background="@android:color/transparent"
android:id="@+id/show_unknown_distance_button"
android:layout_gravity="center_horizontal"
android:textStyle="bold"
android:textColor="#ff59e4ff"/>
<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="50dp"
android:rowCount="9"
android:columnCount="9"
android:layout_gravity="center">
<Button
android:layout_width="44dip"
android:layout_height="45dip"
android:id="@+id/zero_zero"
android:layout_margin="1dip"
android:layout_gravity="center"
android:paddingTop="1dip"
android:paddingRight="2dip"
android:paddingLeft="2dip"
android:paddingBottom="1dip"
android:layout_row="0"
android:layout_column="0" />
<Button
android:layout_width="44dip"
android:layout_height="45dip"
android:id="@+id/zero_one"
android:layout_margin="1dip"
android:layout_gravity="center"
android:paddingTop="1dip"
android:paddingRight="2dip"
android:paddingLeft="2dip"
android:paddingBottom="1dip"
android:layout_row="0"
android:layout_column="1" />
<Button
android:layout_width="44dip"
android:layout_height="45dip"
android:id="@+id/zero_two"
android:layout_margin="1dip"
android:layout_gravity="center"
android:paddingTop="1dip"
android:paddingRight="2dip"
android:paddingLeft="2dip"
android:paddingBottom="1dip"
android:layout_row="0"
android:layout_column="2" />
So on for 81 buttons.
So what should I do to make the 9x9 grid visible on all devices?
Thanks for any and all help