I see it now. It doesn't happen in rapid debug mode.
The cause of this issue is the DoEvents call in Table.InnerClearAll.
You can fix it by delaying the table creation:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layMain")
Activity.Title = "Table and DatePicker"
CallSubDelayed(Me, "AddTable")
End Sub
Sub AddTable
mTable.Initialize(Activity, "Table", 5, Gravity.CENTER_HORIZONTAL+Gravity.CENTER_VERTICAL, True)
mTable.AddToActivity(Activity, 0, 0, 100%x, 40%y)
Scale.Initialize
Scale.ScaleAll(Activity, True)
End Sub
If the table has used a regular ScrollView then a simpler solution would have been to remove the DoEvents call by using ScrollView.ScrollToNow.