DesarrolloAntonio / FragmentTransactionExtended

FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.
Apache License 2.0
1.08k stars 233 forks source link

Tag support added to FragmentTransactionExtended class #9

Open brandonbryan12 opened 8 years ago

brandonbryan12 commented 8 years ago

There was no way to add tags to the fragment being placed in the container during a FragmentTransactionExtended transaction.

I created a new constructor that accepts a tag as a String and sets a member variable to it. In the original constructor, I set the member tag to null.

I changed the fragmentTransaction.add(containerId, fragment) method to fragmentTransaction.add(containerId, fragment, tag) This is flexible, as the fragmentTransaction.add(containerId, fragment) method is actually fragmentTransaction.add(containerId, fragment, null)