Can't you use a View element here? Does exactly the same, and FrameLayouts are usually used to insert things like Fragments into a window.