i'm new in Android Studio. I want to ask, can i make ImageView with round corners programmatically? because i want use it to load data from database. So, user profile picture will be appear with rounded corner
my XML is below :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#F3FFFC">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imgView"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/profilepicture"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
Thank you for your time to read my question, hope i can solve this problem :D