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

Categories

0 votes
334 views
in Technique[技术] by (71.8m points)

java - ActionBarSherlock & HoloEverywhere - Forcing Overflow?

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

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

1 Answer

0 votes
by (71.8m points)

Extend a HoloEverywhere theme and add:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...