This is a B4A + B4i project that shows a possible method for handling the keyboard visibility changes.
Resizing the CLV will cause the list to lose the scroll position. Instead of resizing the list, we add a stub item as the last item, with the same size of the keyboard. This way the user can still reach the last real item.
A small downside for this solution, is that the scrollbar indicator becomes less useful when the keyboard appears.
You also need to be aware that the last item in the CLV can be a stub item. See the code. It is quite simple.
Note that handling the keyboard in B4A requires some configuration: https://www.b4x.com/android/forum/t...or-managing-multiple-pages.118901/post-745090 (already implemented in this example).