Discussion Forums  >  WebViews and HTML for Mobile

Replies: 4    Views: 97

Jenny21
Code is Art
Profile
Posts: 182
Reg: Apr 14, 2011
USA, Kentucky
1,820
05/13/12 03:59 PM (13 years ago)

Custom Text Bug

Every time I paste text into a "Custom HTML, Text" screen, the text is not formatted properly when viewed on a device. I'm pasting in un-formatted text, straight from Notepad. If I type something in the Custom Text screen, the text appears as it should: Zoomed in, readable, and works fine. On the other hand, when I paste in text from Notepad, the text is zoomed out far, and to read it users have to zoom in. It is not formatted to fit my device's screen properly. This bug has occurred since I started using BuzzTouch and has yet to be fixed, although I believe people have posted about it before. (Search feature can only search title's so it's kinda hard to tell). Are there any known fixes to this? All I want to do is copy and paste text into a "Custom HTML, Text" screen and it be formatted properly to fit the devices screen. Thank you
 
Jenny21
Code is Art
Profile
Posts: 182
Reg: Apr 14, 2011
USA, Kentucky
1,820
like
05/13/12 04:14 PM (13 years ago)
Fixed it (kinda). Here's how: Use this HTML code: <p> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style> Text Goes here</p> <p>&nbsp;</p> Where it says "Text Goes here", put your text. Remember that you must <br> and format your text for HTML. I'd just suggest copying and pasting the above code in DreamWeaver and just paste in the text you want. Sorry if I didn't make myself very clear, I really don't know much about what I'm doing (I'm not that knowledgeable on HTML and don't know much about DreamWeaver). Let me know if you need some help. Regardless, the Custom HTML/text screen is bugged when copying and pasting in text, even if it is plain non-formatted text. Thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/13/12 04:56 PM (13 years ago)
Is that the code that's hard coded into the customhtml template? If so, it's not formatted properly. The head and body (which aren't seperated, opened or closed) are wrapped in a p tag. Very odd. It should look something like this: <html> <head> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style> </head> <body> <p>Text Goes here</p> </body> </html>
 
Jenny21
Code is Art
Profile
Posts: 182
Reg: Apr 14, 2011
USA, Kentucky
1,820
like
05/13/12 04:58 PM (13 years ago)
Yeah, that's the template for the Custom HTML/text page. Apparently, pasting in your own thing over what's there just completely removes it and replaces it with completely un-formatted HTML, thus causing incorrect formatting on devices.
 
denikov
Lost but trying
Profile
Posts: 46
Reg: Dec 26, 2011
Reno Nevada
10,360
like
10/14/12 05:07 AM (13 years ago)
i need some help with the custom html stuff. i wanted to display a single message just to get it to work on an emulator and i got a "file not downloaded yet" error. ios emulator displays nothing at all. i tried inputting your html with my text and it still gives me the same error. any ideas on why this happens?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.