[Android] ListView listens for sliding up and down (determines whether to display the return button on the top), android returns to the top
Set the scroll listener to determine the scrolling direction of the ListView and get the screen height and the actual ListView height, and determine whether to display the return button on the top (for details about the logic, see the code -- with a detailed comment ).
:Http://www.dwz.cn/zG99W
Source code running dynamic diagram