开发者

Android TabWidget remove line at the bottom

Sorry for my English) My class extends TabActivity. How remove divider, which place after TabWidget? or how setup color for it开发者_StackOverflow中文版?

Android TabWidget remove line at the bottom

Thanks!!


Put android:tabStripEnabled="false" in our <TabWidget />


You need to write you own Tab Indicator selector. For this you can google for custom tab indicator or you can have a look in my post about Android tabs. I have written custom tabs so that you can customize your tab indicators. Here is a link to my post. You can also find useful link to customize your tab in the post.


I think this will help, as I myself used this. Try to reduce the margin of the frame layout. ex: android:layout_marginTop="-6px" put the code inside the line. AT least this worked for me.


Its Work for Me Very Nicely:

Apply a custom theme to your activity, and null out the android:windowContentOverlay attribute.

Define a theme in themes.xml:

<style name="YourTheme" parent="if you want"> ...
<item name="android:windowContentOverlay">@null</item> ... </style>

Apply the theme on your application or the activity in AndroidManifest.xml:

<application android:theme="@style/YourTheme" ... >

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜