How to create bottom menu like gmail android

前端 未结 4 1056
野性不改
野性不改 2020-12-10 21:07

I am not quite sure what kind of layout Gmail is using in Android. I suppose they use a floating ViewGroup.

But for the menu on the top and bottom I rea

4条回答
  •  被撕碎了的回忆
    2020-12-10 21:20

    You can create a menu which will sit on the bottom of a listview using the tag like so

    
        
    
        
        
    
    

    mymenu will contain a linearlayout with something like a tablelayout with a few rows (which can be textviews, imageviews, etc.) The table will sit at the bottom of your screen and the listview will be in a frame which starts at the top of the screen and ends at the top of the menu (no overlap)

    You could also do the same for the top of the screen by simply having the listview say layout_below="@+id/header" instead of layout_above"@+id/footer" (or do both!)

提交回复
热议问题