When I use the Android Studio navigation drawer, I can't use the fragment

Asked 2 years ago, Updated 2 years ago, 116 views

This is a copy of foreigners' YouTube 12

This was done by a Korean, but I kept getting stuck in that part Strangely, it doesn't pop up. What's wrong with you?

fragment

2022-09-22 20:12

1 Answers

This appears to be an error caused by the absence of a view Id defined as content_main in Xml. Make sure that you have not omitted the Id content_main in the view (probably activity_main.xml or content_main.xml) in the activity layout hosting the fragment.


2022-09-22 20:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.