Hello guys, ummm basically fragments can work fine without the 'OncreateView' method.
Remove the OncreateView method and inflate your layout in the "Fragment()" and it will be "Fragment(R.layout.activity_main)".
Try that and it works fine. that's all.
Top comments (1)
Could you please add on it