I am trying to implement a view which uses the default itemBackground style of Android (but with the oval background, that is used on action bar items etc). Somehow the following view is not showing the background at all. If I change android:background to android:foreground it only shows the rectangle but not the oval. Has anyone an idea how to fix that?
<LinearLayout
app:visibleGone="@{showProfile}"
android:layout_width="wrap_content"
android:layout_height="26dp"
android:layout_alignParentStart="true"
android:gravity="center"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<ImageView
android:background="?selectableItemBackgroundBorderless"
android:layout_width="24dp"
android:layout_height="24dp"
android:onClick="@{() -> profileCallback.onClick()}"
android:src="@drawable/profile_image" />
</LinearLayout>