I'm trying to display several HTML files which are in the Files folder of the project.
the code copies the file from DirAssets to DirInternal with a fixed name and then displays the file.
The problem is that when the 1st file is scrolled down and then the 2nd file is loaded, it is loaded with the
"scroll position" of the previous file, that is NOT from the beginning of the 2nd file.
Any idea on how to solve that?
the code copies the file from DirAssets to DirInternal with a fixed name and then displays the file.
B4X:
If File.Exists(File.DirInternal,"aa.htm") Then File.Delete(File.DirInternal,"aa.htm")
File.Copy(File.DirAssets,"file[i]n[/i].htm",File.DirInternal,"aa.htm")
s="file:///" & File.DirInternal & "/aa.htm"
wv.LoadUrl(s)
The problem is that when the 1st file is scrolled down and then the 2nd file is loaded, it is loaded with the
"scroll position" of the previous file, that is NOT from the beginning of the 2nd file.
Any idea on how to solve that?