GoogleNavigationDrawer icon indicating copy to clipboard operation
GoogleNavigationDrawer copied to clipboard

Caused by: java.lang.IllegalArgumentException: No view found for id 0x7f090056 (maybe:id/frame_container)

Open broakenmedia opened this issue 10 years ago • 3 comments
trafficstars

Cant do anything to get around it? :/

broakenmedia avatar Jan 09 '15 12:01 broakenmedia

could you post the complete logcat error?

neokree avatar Jan 10 '15 19:01 neokree

I had this when converting a project to use GoogleNavigationDrawer I'd left in a call to setContentView(R.layout.activity_main); on the main activity that extends GoogleNavigationDrawer.

scottyab avatar Jan 12 '15 11:01 scottyab

As the EXAMPLE.md file told, you should not override the onCreateView and you must not set your content with setContentView. This is because the library call the setContentView method for create the method. Please move the main content of your app into a Fragment, then into the init() method create a section that have this Fragment as target and then add the section to the drawer.

The first section must have a fragment as a target and it will be used for the main content.

neokree avatar Jan 12 '15 22:01 neokree