android - java.lang.IllegalArgumentException: view must not be null -


i want show imageview on top. imageview in fragment.
but, got error message.

java.lang.illegalargumentexception: view must not null 


here code.

@override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) {      mcontext = getactivity().getapplicationcontext();     view rootview = inflater.inflate(r.layout.fragment_mapview, container, false);     mimagefloor = (imageview) rootview.findviewbyid(r.id.img_floor);       windowmanager.layoutparams params = new windowmanager.layoutparams(             windowmanager.layoutparams.type_system_overlay,             windowmanager.layoutparams.flag_not_touchable,              pixelformat.translucent);                                                                windowmanager wm = (windowmanager) getactivity().getsystemservice(mcontext.window_service);     wm.addview(mimagefloor, params);  // *this line has error 


am doing wrong?


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -