Android Question Create an Instance of CustomView outside of Designer

yasan_v3

Member
Licensed User
Longtime User
Hello to everyone,

i created a CustomView Class that holds a ScrollView with Items in it. Everything is fine when i use the standard label for the items but i get errors when i try to create another CustomView (own Label class) inside the Class Module and attach it to the Panel of the ScrollView instead of using the labels (Error: Type should be View but is CustomView). Ive read that CustomViews should not be initialized out of the designer but maybe someone knows a trick to make it work. That would be really cool! I don't like redundant code...

BTW this is my first post thank you all for all the amount of information and sample projects posted in this forum i enjoy the minimalitic approach of B4A and hope to present you my cool app soon!

Greetings from Germany
Dawid
 

yasan_v3

Member
Licensed User
Longtime User
Thank you Erel, i try this out. I tried to call DesignerCreateView manually that was my failure.
 
Upvote 0
Top