Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use it on Recycler view #22

Closed
Xaus opened this issue May 10, 2017 · 3 comments
Closed

how to use it on Recycler view #22

Xaus opened this issue May 10, 2017 · 3 comments

Comments

@Xaus
Copy link

Xaus commented May 10, 2017

i'm using recycler view in a fragment in my app and i need to say something about first recyclerview item
using this code :

TutoShowcase.from(getActivity())
            .setContentView(R.layout.tuto)
            .on(recyclerView.getChildAt(1))
            .addCircle()
            .show();

but when i use "recyclerView.getChildAt(1)"
returns me this error :

java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewTreeObserver android.view.View.getViewTreeObserver()' on a null object reference

what can i do about this ?
thank's

@adnxy
Copy link

adnxy commented Jul 24, 2017

Same issue @florent37 could you assist please?

@florent37
Copy link
Owner


recyclerView.postDelayed(new Runnable(){
public void run(){
     TutoShowcase.from(getActivity())
            .setContentView(R.layout.tuto)
            .on(recyclerView.getChildAt(1))
            .addCircle()
            .show();

}
});```

@Xaus
Copy link
Author

Xaus commented Jul 25, 2017

Nice Thank you

@Xaus Xaus closed this as completed Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants