lundi 25 mai 2015

How can I create a list of all Android ui components programmatically? e.g. TextView, ImageView etc

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