How-to: Best practice for instantiating a new Android Fragment #fix #it #programming
How-to: Best practice for instantiating a new Android Fragment #fix #it #programming
Best practice for instantiating a new Android Fragment
I am not sure how sensible this question is so I apologies up front however I know from a developer meet up tonight that I am not alone on this one.
So, I have seen two general practices to instantiate a new Fragment in an application:
Fragment newFragment = new MyFragment();
and
Fragment newFragment = MyFragment.newInstance();
The second…
View On WordPress










