How can I draw a View on top of it´s parent-layout?

So I'm writing a custom component which basically is an EditText with a custom drop-down menu attached at the bottom. This will host a list of search suggestions. Right now I accomplish this by extending a LinearLayout with an EditText and my SuggestionBox-View inside. I.e I use

this.addView(searchEditText);

and

this.addView(suggestionBox);

This works fine, but when I put the component inside a LinearLayout, the views underneath my component are moved to make room for the drop-down menu.

I want the dropdown to overlay any other views in the containing layout. How can I do this?

For an example, if the component is used in a LinearLayout with views underneath it, I want the drop-down list to overlay the other views.

Now, I know this can be accomplished by using a FrameLayout as parent layout, but I want the component to be usable regardless of what parent layout is being used.

Okay so I should probably post an answer to this problem in case someone stumbles upon this question. I managed to solve it with a bit of an ugly fix. I find the main content view with the line below and then add my custom view directly to it.