”’
public class HomeFragment extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
View root =inflater.inflate(android.R.layout.fragment_home,container,false)
return root;
}
}
”’
fragment_home created but not being recognized.
2
Answers
Try once-
could you please be more specific about your issue
is the fragment not showing on the screen?
or you want the naveController to recognize it and navigate to it in a certain action
remove the android directory and call R.layout.fragment_layout