I have CoordinatorLayoutwith AppBarLayoutand Toolbarinside it:
CoordinatorLayout
- AppBarLayout
- Toolbar
animateLayoutChanges=true
Nice. And I use this code to hide / show back arrow button:
private void setBackArrowState(boolean state) {
actionBar.setDisplayHomeAsUpEnabled(state);
actionBar.setDisplayShowHomeEnabled(state);
}
As a result, I got the result:

When to back arrow buttonhide, the titlenormal position is not animated on it. How can I solve it?
source
share