I'm making an app where, so far, the user selects a place through the Google Places API, then a new scrolling activity appears and gives details about the place. How can I change the title of the scrolling activity based on the name of the place the user chooses?
CollapsingToolbarLayout toolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.toolbar_layout);
toolbarLayout.setTitle("New Title.");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With