I have created a simple CustomView and attempted to add it to a layout. Everything seems to work correctly in the designer allowing me to create it and include it in the script. However, I have 2 issues with this.
The first one is I'm unable to set the EditText.Color value using the supplied Lbl view in the DesignerCreateView sub. I have to set it to Colors.White and not Lbl.Color because it gives me a "Property: Color is writeonly" error.
Here is an example, notice I have it hardcoded to Colors.White right now.
The second issue is that when the LoadLayout is done I get a ClassNotFoundException which points to my new class. It references b4a.example.numupdnview which is the class but I have it declared as NumUpDnView.
I have included a copy of the class to help determine what I'm doing wrong. I understand that I could do this without a customView but I need to do this in multiple spots and thus wrapping it up makes more sense.
Thanks for any help with this.
The first one is I'm unable to set the EditText.Color value using the supplied Lbl view in the DesignerCreateView sub. I have to set it to Colors.White and not Lbl.Color because it gives me a "Property: Color is writeonly" error.
Here is an example, notice I have it hardcoded to Colors.White right now.
B4X:
mEditText.Color = Colors.White
'mEditText.Color = Lbl.Color
The second issue is that when the LoadLayout is done I get a ClassNotFoundException which points to my new class. It references b4a.example.numupdnview which is the class but I have it declared as NumUpDnView.
I have included a copy of the class to help determine what I'm doing wrong. I understand that I could do this without a customView but I need to do this in multiple spots and thus wrapping it up makes more sense.
Thanks for any help with this.