-
Notifications
You must be signed in to change notification settings - Fork 275
3. Inflate Custom View
Faruk Toptaş edited this page Aug 21, 2017
·
1 revision
mFancyShowCaseView = new FancyShowCaseView.Builder(this)
.focusOn(view)
.customView(R.layout.layout_my_custom_view, new OnViewInflateListener() {
@Override
public void onViewInflated(View view) {
view.findViewById(R.id.btn_action_1).setOnClickListener(mClickListener);
}
})
.closeOnTouch(false)
.build();
mFancyShowCaseView.show();
View.OnClickListener mClickListener = new View.OnClickListener() {
@Override
public void onClick(View view) {
mFancyShowCaseView.hide();
}
};