How to create this layout using LinearLayout? : <p>I want to construct below layout using LinearLayout. 
<a href="https://i.stack.imgur.com/AqBgH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AqBgH.png" alt="enter image description here"></a>
I created that using ConstraintLayout,but it was too long for me. And now I am wondering how this layout could be created via LinearLayout? Is it possible? And also pictures have to have their own size,because I suppose that if it is match_parent or wrap_content,quality of image will be bad. This is how I tried to construct via LinearLayout,but result is too different. So,what I have to do? </p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout 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:orientation="vertical"
    tools:context="com.example.abay.myeleven.MyTeamActivity"&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/attacks"
        android:orientation="horizontal"
        android:layout_marginTop="25dp"
        android:layout_weight="1"
        &gt;

        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;

        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;











    &lt;/LinearLayout&gt;



    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/midfields"
        android:orientation="horizontal"
        android:layout_marginTop="25dp"
        android:layout_weight="1"
        &gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;

        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;



        &lt;/LinearLayout&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/defenders"
        android:orientation="horizontal"
        android:layout_marginTop="25dp"
        android:layout_weight="1"

        &gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;

        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;
        &lt;ImageButton
            android:layout_width="@dimen/player_width"
            android:layout_height="@dimen/player_height"
            android:src="@drawable/player_default"
            android:layout_weight="1"
            android:background="#FFF"
            /&gt;


    &lt;/LinearLayout&gt;



    &lt;ImageButton
        android:layout_width="@dimen/player_width"
        android:layout_height="@dimen/player_height"
        android:src="@drawable/player_default"
        android:layout_weight="1"
        android:background="#FFF"
        android:layout_gravity="center"
        /&gt;





&lt;/LinearLayout&gt;
</code></pre>
