Android Question how to set the scroll bar in ListView & order of insertin listview

maor

New Member
I am new to B4A and I am trying to build a simple app that shows the time when I click on a button . I managed to do that so I decided to put it in a listview so I can see all time I have clicked on the button in the past . my problem is that I only see the scroll bar for a very short time and then it vanishes and I want to know if there is a way I can control the amount of time it will be displayed? Also I would like to know If there is a way to change to order of insert to the ListView . What I mean is that now I the last time I pushed the button is showed at the bottom and I want to know if there is way that it will be showed on top. thanks.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The scroll bar is not really important on Android. The user doesn't use it to scroll the list.

You can use the code Klaus posted here to prevent the scroll bar from fading: https://www.b4x.com/android/forum/threads/scrollview-properties.40878/#content

It is not possible to change the order of items without clearing the list and filling it again. However you can use CustomListView class instead of ListView. CustomListView allows you to change the order.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…