Created
August 14, 2015 10:25
-
-
Save miva2/a0cf8b7f50d5132df1d2 to your computer and use it in GitHub Desktop.
toolbar bullshit
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
android.support.v7.app.ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar(); | |
Toolbar toolBar = (Toolbar) getActivity().findViewById(R.id.toolbar); | |
Log.d("DEBUG VERSIONFRAGMENT", "Actionbar: " + actionBar); | |
if (toolBar != null) { | |
toolBar.setBackgroundColor(getResources().getColor(R.color.red_background)); | |
toolBar.setTitle("TEMPORARY TITLE"); | |
toolBar.setTitleTextColor(R.color.white); | |
Log.d("DEBUGG VERSIONFRAGMENT", (String) toolBar.getTitle()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment