How do you add a property to Screen 1?

Hello,Guys I hope you are Okay ...I just want to know how to add a property to Screen 1 :thinking: :heart:

1 Like

which type of property do you want to add?

  1. designer property
  2. block property
1 Like

You will do this in the Form.java file.

appinventor/components/src/com/google/appinventor/components/runtime/Form.java

2 Likes

Designer property :blush:

1 Like
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN,
      defaultValue = "default value")
  @SimpleProperty
  public void PropertyName(/*Params goes here*/) {
     // your code 
  }

here is the example of the simple designer property if you don't understand anything then please ask.

2 Likes

Thank you My friend :heart:

2 Likes

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