简体   繁体   English

Android自定义标签内容

[英]Android Custom Tab Content

i use this code: http://code.google.com/p/android-custom-tabs/ 我使用以下代码: http : //code.google.com/p/android-custom-tabs/

How to each tab to add content? 如何在每个标签上添加内容? I want to add text or button? 我要添加文字或按钮? Unfortunately I do not find how to add information to a tab. 不幸的是,我找不到如何向选项卡添加信息。 Thanks in advance for information. 在此先感谢您提供信息。

You shoud have to make One Activity in which You are extending the TabActivity. 您应该进行一个活动,在其中扩展TabActivity。 Then Create the SubActivity for the perticular TabBar section. 然后,为垂直的TabBar部分创建SubActivity。

See this Example: Developer Example 请参见以下示例: 开发人员示例

For More Information see this example also: Here 更多信息请参考这个例子也: 这里

Hope it will help you. 希望对您有帮助。

Enjoy. 请享用。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM