Below is how i am navigating
from fragment A
to fragment B
using android navigation
@Override
public void onClick(View view) {
int viewId = view.getId();
if (viewId == R.id.btn_proceed) {
Navigation.findNavController(view).navigate(R.id.fragmentB);
}
}
I would like to achieve returning of results from fragmentB
to fragmentA
where for example fragmentB has an EditText that a user keys in text and is returned to fragmentA and set to TextView using android architecture navigation components