Android - iphone 风格的 tabhost [英] Android - iphone style tabhost
问题描述
是否可以将 Android Tabhost 的样式设置为与 iPhone 相似?如果没有,是否有任何开源代码可以展示如何为 Android 创建底部标签?
(来源:.
但是,如果您想继续,我已经将默认的 Android
标签自定义为看起来像 iPhone
标签.这很简单,并具有默认的 Android
选项卡的 ui 组件(̶T̶a̶b̶H̶o̶s̶t̶
、̶T̶a̶b̶W̶i̶d̶g̶e̶t̶
).
下载链接:
我还对 tabhost 进行了裁剪,使其看起来像凸起的中心标签.
要下载 RaiseCenterTab,请到这里 GitHub:RaisedCenterTab.
Is it possible to style the Android Tabhost to look like that of the iPhone? If not, is there any open source code that can show how to create Bottom Tabs for Android ?
(source: appshopper.com)
I would suggest you guys to not change the default look and feel of the tabs, because users on android devices have their own user experience, and you will negate that past experience, so don't force them to learn new tabs experience (because users on mobile are so lazy to learn new things, usually they rely on their past experience.)
See Pure Android for more.
However if you want to go ahead, I've customized the default Android
Tabs to be look like iPhone
tabs.
Which is simple and features default Android
tabs' ui components (̶T̶a̶b̶H̶o̶s̶t̶
, ̶T̶a̶b̶W̶i̶d̶g̶e̶t̶
).
Download link: GitHub, Iphone-Tab-in-Android
This sample has been upgraded to use TabLayout
and ViewPager
Relavent Blog entry can be found here:
The screenshot:
I have also cutomized the tabhost to look like Raised Center Tab.
to download RaiseCenterTab, please go here GitHub: RaisedCenterTab.
这篇关于Android - iphone 风格的 tabhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!