Hi,
I load an html in webview1 and when the user press with a "long_click" I want visualize a toast message but appear "copy..share etc"
How to avoid the inconvenience?
@Erel I am new in b4I and I looked for help in the community. I do not know other ways to load an HTML if not with webview.
I don't understand "You can change the items to links ".
My html are in dir asssets
can you give me a simple example?
Thanks
What Erel probably meant is that you should not use a HTML layout to show in a webview for your design.
Create your layout with the designer, then use the builtin listview or scrollview to show your list which users then tap to select a value...
Hi, @moster67
"listview or scrollview ...."
I have not found any examples of how to load the html in listview or scrollview.
can you help me with a little example? I would really appreciate it
Thanks
What exactly is the purpose of your WebView?
Is it a kind of menu?
Why do you use a html file and not just a text file?
Whithout knowing what exactly the purpose is, it's diffcult do give a concrete advice.
Sorry for these questions, but before answering a question, I like to know the real problem.
I had a look at it and I don't understand the purposethat's the reason why I asked the questions.
And I still don't understand.
Do you just want to display some text, is it a kind of menu, is it used to select spmething ???
The attached test project does what you expect.
The project uses a ScrollView, and the html file was saved as a text file with UTF-8 encoding, dirctly with Word.
I'm still not sure which layout you are trying to create. In most cases it is simpler and better to use xCustomListView instead of ScrollView. This will also allow you to easily share the code with B4A and B4J.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.