简体   繁体   中英

Actionbar menu item background on select

I am using sherlock actionbar and made custom action bar using differnt color (blue) . When there are menu items . as i click on menu item . items background turns in to gray . Not able to point which attribute of the style is making this effect had checked the most possibility . any help would be appreciated

after some analysis found following answer

    <item name="selectableItemBackground">@null</item>
    <item name="android:selectableItemBackground">@null</item>
    <item name="actionBarItemBackground">@null</item>
    <item name="android:actionBarItemBackground">@null</item>

The issue is you need to override these attributes in your application. donot try changing in actionbar apk libary. that was the point i missed while fixing this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM