I have found that there are EditText controls, Label and Check boxes that come from the same class. So doing the following check I see that a check box is also a label!
Is there a way to check precisely the type of control via code?
here is a small example.
Dim v As View = m_chkDisattivo
If v Is Label Then
Log("Label") 'OK
End If
If v Is EditText Then
Log("text")
End If
If v Is CheckBox Then
Log("chek") 'OK
End If
Thanks so much
Is there a way to check precisely the type of control via code?
here is a small example.
Dim v As View = m_chkDisattivo
If v Is Label Then
Log("Label") 'OK
End If
If v Is EditText Then
Log("text")
End If
If v Is CheckBox Then
Log("chek") 'OK
End If
Thanks so much