Android Question longtext pop up

merlin2049er

Well-Known Member
Licensed User
Longtime User
I'm not sure what happened, I think I had the pop up working.

I put most of my layouts in panels, and it doesn't work.

Initialize it in globals...

B4X:
Dim scvText As ScrollView  ' scrollview

I've got this in my activity create

B4X:
Activity.LoadLayout("longtext")
  scvText.Panel.LoadLayout("LongText1")

scvText.Panel.SendToBack
  scvText.Panel.Visible = False

And when I like to pop it up, I've got the following code...

B4X:
Sub Label1_Click
    scvText.Panel.BringToFront
    scvText.Panel.Visible = True
    lblTitle.text ="About"
    lblText.text= Label1.text


End Sub
 
Last edited:

merlin2049er

Well-Known Member
Licensed User
Longtime User
Yes, I meant dim.

Works now. I've had to send the panel and text back and forth.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…