Android Question Problem with label create in run time

Hirogens

Active Member
Licensed User
Longtime User
Hello I would like to create 4 panels in a scrollview and I would like to put a label in every panel that I create. Actually only one label is visible and I don't know why ...
I link my project
 

Attachments

  • calendar.zip
    10.2 KB · Views: 131

klaus

Expert
Licensed User
Longtime User
Replace this line:
pnl.AddView(name_month, 33%x, pnl.Top+new_top, 200, 100)
by this one:
pnl.AddView(name_month, 33%x, 10dip, 200dip, 100dip)
The Top property is according to top of pnl not of the screen.
You shoud use dip values!
 
Upvote 0
Top