SlidingRootNav icon indicating copy to clipboard operation
SlidingRootNav copied to clipboard

access item in fragment

Open dariushgh opened this issue 6 years ago • 1 comments
trafficstars

hi, i use this code but i have error

slidingRootNav = new SlidingRootNavBuilder(getActivity()) .withMenuOpened(false) .addDragListener(this) .withContentClickableWhenMenuOpened(false) .withSavedState(savedInstanceState) .withMenuLayout(R.layout.nav_header) .withGravity(SlideGravity.RIGHT) .inject();

    textTestOnClick =  view.findViewById(R.id.vvv);
    textTestOnClick.setText("tr");
    textTestOnClick.setOnClickListener(this);

the error is : Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

i checked vvv id that is defind in nav_header layout

dariushgh avatar Oct 16 '19 08:10 dariushgh

I have encountered the same problem. Have you solved it?

AnmLobby avatar Oct 24 '19 18:10 AnmLobby