Im trying to set the Title by code using this method
final CollapsingToolbarLayout collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.toolbar_layout);
collapsingToolbarLayout.setTitle(title);
But im getting this error
ClassCastException: net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout cannot be cast to android.support.design.widget.CollapsingToolbarLayout
I also tried MultilineCollapsingToolbarLayoutbut that doesnt work
How do i access multilinecollapsingtoolbar.CollapsingToolbarLayout to set the Title by code?
Hi, thank you for you library
Im trying to set the Title by code using this method
But im getting this error
ClassCastException: net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout cannot be cast to android.support.design.widget.CollapsingToolbarLayout
I also tried
MultilineCollapsingToolbarLayout
but that doesnt workHow do i access
multilinecollapsingtoolbar.CollapsingToolbarLayout
to set the Title by code?Thanks