Hello! There is a ListView, which occupies only the top half of the screen in height, so the bottom element in the ListView is clipped when scrolling through the list. What is the easiest way to make the bottom element either show completely / not show at all, or make a small gradient in transparency on the last element so that this border is not so sharp in the middle of the screen?

PS List items appear with animation.

enter image description here

    1 answer 1

    You can use the method

    listView.getLastVisiblePosition() 

    and when scrolling ListView hide the last visible element.

    You can also take a look at the RecyclerView, where it is possible to show the last fully visible element:

     linearLayoutManager.findLastCompletelyVisibleItemPosition() 
    • I agree, RecyclerView is much simpler than ListView :) - Flippy