My UI fits my virtual device fine but when I run the app on my phone, the UI is too wide and I lose a portion off the RHS of my device.
I read this article;(https://developer.android.com/training/multiscreen/screensizes.html) It talks of using a constraint layout but before I go and make wholesale changes to my XML, can anyone see any glaring flaws?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context="com.example.wbc.TabFragment0"
android:id="@+id/frag7"
android:padding="5dp">
<TextView
android:id="@+id/todayDate0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:textSize="25sp"/>
<TableLayout
android:id="@+id/tab_layout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/todayDate0">
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp">
<TextView
android:id="@+id/rink1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="1"
android:textSize="30sp" />
<Button
android:id="@+id/twelve7R1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="bookRink"
android:tag="7112"
android:text="12:00"
tools:ignore="OnClick" />
<Button
android:id="@+id/two7R1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="bookRink"
android:tag="7114"
android:text="14:00"
tools:ignore="OnClick" />
<Button
android:id="@+id/four7R1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="bookRink"
android:tag="7116"
android:text="16:00"
tools:ignore="OnClick" />
<Button
android:id="@+id/six7R1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="bookRink"
android:tag="7118"
android:text="18:00"
tools:ignore="OnClick" />
</TableRow>
</TableLayout>
</RelativeLayout>