Eduardo Funabashi Member Licensed User Longtime User Mar 9, 2015 #1 Hello, How to make scrollview control to show last item inserted ? I have a scroll view that has 10 itens in the visible area. And what I want is that every each new item inserted, scrollview moves to show last item inserted Could you please help ? Regards
Hello, How to make scrollview control to show last item inserted ? I have a scroll view that has 10 itens in the visible area. And what I want is that every each new item inserted, scrollview moves to show last item inserted Could you please help ? Regards
klaus Expert Licensed User Longtime User Mar 9, 2015 #2 You need to show us your code to see what you have done and how. You need to set the ScrollView.Panel.Height correctly. Upvote 0
You need to show us your code to see what you have done and how. You need to set the ScrollView.Panel.Height correctly.
Eduardo Funabashi Member Licensed User Longtime User Mar 11, 2015 #3 Hello, I'm using DbUtils to fill scrollview Code: Sub ExecuteListView(SQL As SQL, Query As String, StringArgs() As String, Limit As Int, ListView1 As ListView, TwoLines As Boolean) After I execute this Sub, it fills my Listview with my data, but I would like that after fill, that scrollview points to last item inserted. Upvote 0
Hello, I'm using DbUtils to fill scrollview Code: Sub ExecuteListView(SQL As SQL, Query As String, StringArgs() As String, Limit As Int, ListView1 As ListView, TwoLines As Boolean) After I execute this Sub, it fills my Listview with my data, but I would like that after fill, that scrollview points to last item inserted.
eurojam Well-Known Member Licensed User Longtime User Mar 12, 2015 #4 use something like this: B4X: listview1.SetSelection(listview1.Size-1) Upvote 0
Eduardo Funabashi Member Licensed User Longtime User Mar 12, 2015 #5 Thank you "eurojam". That´s it. Upvote 0