Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
331 views
Welcome To Ask or Share your Answers For Others

1 Answer

Extend a HoloEverywhere theme and add:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...