How do I add Designer Property in my code

How do I add Designer Property in my code

Always see the source code. You'll find the way.
Example :

appinventor-sources/HVArrangement.java at master · mit-cml/appinventor-sources (github.com)

1 Like

@DesignerProperty(editorType = PropertyTypeConstants.your property type here,
defaultValue = your default value here"")
@SimpleProperty()
public void YourProperty() {

}

1 Like

Thank you both your two answer is correct

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.