put tabs in the bottom of screen

前端 未结 5 634
無奈伤痛
無奈伤痛 2021-01-01 21:29

I want to put tabs at the bottom part of my screen . For this purpose I have the following code :

package info.androidhive.tabsswipe;

import info.androidhiv         


        
5条回答
  •  囚心锁ツ
    2021-01-01 21:36

    Actually it's against Android Design Guideline since at bottom there are soft/hard buttons like back button home button etc.

    http://developer.android.com/design/patterns/pure-android.html

    But if you insist on to put them at the bottom, you can implement it like GitHub example consists tabs in bottom, using FragmentTabHost.

    https://github.com/rameshkec85/BottomTabsFragmentTabHost

提交回复
热议问题