Q:

ImageView should always be above all

I created a fun application.
I created a ImageView which is always above all like an Floating Action Button.
The problem ist: everything works fine at Android 5.0 or higher and it looks like this:
https://gyazo.com/0f02bbe0130defd03cc5ce6282d8e321
And on every device with Android 4 it looks like this:
https://gyazo.com/9275e291f215d92d5e7f2b8740a3d749
This is the code for the ImageView:
   <ImageView
        android:id="@+id/imageButton4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/infoicon"
        android:adjustViewBounds="true"
        android:maxWidth="25dp"
        android:maxHeight="25dp"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
        android:elevation="10dp"/>

this line should elevate the ImageView:
android:elevation="10dp"

Why is it working on Android version 5 or higher but on Android version 4 not?

A:

Try calling this:
imageView.bringToFront();  

in onCreate() and onResume()
EDIT
try wrapping your imageview inside Framelayout
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/imageButton4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:adjustViewBounds="true"
        android:elevation="10dp"
        android:maxHeight="25dp"
        android:maxWidth="25dp"
        android:src="@drawable/infoicon" />
</FrameLayout>

