As the standard FragmentStatePagerAdapter class of android does not provide any methods to retrieve the already instantiated instance of the fragment in discussion. Being a developer the first challenge I faced was getting an instance of the already instantiated fragment in the PagerAdapter. But when implementing tabs in Android, things are not that simple. To perform an Android activity to fragment communication, the standard suggested way is to get the fragment instance and call public methods of that fragment directly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |