added ViewWrapper.onAttach() & ViewWrapper.onDetach(), which are called when the view is added or removed from the view hierarchy.
updated the demo project