Android Question Large Text viewer, label on Tabhost

Eldritch

Member
Licensed User
Longtime User
Hi

I'm trying to display a large amount of text in a label located in a tabhost. I have tried to adjust the height of the label and the tabhost but the label gets outside the visible area. The scollbar also goes outside the screen.

It's necessary for me that the text is locked and paste is disabled.

I have attached the project.
 

Attachments

  • UrlText.zip
    134.7 KB · Views: 158

Eldritch

Member
Licensed User
Longtime User
Sorry, I didn't look up to the first post.

Why do you set the height if the TabHost to two times the screen height ???

Oh there the problem where:) Thanks for finding it :)
But if I change that, the webview stopped working :-(
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Replace this line
scvTest1.Panel.AddView(WVUrl,0,1*lblHeight1,100%x,100%y)
by this one.
scvTest1.Panel.AddView(WVUrl,0,1*lblHeight1,100%x,100%y - lblHeight1)

You should try to replace the ScrollvVew scvTest1 by a Panel.
In your case I suppose that there is a conflict between the scrolling of the ScrollView and the scrolling of the WebView.
 
Upvote 0

Eldritch

Member
Licensed User
Longtime User
Replace this line
scvTest1.Panel.AddView(WVUrl,0,1*lblHeight1,100%x,100%y)
by this one.
scvTest1.Panel.AddView(WVUrl,0,1*lblHeight1,100%x,100%y - lblHeight1)

You should try to replace the ScrollvVew scvTest1 by a Panel.
In your case I suppose that there is a conflict between the scrolling of the ScrollView and the scrolling of the WebView.

Changing it t at panel did the trick, all is working fine now, thanks a lot Klaus. I'm a happiii camper now.-)
 
Upvote 0
Top