DismissOverlayView 2


 

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, select Wear Module(Mobile Module is Optional for this tutorial), create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> values -> Create new xml, styles.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

Step 6 : Open build.gradle (Module: app) file and add following code :

ScreenShot:

dismissoverlay dismissoverlay2

Download SourceCode

 

  • DismissOverlayView is deprecated

    • Yes webserveis, but this posted long ago.