I'm trying to create the following layout:
Basically, I have two TextViews and two icons. The icons are on the same row as the mobile header and the the mobile number. I have created the following XML:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/phone_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/primaryDarkColor"
android:textStyle="bold"
android:text="Phone number"
android:textSize="18sp"
android:layout_marginBottom="5dp" />
<TextView
android:id="@+id/phone_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:textStyle="bold"
android:layout_alignBottom="@id/phone_header" />
<ImageView
android:id="@+id/phone_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@id/phone_info"
android:layout_alignEnd="@id/phone_info"
app:srcCompat="@drawable/ic_call_white_24dp" />
<ImageView
android:id="@+id/message_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@id/phone_icon"
android:layout_alignEnd="@id/phone_icon"
app:srcCompat="@drawable/ic_meessage_white_24dp" />
</RelativeLayout>
But it didn't set the layout properly. What is the best way would be to set the icons on the same row as the two TextViews?


