How to add a bottom menu to Android activity

前端 未结 4 741
傲寒
傲寒 2020-12-06 05:40

I\'m trying to add another action bar or menu to the bottom of my activity layout and keep the top action bar.

Something like this :

Here is my Layo

4条回答
  •  广开言路
    2020-12-06 06:18

    I made a custom Bottom bar with exact Height of ?attr/actionBarSize and ` layout_alignParentBottom="true" to put it in bottom.

    
    
        
        
    `
    

    Now goto Manifest.xml and in your activity tag put

    android:windowSoftInputMode="adjustResize"
    

    This will resize the layout on keyboard opening.

提交回复
热议问题