I have some simple questions for Android Users.
-
If I use
Single XMLforMultiple Activity, What issues might come ?? -
How it ll help in Application PERFORMANCE, if we use this kind of approach ??
for example : If have same XML layouts A,B,C for A,B,C Activity, Instead of using multiple layout I want to use only single Layout i.e. A XML Layout for A,B,C Activity.
Note: I have tried this, works fine. But I want to know that any issues or problem using this kind of approach. Gone through some sites but din’t get cleared picture
Suggestions or help will be appreciated.
Many Thanks ..!!
There’s no problem at all. The XML will get inflated as separate instances for each Activity.
Note that because they are separate instances, any data on those forms won’t be shared between them, though; you would need to pass data between activities as extras on an intent or through a persistence mechanism (databases, shared prefs, etc)