Final
Check out
<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"
tools:context="com.juliandrach.eatfit.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="3"
android:orientation="horizontal"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/ic_launcher"
android:layout_weight="0"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ernährungspläne"
android:textAllCaps="true"
android:textSize="21sp"
android:layout_marginTop="15dp"
android:layout_marginLeft="15dp"
android:textColor="@android:color/black"
android:layout_weight="1"
android:id="@+id/textView" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Shop"
android:textAllCaps="true"
android:textSize="21sp"
android:layout_marginTop="15dp"
android:layout_marginLeft="15dp"
android:textColor="@android:color/black"
android:layout_weight="1"
android:id="@+id/textView1" />
</LinearLayout>
</RelativeLayout>
shifted left
you have to use wightsum as 3
each inner view as LayoutWidth as 1 will work for you
<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"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="3"
android:orientation="horizontal"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@mipmap/ic_launcher"
android:layout_weight="1"
android:layout_margin="10dp"
/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="abc"
android:textAllCaps="true"
android:textSize="21sp"
android:layout_marginTop="15dp"
android:textColor="@android:color/black"
android:layout_weight="1"
android:id="@+id/textView" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="abc"
android:textAllCaps="true"
android:textSize="21sp"
android:layout_marginTop="15dp"
android:textColor="@android:color/black"
android:layout_weight="1"
android:id="@+id/textView1" />
</LinearLayout>
</RelativeLayout>
please let me know if it not work for you.