On a button click, I am attempting to inflate an EditText
above a RecyclerView
. But instead of the EditText being added to the top of the layout, t
This is because in Frame Layout every view stacks on one after the other... FrameLayout was designed to block out an area in screen. You can add many views or ViewGroups to frameLayout . All view will be stacked on top of each other ...
And then when you want to inflate an EditText inflate it to the linearlayout and not to the frame layout