Dependency
Firstly, add Jitpack repository in your root build.gradle file (not your module build.gradle file):
allprojects { repositories { ... maven { url "https://jitpack.io" } } }
Add dependency to your module's build.gradle file:
dependencies { compile 'com.github.dimorinny:show-case-card-view:0.0.1' }
Usage
You can show this view on your activity or fragment using this code:
java new ShowCaseView.Builder(MainActivity.this) .withTypedPosition(new TopLeft()) .withTypedRadius(new Radius(186F)) .withContent( "This is hello world!" ) .build() .show(this);
Demo
from The Android Arsenal
No comments:
Post a Comment