ActionBarSherlock & HoloEverywhere - Forcing Overflow?

一世执手 提交于 2019-11-27 16:49:34

问题


I have a simple question. For my android app, I'm planning on using the ActionBarSherlock and HoloEverywhere libraries. Everything works well besides one thing: Forcing the overflow menu onto older devices. Without the HoloEverywhere project, the forced overflow works perfect with the following line:

android:theme="@style/Theme.Sherlock.ForceOverflow"

My problem is, I can't get the Forced Overflow to work when I apply

android:theme="@style/Theme.HoloEverywhereDark.Sherlock.ForceOverflow"

Eclipse gives me an error saying that there's no resource found that matches the given name. It works nice without the .ForceOverflow. Is this just not supported by HoloEverywhere or is there a way to manually do it myself?


回答1:


Extend a HoloEverywhere theme and add:

<item name="absForceOverflow">true</item>


来源:https://stackoverflow.com/questions/10509510/actionbarsherlock-holoeverywhere-forcing-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!