Created
June 28, 2018 15:40
-
-
Save PauloLinhares09/151ce76da362e99daa676d65b738c380 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
class CollapseActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_collapse) | |
setSupportActionBar(toolbar) | |
//Seta o título na actionbar e depois muda a cor para transparente quando o AppBar estiver expandido | |
collapsing_toolbar_layout.title = "Ronaldo Fenômeno" | |
collapsing_toolbar_layout.setExpandedTitleColor(resources.getColor(android.R.color.transparent)) | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment