Created
June 26, 2020 18:59
-
-
Save thilojaeggi/9d717ad66bddec1a4b0c7d38b6901e3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String getCurrentFragment(){ | |
Fragment visiblefragment = getSupportFragmentManager() | |
.findFragmentById(R.id.newusercontainer); | |
String[] currentFragment = visiblefragment.toString().split("\\{"); | |
return currentFragment[0].toString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows you to get the FragmentName currently displayed in a certain container.