I am trying since 2 days ago to create this simple layout: it is not exactly equal, but it is near that what I want.
When I try to set the scrollView on my constraint layout I get always this messy
even if I constraint all my elements, I don't know how to organize the things at the moment, I am really confused about this.
here is my xml:
<ScrollView 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="wrap_content"
tools:context=".PhotosForPlant">
<android.support.constraint.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"
tools:context="com.example.afcosta.inesctec.pt.android.PhotosForPlant"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="0dp">
<ImageView
android:id="@+id/plantImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/color_cursor_white"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="41dp" />
<TextView
android:id="@+id/descricaoTit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Descrição"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="582dp" />
<TextView
android:id="@+id/specieDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
tools:layout_editor_absoluteX="4dp"
tools:layout_editor_absoluteY="622dp" />
<TextView
android:id="@+id/Family"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Familia"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="458dp" />
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Genre"
tools:layout_editor_absoluteX="24dp"
tools:layout_editor_absoluteY="389dp" />
<TextView
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Espécie"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="309dp" />
<TextView
android:id="@+id/FamilyName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="96dp"
tools:layout_editor_absoluteY="458dp" />
<TextView
android:id="@+id/GenreName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="96dp"
tools:layout_editor_absoluteY="389dp" />
<TextView
android:id="@+id/SpecieName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="96dp"
tools:layout_editor_absoluteY="309dp" />
<android.support.v7.widget.RecyclerView
android:id="@+id/gallery"
android:layout_width="408dp"
android:layout_height="111dp"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="141dp" />
</android.support.constraint.ConstraintLayout>
</ScrollView>