Android Question How to implement Click Event on AutoTextSizeLabel ?

EduardoElias

Well-Known Member
Licensed User
Longtime User
Took a look on the documentation about events on Designer and it was not clear how to proceed on it.

The AutoTextSizeLabel is a wrapper around a Label, I need to intercept the Click event from this label, that is fine and push it to the <whatever>_Click that was defined on the source code.

How can it be done?
 

Sagenut

Expert
Licensed User
Longtime User
I don't know this view, but you could cover it with a transparent native label or panel and use the click of this added view over the AutoTextSizeLabel.
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
I don't know this view, but you could cover it with a transparent native label or panel and use the click of this added view over the AutoTextSizeLabel.
it is not about that... I have a class that shows up on the designer as a new view, and I want to generate the CLICK and pass it from the label that I have inside this class
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Maybe I am not understanding your needs.
Even using a click from another view you can do whatever you want.
Post a small example project and explain what you need to do.
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
Maybe I am not understanding your needs.
Even using a click from another view you can do whatever you want.
Post a small example project and explain what you need to do.
I am talking about using #event on a class created to wrap a label, this click event is shown on designer and I do not understand how I call the instance created on designer so that I can generate the event.

You are talking about something else
 
Upvote 0
Top