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
Post a Comment