SmartTabLayout icon indicating copy to clipboard operation
SmartTabLayout copied to clipboard

ViewPagerItemAdapter return null the first view

Open andreasagap opened this issue 7 years ago • 1 comments

Hi, I have a editText in the first viewpager's item. How I suppose to findViewById if the view is null?

adapter = new ViewPagerItemAdapter(ViewPagerItems.with(context)
                .add("Notes", R.layout.notes_layout)
                .add("Photo", R.layout.media)
                .create());
View view = adapter.getPage(0);
EditText notes = view.findViewById(R.id.notes_text);

andreasagap avatar Sep 03 '18 09:09 andreasagap

Did anyone fixed this ?

itsmematss avatar Mar 24 '22 14:03 itsmematss