Shankar Prasad Shankar Prasad - 2 months ago 8x
Android Question

ShowcaseView is not working without ActionBar

Is there any way to use ShowcaseView if the application has a theme Theme.AppCompat.Light.NoActionBar and using in the application. I am getting below stack trace while executing the app. Please suggest...

java.lang.RuntimeException: insertShowcaseViewWithType cannot be used when the theme has no ActionBar
at com.github.amlcurran.showcaseview.targets.AppCompatReflector.getHomeButton(
at com.github.amlcurran.showcaseview.targets.AppCompatReflector.getActionBarView(
at com.github.amlcurran.showcaseview.targets.ActionViewTarget.setUp(
at com.github.amlcurran.showcaseview.targets.ActionViewTarget.getPoint(
at com.github.amlcurran.showcaseview.ShowcaseView$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(


You won't be able to make a 'tutorial step' pointing to a menu item if the activity has not ActionBar (it's obvious why... you haven't menu items).

If you want to center the circle in a view inside your activity/fragment, this should work for you.

ShowcaseView.Builder res = new ShowcaseView.Builder(activity, true)

Where target is:

Target target = new ViewTarget(view_id, activity)