What does FrameLayout do?

前端 未结 5 1854
挽巷
挽巷 2020-12-07 15:28

I\'m new to programming. I was using Graphical Layout then when I was reading xml file, I saw FrameLayout. Then I searched, but I couldn\'t find something useful. What is Fr

5条回答
  •  伪装坚强ぢ
    2020-12-07 15:54

    You use a FrameLayout to stack child views on top of each other, with the most recent child on top of the stack. In the example below, the TextView is the most recent, so it is automatically placed on top of the ImageView.

    For example:

    
    
        
    
        
    
    
    

    Output:

提交回复
热议问题