布局是一个drawerLayout,如何使toolbar上的按钮在不同的fragment中相应不同的刷新事件?
闭关修行中......
Use your fragmentmanager to find the fragment on the top of the current stack, and then make a judgment
Set tags for each fragment
getSupportFragmentManager().beginTransaction().add(R.id.container, currentFragment,tag).commit()
In the click event, handle different fragments through Tag, and then handle the refresh event
Use your fragmentmanager to find the fragment on the top of the current stack, and then make a judgment
Set tags for each fragment
In the click event, handle different fragments through Tag, and then handle the refresh event