Show case card view – show-case-card-view

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:

new ShowCaseView.Builder(MainActivity.this)
    .withTypedPosition(new TopLeft())
    .withTypedRadius(new Radius(186F))
    .withContent(
            "This is hello world!"
    )
    .build()
    .show(this);

Available positions:

  • Position(PointF position)
  • TopLeft()
  • TopRight()
  • BottomLeft()
  • BottomRight()
  • TopLeftToolbar()
  • TopRightToolbar()
  • ViewPosition(View view)

Available radiuses:

  • Radius(float radius)
  • ViewRadius(View view)

For more complication usage – see example .

Demo

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:Show case card view – show-case-card-view