I know how to get the root view with View.getRootView(). I am also able to get the view from a button\'s onClick event where the argument is a View. But how can
onClick
anyview.getRootView(); will be the easiest way.
anyview.getRootView();