O ozgureffe Member Licensed User Longtime User Sep 4, 2011 #1 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: Sep 4, 2011
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
A admac231 Active Member Licensed User Longtime User Sep 4, 2011 #2 Have a look here for adding at runtime: Basic4android - Views (Core) (Under AddView) There is currently no way to use percentage values in the design editor unfortunately. Upvote 0
Have a look here for adding at runtime: Basic4android - Views (Core) (Under AddView) There is currently no way to use percentage values in the design editor unfortunately.
O ozgureffe Member Licensed User Longtime User Sep 4, 2011 #3 Thank you, but my question was about differences between adding views in runtime or design editor Upvote 0
A admac231 Active Member Licensed User Longtime User Sep 4, 2011 #4 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
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
Erel B4X founder Staff member Licensed User Longtime User Sep 5, 2011 #5 There is no difference regarding performance or memory usage between adding the views with the designer or by code. Upvote 0
There is no difference regarding performance or memory usage between adding the views with the designer or by code.