Android 中的选项卡 UI
我是一名 Android 新手,我真的需要你的帮助。
我想开发一个应用程序,其 UI 保留三个选项卡,第一个选项卡是 WebView。
由于我不熟悉所有必需的构建模块,有人可以给我一个示例吗?有指导怎么办?
多谢!
I am an Android newbie and I really require your help.
I'd like to develop an app , which its UI is persisted of three Tabs, and the first one a WebView.
since I am not familiar with all the required building blocks, can anyone give me a sample? a guide how to do so?
thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Android API 演示 包括多个 (Tabs1 到 Tabs2 示例文件)示例。安装、尝试并查看它们。
关于指定选项卡的内容,您可以使用视图或活动。如果您在此处查看一些与“选项卡”相关的讨论,您会发现已建立的用户更喜欢使用视图(例如 此处)。到目前为止,我采用了“活动”方式,感觉很舒服 - 但没有深入探讨其优点和缺点。我目前的观点是,你必须根据每个特殊情况来决定,不能给出一般性的建议。
The Android API Demos include several (Tabs1 to Tabs2 sample files) examples. Install, try and have a look at them.
Regarding specifying the content of Tabs you have the possibilities to use Views or Activities. If you check some "Tab" related discussion here you will find that established users prefer to use Views (e.g. here). I took the 'Activity' way so far and feel quite comfortable - but did not go to deep into pros and cons. My current point of view is that you have to decide on each special case and can't give a general recommendation.
此页面上有一些教程: http://developer.android.com/resources /tutorials/views/index.html
there is some tutorials on this page : http://developer.android.com/resources/tutorials/views/index.html