简体   繁体   English

Android Honeycomb-标签

[英]Android Honeycomb - Tab

Previously I wanted to use Tabs on top of the page using TabActivity. 以前,我想使用TabActivity在页面顶部使用选项卡。

As I am working with Honeycomb I used Action Bar Tabs. 在使用Honeycomb时,我使用了操作栏选项卡。 That worked best for me. 那对我来说效果最好。

Now, I want to use tab to on Login page, so that user can Log in two diff ways. 现在,我想在“登录”页面上使用“ Tab to”,以便用户可以两种差异方式登录。 For this, I thought I will put Tabs at the top of Login layout (center of the page and not top of the page). 为此,我想我将Tabs放在Login布局的顶部(页面的中心而不是页面的顶部)。

Can I do that ? 我可以那样做吗? How? 怎么样?

you can have a tabhost with multiple views and even multiple activities in each tab. 您可以在一个Tabhost中使用多个视图,甚至每个选项卡中都包含多个活动。

Here is a tutorial : http://joshclemm.com/blog/?p=59 这是一个教程: http : //joshclemm.com/blog/?p=59

The tab host doesn't have to occupy the whole screen you can have something else on top, I sometime put a textview with the title. 选项卡主持人不必占据整个屏幕,您可以在顶部放置其他内容,有时我会在文本视图中添加标题。

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

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