title: Setting webview at the center of relative layout
body: <p>I am setting following property for webview</p>
  
  <pre><code>    webView.getSettings().setAllowFileAccess(true);
      webView.getSettings().setJavaScriptEnabled(true);
      webView.getSettings().setBuiltInZoomControls(true);
  </code></pre>
  
  <p>and using following layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@color/solid_white"
      android:layout_marginLeft="1dp" android:gravity="center"&gt;
  
  
       &lt;WebView
          android:id="@+id/MyView"
          android:layout_centerInParent="true"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          &gt;
      &lt;/WebView&gt; 
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This layout is for fragment. View is coming centrally vertical but it not coming centrally horizontal.
  What I need to do to set webview at the center of relative layout?</p>