给 AppBarLayout 添加 OnOffsetChangedListener
private void setAppBarLayoutState() {
onOffsetChangedListener = new AppBarLayout.OnOffsetChangedListener() {
private State state;
@Override
public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
if (verticalOffset == 0) {