My requirement is as follows:
I have two modes of my application in first mode it will open normally but in second mode I have to re size all the screens to a fixed dimension. I am able to do so by writing code in each activity before calling setContentView() method, what I want to know is, Does there any optimal way of doing the same i.e writing the code at single place or anything else so that I can optimize the code.
I am looking for it because in second mode I will set some parameters, And my application then required to check the parameter in activities individually which in terms effect my performance, that's why I want something which runs at starting of my app and re size all the activities view.
any help would be greatly appreciated!!
Edit:
Can we specify the dimensions in the attrs.xml and dynamically set the specified theme?