findviewbyid in fragment Ask Question
Solutions
Nawab
you can find these controls as below on onViewCreated
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
textview tv= (textview ) getView().findViewById(R.id.tv);
OR
View view = inflater.inflate(R.layout.testclassfragment, container, false);
textview tv== view.findViewById(R.id.tv);
return view;