当我点击按钮
时,如何编辑我的actionBar标题getSupportActionBar().setTitle("dummy title"); // this is working
button.setOnClickListener(v->{
Log.d("TAG", "click"); // this is working
getSupportActionBar().setTitle(title); // not working
setTitle(title); // not working
mToolbar.setTitle(title); // not working
});
如果有人能告诉我我做错了什么,那就太棒了