Adding views in runtime

ozgureffe

Member
Licensed User
Longtime User
Hi there,
I have a simple question

Is there any difference between
-Adding views in runtime
-Or adding them by using layout design editor GUI

Which one of them more preferable for memory & CPU consumption?

And

Is there any solution for adding my views with percentage parameters in the design editor GUI?

Ex :
myView.Top = 20%x

Instead of
myView.Top = 120dip

Thank you
 
Last edited:

ozgureffe

Member
Licensed User
Longtime User
Thank you,
but my question was about differences between adding views in runtime or design editor
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
Oh sorry I didn't read your post properly!

I'm pretty sure the designer just adds the code in for you anyway so it really doesn't make a difference to performance.

In terms of scalability though I find it's easier to programmically add views as you can use percentage values
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…