android - Square Image View on RecyclerView Item -


i have square imageview left of recyclerview.

how achieve this? hoping solution not hard coded.

any idea please?
enter image description here

<relativelayout     android:id="@+id/containerview"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_marginleft="12dp"     android:layout_margintop="12dp"     android:layout_marginright="12dp"     android:layout_marginbottom="12dp"     android:padding="0dp">      <imageview         android:id="@+id/profileimageview"         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_alignparentleft="true"/>      <textview         android:id="@+id/nametextview"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_marginleft="12dp"         android:layout_torightof="@+id/profileimageview"         android:layout_above="@+id/messagetextview"         android:gravity="center_vertical"         android:includefontpadding="false"         android:singleline="true"         android:textallcaps="false"         android:textalignment="textstart"         android:text="username"/>      <textview         android:id="@+id/messagetextview"         android:layout_width="match_parent"         android:layout_marginleft="12dp"         android:layout_alignparentbottom="true"         android:layout_torightof="@+id/rankprofileimageview"/>  </relativelayout>> 

use below library display image in circluar view:

https://github.com/siyamed/android-shape-imageview


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -