Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public interface AppBarExpander {
void expandAppBar();
void collapseAppBar();
}
public class SeasonsActivity extends AppCompatActivity implements AppBarExpander {
...
@Override
public void expandAppBar() {
boolean animate = true;
appBarLayout.setExpanded(true, animate);
}
@Override
public void collapseAppBar() {
boolean animate = true;
appBarLayout.setExpanded(false, animate);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.