Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 23
Registered: ‎08-13-2013
My Device: Z10
My Carrier: chinaunicom
Accepted Solution

How to use the ScrollView with a WebView to display large texts?

hey there

 

I have use the label and textarea to display the TXT ,but it can only display about 20.000 byte. somebody tell me can   use the  ScrollView with a WebView to display large texts. I would not use this method。who can help me?maybe u can give me a demo,Then I can study it

thankyou very much

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: How to use the ScrollView with a WebView to display large texts?

ScrollView {
                  
              
              
						    Container {
                                layout: DockLayout {//aca stack
                                }
					            background: Color.Transparent

                				horizontalAlignment: HorizontalAlignment.Center
				                verticalAlignment: VerticalAlignment.Center
				                

    

                					WebView  {
                					    
                                        html: "<div style='margin:0 auto;position:relative;display:table;text-align:justify;' ><font size='6'> "+desIngresado+"</font></div>"
                     				settings.background: Color.Transparent
				                    verticalAlignment: VerticalAlignment.Center
				                    horizontalAlignment: HorizontalAlignment.Center
 			                    	

                					}
                                    
					                
						   }
	}

 I used this way for my aplication aand is working properly, and had many long texts from wabview

If you find this information useful please click like --->
@mezeitune on twitter
Contributor
Posts: 23
Registered: ‎08-13-2013
My Device: Z10
My Carrier: chinaunicom

Re: How to use the ScrollView with a WebView to display large texts?

hey there thankyou for your reply ,I have solved my problem.Good luck
Contributor
Posts: 23
Registered: ‎08-13-2013
My Device: Z10
My Carrier: chinaunicom

Re: How to use the ScrollView with a WebView to display large texts?

[ Edited ]

maybe you can give me your email ,then we can contact each other, thx

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to use the ScrollView with a WebView to display large texts?

you should not post your mail address on a public forum, there are a lot of spammer tools scraping sites like this looking for such info.

you can send users a private message with this information if you think they need it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 23
Registered: ‎08-13-2013
My Device: Z10
My Carrier: chinaunicom

Re: How to use the ScrollView with a WebView to display large texts?

hey u are right ,I have  deleted it  thx

Highlighted
Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: How to use the ScrollView with a WebView to display large texts?

we get in touch by private message, how lucky you served my answer

If you find this information useful please click like --->
@mezeitune on twitter