Android Question Changing HTML label style programmatically

William Hunter

Active Member
Licensed User
Longtime User
I am using a HTML template containing a label with the style set to visibility:hidden. As the need arises, I would like to change the style alternately between visibility:hidden and visibility:show programmatically. Does anyone have a code sample showing how to do this? Any help greatly appreciated.

Edit: This is being used in conjunction with HttpServer. I need to programmatically change the label visibility style in a running browser webpage. I hope this makes my query clearer.

Best regards
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
use webview with a javascriptinterface. You then can write javascript and inject it which then set the visibility to true if you want.
You can also inject little javascripts to update the visibility with somethink like
B4X:
MyWebView.LoadUrl("javascript:alert('Hello World')")
to do the work... Use forum search to find anything about javascript and webview and you will find an solution
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…