Here are five common Window methods that you can use to compare them
- SetContentView: Sets the view content. The Activity method with the same name calls getWindow().setContentView.
- SetLayout: Sets the width and height of the content view.
- SetGravity: Sets the alignment of the content view.
- SetBackgroundDrawable: Sets the background of the content view.
- FindViewById: Gets the object of the view based on the resource ID. The Activity method with the same name calls getWindow().findViewById.