I have a main activity and it shows (with setContentView) different xml layout based on user action so main activity does not know witch layout is set and cannot access them by findbyid.
The task of my main activity is just read all objects in xml file like TextView, button,... and save the id and value of them in a hash table to use in the different class in application framework. The class in the framework knows those objects and can work with them.
the question is how can I get all object in the view and have access to their id and value?