How can I set a Fragment\'s Id so that I can use getSupportFragmentManager().findFragmentById(R.id.--)?
Fragment
Id
getSupportFragmentManager().findFragmentById(R.id.--)
In addition to Tom's answer, replace method also supports the fragment tag, in addition to add method.