How can I remove the block highlighted in red in the photo, so that the layout takes up the whole screen? enter image description here

    1 answer 1

    This is ActionBar , it is removed through styles. Most styles have a modification of NoActionBar , for example Theme.AppCompat.NoActionBar