When adding an adaptive icon to an ImageView in an Activity in Android, it seems to adopt the same version as OEM design. In my case right now this is the rounded version. But I want to display this as an icon in my main activity and thus want to use for example the square version with rounded corners. If this is possible, how can I achieve this? If this is not possible I can create a new resource, but it needs to use ic_launcher_background and ic_launcher_foreground so that the icon is not defined in multiple places.
This is my ic_launcher.xml:
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
This is my ImageView:
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher" />