Thursday, April 4, 2013

[android-developers] Best strategy for Fragment and multi-versionning

Hello,
I have a question about Fragment and Multi-versionning (especially in the dynamic case).
What is the best strategy to use:
1)Use native fragment when it's possible:
=>Use the parrellel activity pattern, native fragment for post-HoneyComb and librairy support Fragment for versions under HoneyComb. That implies code duplication for fragments, activity because there is no interface between fragment from support librairy and native fragments.
2)Use only Fragment from support-librairy.
=>No code duplication, every think is smooth but never use the native fragment.

Some of experts I talk about said solution 2 is the one to implement, others said solution 1 is the one to use.
And what about you, what is your point of view on that topic?

Kind regards
Mathias Seguy
Android2EE
Android Expertise-Training-Consulting

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment