Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 ActionBarSherlock。菜单项之间有分隔线。我想隐藏它们。我应该使用一些自定义样式来实现这种行为吗?
用这个
<style name="Theme.Example" parent="Theme.Sherlock"> <item name="actionBarDivider">@drawable/small_detail_divider</item> .... <item name="android:actionBarDivider">@drawable/small_detail_divider</item> ... </style>
在你的styles.xml
从这里:https ://stackoverflow.com/a/11449888/1231245