If we add less number of Elements to our about page, then the hight of ScrollView will shrink to the wrap the content, which looks odd because the while colored background will show in the bottom after the end of ScorllView, to fix this issue ScrollView has a property called fillViewport.
_( fillViewport allows scrollView to extend its height equals to the full height of the device screen's height in the cases when the child of the scroll view has less height. )_
I am personally using your library in my college project. While using dark mode I saw this issue, so I thought about fixing it.
Before screenshot :
Fixes :
Added android:fillViewport="true" property to the ScrollView of about_page.xml.
Removed <item name="android:layout_weight">1</item>--> property from the <style name="about_separator"> in the Style resource for the page separaor file (about_page_separator.xml)
Removed the gravity property <item name="android:gravity">center</item> in the <style name="about_About.wrapper"> Style resource, because it was creating an empty void space between the description and about_providers.
Problem :
If we add less number of Elements to our about page, then the hight of ScrollView will shrink to the wrap the content, which looks odd because the while colored background will show in the bottom after the end of ScorllView, to fix this issue ScrollView has a property called fillViewport.
_( fillViewport allows scrollView to extend its height equals to the full height of the device screen's height in the cases when the child of the scroll view has less height. )_
Before screenshot :
Fixes :
Added
android:fillViewport="true"
property to the ScrollView ofabout_page.xml
.Removed
<item name="android:layout_weight">1</item>-->
property from the<style name="about_separator">
in the Style resource for the page separaor file (about_page_separator.xml
)Removed the gravity property
<item name="android:gravity">center</item>
in the<style name="about_About.wrapper">
Style resource, because it was creating an empty void space between thedescription
andabout_providers
.After screenshot :
Rudra, Feel free to leave your comments.