Wrong view DialogFragment on physical device

Viewed 63

I have a problem with the view of a dialog fragment looks good the emulator but it looks bad on a physical device and I do not understand what it should be.

DialogFragment Error

DialogFragment Error

DialogFragment Expected

DialogFragment Expected

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/background_app"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context="dialog_test_Fragment">

    <ImageView
        android:id="@+id/imageViewClose"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right|top"
        android:clickable="true"
        android:src="@drawable/ic_action_close" />

</RelativeLayout>
1 Answers
Related