Solution for Android Scrollview unable to fill full screen
Solution for Android Scrollview unable to fill full screen
Scrollview Scrollview is a view that needs to be displayed by scrolling when there are many contents and the screen is not finished. The general usage of Scrollview is as follows
The following code puts a relativelayout in Scrollview and is set to Android: layout_ Height = "match_parent" fill the full screen and relativelayout. A textview background is set as a picture. According to the understanding of the code, the picture should be at the bottom of the screen
But the final effect is like this. You will find that the picture is not at the bottom of the whole screen, but on the top. Scrollview can't fill the screen,
So how to solve this problem? Finally, I found such a property when viewing the document and set it to solve this problem
That is, set Android: fillview of Scrollview to true, that is, Android: fillview = "true".