Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Align layouts on the left and right edeges
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/no_answer_image"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp"
android:src="@drawable/avatar"/>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/yes_answer_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:src="@drawable/avatar"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment