5

ShowcaseView Android ライブラリを使用して、アプリの初回起動時にウェルカム スクリーンを追加しています。

現在、4.0+ (およびおそらく 3.0 ですが、テストするデバイスを持っていません) では完全に動作しますが、Gingerbread では次のエラーでアプリがクラッシュします。

09-10 15:30:31.182    1650-1650/net.rymate.notes E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.RuntimeException: insertShowcaseViewWithType cannot be used when the theme has no ActionBar
    at com.github.espiandev.showcaseview.ShowcaseView$2.run(ShowcaseView.java:231)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3683)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    at dalvik.system.NativeStart.main(Native Method)

ジンジャーブレッドでこれを機能させる方法はありますか? アプリがほぼすべてのデバイスで動作できるようにしたいので、多くのサポート API を使用しています。

どんな助けでも大歓迎です!

4

3 に答える 3

1

このプル リクエスト で修正されました。
お気軽にフォークしてください。

于 2013-10-07T23:17:31.590 に答える
0

次のようなカスタム ビューを使用できます: Set Custom Font in the Action Bar ,

次に、次のような新しい ShowcaseView を作成します。

ShowcaseView.ConfigOptions co = new ShowcaseView.ConfigOptions();
co.hideOnClickOutside = true;
ShowcaseView sv = ShowcaseView.insertShowcaseView(v, this, 
    "TITLE", "subtitle", co);
于 2013-10-22T19:24:28.267 に答える