Android Question web view on nook hd

IDDGroup

Member
Licensed User
Longtime User
Im not sure if there is a way around this, but maybe someone has an idea to try.

I have an app (a questions/answer type app), that uses a webview to display the questions. it works great because it allows me to have questions using simple html tags, like for underline, bold etc.. take a webview, give it a transparent background, change the font to white, and it looks just like a editText with formatting..

Works great on all devices... except nook HD.

for some reason on the nook hd, the webview's come up blank. there must be something different with their implementation of the web view?

any ideas or suggestions would be appreciated.
 

IDDGroup

Member
Licensed User
Longtime User
so i sort of answered my own question. so for anyone else with the problem, here is the answer, unless someone can come up with a better solution.

apparently the nook's web view isn't as good as the rest of the android world.

you have to give it the proper tags.

for most of android. this will work fine

QuestionText.LoadHtml("<font color=white>" & Quest_question & "</font>")

for nook, you have to do this:

QuestionText.LoadHtml("<html><body bgcolor=black><font color=white>" & Quest_question & "</font></body></html>")

you have to wrap the html/body tags around it. it also doesn't recognize CSS, so you can't get a transparent background.. best to make a solid color and work it into your design
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…