Android Question Unable to set WebView background

RJB

Active Member
Licensed User
Longtime User
The following doesn't seem to work. Any ideas where I'm going wrong?
Code: Copy
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmapSample("", ImagePath, 400,300))
bd.Gravity = Gravity.FILL
WViewer.Background = bd
WViewer.Invalidate
 
It will not work. WebView overrides the background with its own background. You can set it with LoadHtml.
OK thanks, as you know I have been using LoadHTML but thought this might be a way around the problems I was having. Could the description for .Background be modified to say that it doesn't work?
Thanks
 
Upvote 0
Back
Top