ShowCaseView
ShowCaseView
Dependancy:
com.github.mreram:showcaseview:1.4.1
Import:
smartdevelop.ir.eram.showcaseviewlib.listener.GuideListener;
import smartdevelop.ir.eram.showcaseviewlib.config.PointerType;
import smartdevelop.ir.eram.showcaseviewlib.config.Gravity;
import smartdevelop.ir.eram.showcaseviewlib.config.DismissType;
import smartdevelop.ir.eram.showcaseviewlib.GuideView;
Java:
new GuideView.Builder(MainActivity.this)
.setTitle("Title")
.setContentText("Description")
.setDismissType(DismissType.anywhere)
.setTargetView(viewname)
.setContentTextSize(12)
.setTitleTextSize(14)
.build()
.show();
Dismiss listener:
.setGuideListener(new GuideListener() {
@Override
public void onDismiss(View view) {
//next showcaseview here
}
})
Post a Comment