<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_root" android:layout_width="@dimen/dialog_tip_width" android:layout_height="match_parent"> <WebView android:id="@+id/web_view" android:layout_width="match_parent" android:layout_height="match_parent" /> <FrameLayout android:id="@+id/butn_close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_marginStart="@dimen/dialog_close_margin" android:layout_marginTop="@dimen/dialog_close_margin" android:layout_marginEnd="@dimen/dialog_close_margin" android:layout_marginBottom="@dimen/dialog_close_margin" android:padding="20px"> <ImageView android:layout_width="@dimen/ic_dialog_close" android:layout_height="@dimen/ic_dialog_close" android:src="@mipmap/chazi" /> </FrameLayout> </RelativeLayout>