I have a button in my screen, I need to pass boolean value while click on the button.
Here while click on the button it starts a fragment and opens an another screen there I need to show only a button.
In the same way, the same button needs to show all the screen view If I navigate from an another fragment.
Can I able to send a boolean value along this and how it will be retrieved in another fragment?
case R.id.tv_send:
fragment = UserFragment.newInstance(this, mModel);
break;