I am new to extension development, and I don't how how to add designer properties for the extension, can anyone show me some example please?
See app inventor sources
1 Like
I don't understand, any examples?
Look at this :
1 Like
Take a look at "How to add a component" §4d (Properties):
See also the DesignerProperty annotation documentation here:
4 Likes
First step:-
import
com.google.appinventor.components.annotations.DesignerProperty
com.google.appinventor.components.annotations.SimpleProperty
Second step ( string example) :-
@DesignerProperty(editorType = "string")
@SimpleProperty
public void YourName(String Name) {
// Your code.
}
2 Likes
Rather than hard-coding the editor type as a string, import com.google.appinventor.components.common.PropertyTypeConstants and use the predefined constants defined therein.
3 Likes