Created
May 28, 2015 05:18
-
-
Save dingbuoyi/113a0ca567b1efc810e8 to your computer and use it in GitHub Desktop.
android tool bar
This file contains hidden or 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
private void initToolBar() { | |
toolbar = (Toolbar) findViewById(R.id.my_awesome_toolbar); | |
// App Logo | |
//toolbar.setLogo(R.mipmap.ic_launcher); | |
// Title | |
toolbar.setTitle("Login"); | |
// Sub Title | |
//toolbar.setSubtitle("Sub title"); | |
//toolbar.setTitleTextColor(getResources().getColor(R.color.white)); | |
//Navigation Icon | |
//toolbar.setNavigationIcon(R.drawable.back); | |
toolbar.setNavigationOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
animationReverse(); | |
} | |
}); | |
//toolbar.setVisibility(View.GONE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment