I am developing an enterprise application in android which has more than 50 screens, so i must look deep into memory management. I am confused about designing it’s user iterface in xml or by code. What is the best practice here to have better memory management?
I am developing an enterprise application in android which has more than 50 screens,
Share
if you have 50 screens then I suggest to use Reuse UI Components In android..
But
you can do it both way But when need same view more than one time then add view using programmatically.or sometimes you need add view dynamically then use programmatically.You can use xml layout and programmatically in one application.
both are best practice related to memory management and no one take more memory if you do interface using xml or code.