View view = (View) findViewById(getResources().getIdentifier(<dynamically_generated_view_id>, "id", activity.getPackageName()));
Note:
Instead of "id" you could use, for instance, "drawable" and obtain a resource ID for a drawable given a string.
No hay comentarios:
Publicar un comentario