title: How to overlay a small view on a Main view without fully covering main view?
body: <p>So I need the view of my settings to display over my main page.where there is a "setting"button in Main page which opens this settings view. But I want My main page to be visible beneath my settings view which only covers a half or less of the main view.</p>
  
  <p>I tried adding </p>
  
  <pre><code>&lt;org.example.myCustomView 
      xmlns:android="http://schemas.android.com/apk/res/android"  
      android:layout_width="fill_parent"  
      android:layout_height="fill_parent"  
      android:theme="@android:style/Theme.Dialog" /&gt;
  </code></pre>
  
  <p>Which I found from <a href="https://stackoverflow.com/questions/4901408/in-android-how-to-display-one-view-as-overlay-on-top-of-another-view">stackoverflaw itself</a>. But I cannot do it instead the application corrupts at button click.</p>
  
  <p>I am not sure I got this too correct, Or is there any other clear way to do it?
  I replaced <code>myCustomView</code> with my relevent class and created the manifest also but it did not work.</p>
  
  <p>If there is any other alternative way to do this mention to me.</p>
  
  <p><em>I am not talking about how to place a TextView, Button, EditText on a view</em> </p>
  
  <p>I am talking about completely two layouts.</p>
  
  <p>Below image is only an example to express my question.</p>
  
  <p><img src="https://i.stack.imgur.com/TeZcD.png" alt="enter image description here"></p>