मुझे डिवाइडर के लिए ड्रॉइंग सेट करने में समस्या आ रही है। मेरे style.xml इस तरह दिखता है:एंड्रॉइड एक्शन बार टैब बार डिवाइडर
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="HCLTheme" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/HCLActionBarStyle</item>
<item name="actionBarStyle">@style/HCLActionBarStyle</item>
<item name="android:actionBarTabBarStyle">@style/HCLActionBarTabBarStyle</item>
<item name="android:actionBarTabStyle">@style/HCLActionBarTabStyle</item>
</style>
<style name="HCLActionBarStyle" parent="android:style/Widget.Holo.ActionBar">
<item name="android:background">@drawable/hcl_actionbar_drawable</item>
<item name="background">@drawable/hcl_actionbar_drawable</item>
<item name="android:titleTextStyle">@style/HCLActionBarTitle</item>
</style>
<style name="HCLActionBarTabBarStyle" parent="@android:style/Widget.Holo.ActionBar.TabBar">
<item name="android:showDividers">middle</item>
<item name="android:divider">@drawable/divider</item>
<item name="android:dividerPadding">0dp</item>
</style>
<style name="HCLActionBarTabStyle" parent="@android:style/Widget.Holo.ActionBar.TabView">
<item name="android:background">@drawable/action_bar_tab_style</item>
</style>
<style name="HCLActionBarTitle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@android:color/white</item>
</style>
</resources>
HCLActionBarTabBarStyle में मैं टैब भाजक के रूप में @ drawable/विभक्त सेट कर रहा हूं। यह ड्रॉबल एक 9 पैच छवि है, एक लंबवत ब्लैक लाइन है।
इससे पहले कि मैं एक्सएमएल में विभक्त drawable सेट मैं इस तरह सामान्य सफेद विभक्त हो रही है:
के बाद मैं styles.xml में drawable सेट मैं इस मिल:
तो जैसा कि आप देख सकते हैं कि विभाजक बस व्यापक हो जाता है, और यह 9 पैच छवि से काला लंबवत रेखा नहीं है। मुझे यह भी यकीन नहीं है कि विभाजक के लिए क्या आकर्षित किया जाना चाहिए? एक तस्वीर या परत सूची, या यह एक रंग हो सकता है? असल में मैंने इन सभी 3 की कोशिश की लेकिन बिना किसी सफलता के।
Thats में एक तस्वीर है 14 और ऊपर –