💡 Android Tip

When you navigate from one fragment to another. the current fragment won’t be destroyed. It will just recreate the views.

so don't lazy initialize a variable with a view reference.

The variable will have the old view reference, not the new one.
So it may cause issues, especially using custom views.

#android #androiddev #androidengineer #androidstudio