Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an info overlay in Android

I am looking for a way to create a short overlay intro of an app to display to first time users. These posts gave me some understanding of how it can be done, but not entirely:

How do I create a help overlay like you see in a few Android apps and ICS?

How to use LayoutInflater / ViewStub for an overlay

I do not understand how to access my elements correctly, since my root layout element is a LinearLayout that includes an Actionbar and a ViewPager instead of containing actual elements.

Are there any frameworks that does this for you?

like image 720
Daniel Larsson Avatar asked Oct 15 '12 11:10

Daniel Larsson


People also ask

What is Android overlay?

An overlay is one of the primary surfaces for app content. Overlays are different from complications or Tiles, which are glanceable representations of app content. Overlays display more information and support richer interactivity.

What is in app overlay?

Screen overlay is a feature of modern Android smartphones and tablets that allows compatible applications to appear on top of others.

What app do people use to make overlays?

Photo Blender - The Best Choice for Blending Photos Photo Blender is a scrapbooking, collage-making, and photo overlay app.


1 Answers

I think that this library : ShowcaseView is your best option. As its name implies, it allows you to recreate the Android 4.x showcase view; ie :
Showcase view sample.

The documentation of the project explains how to implement it. Word of advice though : this kind of explanation view is viewed as bad design most of the time : if your application is well designed, you don't need to provide a tutorial to the user, it is supposed to be intuitive.
It can be totally justified in some cases of course, just be sure that :
-your users really need a tutorial.
-it is not because you are doing something opposite to the Android convetions.

like image 145
Teovald Avatar answered Oct 16 '22 02:10

Teovald