AndroidStudio Android development controls cannot fill the entire screen, with white borders on the edges

Problem Description

The running program is as shown in the figure below. The Android control can't completely fill the entire screen, and it can't be full screen, which is very strange.
Insert picture description here

Solution

1. Go to the main layout file activity_main.xml

Insert picture description here

2. Find these four lines and delete them

Insert picture description here

3. Run the test

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41170600/article/details/106420959