“The type TabActivity is deprecated” For app tab

前端 未结 2 1129
误落风尘
误落风尘 2021-01-14 12:28

\"The type TabActivity is deprecated\"?

I am making the Tabs of app following tutorial book.

I\'ve checked from the android developer.com website, but i have

2条回答
  •  情歌与酒
    2021-01-14 12:57

    You can still use a deprecated package. It is however recommended to use Fragments, and thus the support package. You can read more about it here. However, if you are a beginner at java and android development, I would recommend ignoring the deprecation for now and come back to this when you have completed the tutorial you are currently using if you find it educating.

    If you want to watch a nice example of tabbed navigation using Fragments, then create a new project in Eclipse using android 4.0 or later. Make sure your android-plugin is updated. You will get the option to create a project with basic navigation already implemented.

提交回复
热议问题