Android Question Get Designer's Main section's Properties for a view

francoisg

Active Member
Licensed User
Longtime User
Good day,

Is it possible to retrieve a view's "Name" and "Event Name" Properties? That one would set within the Designer's Main section. I'm creating a dynamic view library and need to retrieve those fields.
I've tried reflection, and use something like...
B4X:
Dim r As Reflector
r.Target = Label1
   
Log(r.GetField("Name"))
Log(r.RunMethod("getName"))

But obviously Name & getName field/Method don't exist or aren't accessible... Can someone please advise?
 

francoisg

Active Member
Licensed User
Longtime User
I can't really expect the end user to assign field names to the Tag property to all the layout views (when a layout file is being loaded into my class library).
Can't you just expose the View "Name" and "EventName" Properties somehow?
 
Upvote 0
Top