Inflating view above RecyclerView in FrameLayout

后端 未结 4 624
轮回少年
轮回少年 2021-01-20 10:55

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

4条回答
  •  深忆病人
    2021-01-20 11:23

    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

提交回复
热议问题