is there a way to detect End Of Screen or Top/Bottom of screen like we have for End of file in file handling which will give the flexibility in using the Touch action for scrolling efficiently?
no chance. you need to check that data in list not changed and stop scroll.
In UiAutomator2 driver there are, actually, some extensions that would return
false if no more scrolling is possible in the given direction. Not sure how reliable they are as I didn’t test this feature myself