Last active
March 8, 2018 22:09
-
-
Save ataulm/d65059e914d1b1de8e8e6243c8fcb737 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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