Best way to implement tabs in android?

后端 未结 3 1394
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 00:41

I have read looked through some code that implements tabs on the bottom of the app\'s page. And there is no deprecated method/class inside the code, and to me it is a very e

3条回答
  •  悲&欢浪女
    2020-12-04 01:18

    A Fragment represents a behavior or a portion of user interface in an Activity.

    The android developer guide.

    Your question seems to be worded a little strangely. You are asking about Tabs being at the bottom of the page but asking if you should use Fragments. Those are two different topics.

    Yes, you should use Fragments, it is the route android is taking and will continue to take for the future.

    Having Tabs at the bottom of the screen or at the top is a design decision. Depends on what would be more comfortable for the user experience, really doesn't have a lot to do with Fragments.

提交回复
热议问题