如何在 Android 中使用标签小部件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1117641/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 02:43:27  来源:igfitidea点击:

How to use a tab widget in Android?

android

提问by Kumar

Can anyone show me how to make a tab widgetin Android?

谁能告诉我如何tab widget在Android中制作一个?

回答by CalebHC

Here's an article on how to add Tab widgets dynamically.

这是一篇关于如何动态添加 Tab 小部件的文章。

http://androidguys.com/?p=650

http://androidguys.com/?p=650

回答by Ryan Amaral

Here's an project you can download!

这是您可以下载的项目!

http://www.techwavedev.com/?p=14

http://www.techwavedev.com/?p=14

I already tested this project! Worked fine!

我已经测试了这个项目!工作得很好!

If the link above doesn't work, see this another project: http://joshclemm.com/blog/?p=136

如果上面的链接不起作用,请参阅另一个项目:http: //joshclemm.com/blog/?p=136

回答by tomrozb

There is a developer guide showing how to implement tabbed activities/fragments http://developer.android.com/guide/topics/ui/actionbar.html

有一个开发人员指南展示了如何实现选项卡式活动/片段http://developer.android.com/guide/topics/ui/actionbar.html

It's very important to follow new solution, because the method using TabActivityis deprecated since API level 13.

遵循新的解决方案非常重要,因为TabActivity自 API 级别 13 以来,使用的方法已被弃用。