if injected view is the rootview ,then parent.getParent() is null,so you can't add the view to another viewgroup(custom stateview) any more.  
if injected view is the rootview ,then parent.getParent() is null,so you can't add the view to another viewgroup(custom stateview) any more.

