Re: [android-developers] Re: Difference between fragment add and replace

2012-01-10 Thread TreKing
On Tue, Jan 10, 2012 at 6:44 AM, Doug Gordon wrote: > Yes I did, and it is not clear why I would want to use one vs. the > other in many cases since the end behavior seems to be the same. > In your particular use case perhaps. I have not used Fragments yet, but reading the description implies to

[android-developers] Re: Difference between fragment add and replace

2012-01-10 Thread Doug Gordon
Yes I did, and it is not clear why I would want to use one vs. the other in many cases since the end behavior seems to be the same. The "add" method also implies that you're adding the fragment "to the activity", whereas replace talks about removing and adding "to the container". In general, the A