我在启动我的应用程序时考虑了这两个示例:
http://code.google.com/p/iosched/
http://developer.android.com/resources/samples/HoneycombGallery/index.html
目前有
minSdkVersion = 8 minSdkTarget = 11
在我的 list 中设置。我已经尝试了我能想到的一切,但似乎无法获得我想要的样式。我已经完成了很多样式设计,但仍有一件事让我难以理解……标签。我找不到给它们上色的方法。
现在,在我说得太远之前,在你告诉我我错过了一些明显的东西之前,是否有可能改变 Android 3.1 上选项卡的颜色...甚至 3.0 就此而言 (通常是明亮的蓝色下划线)?似乎我可以做大部分其他事情......
我到处寻找答案。包括这些地方,还有很多很多……
http://developer.android.com/guide/topics/ui/actionbar.html
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
http://developer.android.com/resources/samples/ActionBarCompat/index.html
http://android-developers.blogspot.com/2011/04/customizing-action-bar.html
Android 3.0 ActionBar, changing colors
Android action bar like twitter sample
Android ActionBar tab style for Honeycomb
http://groups.google.com/group/android-developers/browse_thread/thread/983509d7261c54f4
如果不出意外,对于那些正在寻找...的人来说,这是一个不错的链接列表
谢谢
最佳答案
<style name="MyTheme.Light" parent="@android:style/Theme.Holo.Light">
<item name="android:windowActionBarOverlay">true</item>
<item name="android:actionBarTabStyle">@style/customActionBarTabStyle</item>
<item name="android:actionBarTabTextStyle">@style/customActionBarTabTextStyle</item>
</style>
<style name="customActionBarTabTextStyle">
<item name="android:textColor">@android:color/white</item>
</style>
<style name="customActionBarTabStyle">
<item name="android:background">@drawable/actionbar_tab_bg</item>
<item name="android:paddingLeft">24dp</item>
<item name="android:paddingRight">24dp</item>
</style>
关于android - 需要一个明确的答案来设计 Android ActionBar 选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7988581/