Custom Tabwiget for Android

后端 未结 2 1217
名媛妹妹
名媛妹妹 2021-01-26 10:01

I have designed an activity which I\'m using for tab(Custom Global activity),this activity has different buttons like tab and clicking on buttons calling corresponding activity

2条回答
  •  甜味超标
    2021-01-26 10:56

    If you want to introduce the using of tabs in your application, then the best way, IMO, is to use FragmentTabHost from support library as the standard TabActivity has become deprecated.

    There is also an example which shows how to use this component and it's located inside /extras/android/support/samples/Support4Demos.

    This standard component allows you to customize your tabs as you wish instead of inventing the bicycle.

提交回复
热议问题