```
<?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
    android:orientation="vertical"
    android:layout_margin="15dp"
    android:padding="2dp">

<WebView 
    android:id="@+id/webview"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:onClick="closeActivity"> 
</WebView>
<Button 
    android:layout_alignParentRight="true"
    android:text="@string/x"
    android:textColor="#FFF"
    android:background="@drawable/close"
    android:gravity="center_vertical|center_horizontal"
    android:layout_margin="5dp" 
    android:layout_height="25dp"
    android:layout_width="25dp" 
    android:textSize="12sp" 
    android:textStyle="bold"
    android:onClick="closeActivity"
     /> 

```

I want that type of a close button can anyone help me out on top of the layout in the webView.

[Click Here To see the Pic](https://drive.google.com/file/d/0B9e4GvdISertOWtyOEQ4eTJJbEU/edit?usp=sharing)