I'm creating a program, and within which I'm needing to create a list of all the different Android components but rather than figuring out and typing the list by hand. I'd like to figure out programmatically whether I could accomplish this?
Components[] = {"TextView", "ImageView", "RelativeLayout", "LinearLayout", "Random", "DecimalFormat ...
Similarly I would like to programmatically create a list of all the different Data-Types e.g. Int, String, ArrayList etc.
DataTypes[] = {"Int", "String", "Object", "Double", "Char", "Boolean ...
How can I accomplish this? Thanks
Aucun commentaire:
Enregistrer un commentaire