I am currently programming an Android app and using Kotlin and Android 7, but when I run the app on my phone the picture is a bit different than when I design it in UI Designer. I have chosen the same resolution for both and I am stumped because I have had little contact with the frontend so far. Hopefully someone can help me, thanks already!
XML:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/background_light"
tools:context=".MainActivity">
<ImageView
android:layout_width="194.3dp"
android:layout_height="144.3dp"
android:layout_marginStart="83dp"
android:layout_marginTop="583.7dp"
android:layout_marginEnd="82.7dp"
android:layout_marginBottom="52dp"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:srcCompat="@drawable/gui_base"
tools:ignore="MissingConstraints"
android:contentDescription="GUI" />
<ImageView
android:layout_width="47dp"
android:layout_height="53.3dp"
android:layout_marginStart="161.3dp"
android:layout_marginTop="648dp"
android:layout_marginEnd="151.7dp"
android:layout_marginBottom="78.7dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/homebutton"
tools:ignore="MissingConstraints"
android:contentDescription="HomeButton" />
</androidx.constraintlayout.widget.ConstraintLayout>
