I donβt understand what you want, but I think you want less.
If you want this type of image

Then use this code.
XML code:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.example.softeng.aab.MainActivity" tools:showIn="@layout/activity_main"> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp"> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/card_view" card_view:cardCornerRadius="1dp" android:foreground="?android:attr/selectableItemBackground" android:layout_marginTop="5dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" > <ProgressBar android:id="@+id/progress" android:visibility="visible" style="?android:attr/progressBarStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> <LinearLayout android:id="@+id/content_loading" android:visibility="invisible" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:padding="5dp" android:orientation="vertical"> <TextView android:id="@+id/text_description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_medium_material" android:layout_marginBottom="5dp" /> <TextView android:id="@+id/text_owner" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_small_material" android:layout_marginBottom="5dp" /> <TextView android:id="@+id/text_networks" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_small_material" /> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="5dp" /> </LinearLayout> </android.support.v7.widget.CardView> </RelativeLayout> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="100dp" app:layout_anchor="@id/card_view" app:layout_anchorGravity="right|end|bottom" android:layout_marginRight="@dimen/fab_margin"> </LinearLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp" > <ImageView android:id="@+id/image_avatar" android:layout_width="20dp" android:layout_height="20dp" android:src="@android:color/holo_red_dark" android:layout_centerHorizontal="true" /> </RelativeLayout> </android.support.design.widget.CoordinatorLayout> </RelativeLayout>
UpDate:

I think you need this
code:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.example.softeng.aab.MainActivity" tools:showIn="@layout/activity_main"> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp" > <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/card_view" card_view:cardCornerRadius="1dp" android:foreground="?android:attr/selectableItemBackground" android:layout_marginTop="5dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" > <ProgressBar android:id="@+id/progress" android:visibility="visible" style="?android:attr/progressBarStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" /> </RelativeLayout> <LinearLayout android:id="@+id/content_loading" android:visibility="invisible" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:padding="5dp" android:orientation="vertical"> <TextView android:id="@+id/text_description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_medium_material" android:layout_marginBottom="5dp" /> <TextView android:id="@+id/text_owner" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_small_material" android:layout_marginBottom="5dp" /> <TextView android:id="@+id/text_networks" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="@dimen/abc_text_size_small_material" /> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="5dp" /> </LinearLayout> </android.support.v7.widget.CardView> </RelativeLayout> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="100dp" app:layout_anchor="@id/card_view" app:layout_anchorGravity="right|end|bottom" android:layout_marginRight="@dimen/fab_margin"> </LinearLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="100dp" android:layout_margin="5dp" > <de.hdodenhof.circleimageview.CircleImageView android:id="@+id/image_avatar" android:layout_width="20dp" android:layout_height="20dp" android:src="@android:color/holo_red_dark" android:layout_centerHorizontal="true" /> </RelativeLayout> </android.support.design.widget.CoordinatorLayout> </RelativeLayout>
To change Image in round shape, just change ImageView to de.hdodenhof.circleimageview.CircleImageView , it will solve your problem.
add below dependencies in the build.gradle file to create a round image.
compile 'de.hdodenhof:circleimageview:2.0.0
source share