title: how to add search result on top of other views
body: <p>I have an <code>EditText</code> in my layout which is used to get the search query from the user. I want to show a <code>LinearLayout</code> bellow it when user enters some characters and fill it with the results (This layout should appear after entering at least N characters). But I don't know how to show this layout? <br/>
  I thought of putting the whole layout shown in the activity inside a <code>FrameLayout</code> and add the view when required, but there will be two problems:</p>
  
  <ol>
  <li>The view will be added on the top left of the screen.</li>
  <li>If I want to move it with adding some padding to it, all the area will correspond to the click event.</li>
  </ol>
  
  <p>To explain what I want more, please take a look at this:</p>
  
  <p><a href="https://i.stack.imgur.com/xlcVI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xlcVI.png" alt="enter image description here"></a></p>