title: Any easy, generic way in Android to get the root View of a layout?
body: <p>I'm wondering if there is a general-purpose method in the Android Activity class to allow you to get the root View of that Activity's layout. I know I can do it this way:</p>
  
  <pre><code>View v = findViewById(R.id.root_view_id)
  </code></pre>
  
  <p>But I would like to be able to do it without having to pass in the ID of the root view. I need to do this for a lot of different Activities, and it would be a lot more convenient if I had a one-size-fits-all method call to accomplish the task.</p>