SmartTabLayout
SmartTabLayout copied to clipboard
ViewPagerItemAdapter return null the first view
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);
Did anyone fixed this ?