Closed KDevvv closed 7 years ago
Im trying to use yours library, but I need to set the tittle dynamiclly. Is there a way to do it?
CollapsingToolbarLayout mCollapsingToolbarLayout=(CollapsingToolbarLayout) findViewById(R.id.collapsing); mCollapsingToolbarLayout.setTitle(s);
That lines make a ClassCastException of course.
In your demo file you setup the tittle by paramter aapp:title="@string/title", but as far as I know @string values are immutable
You can just import net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout;, see #18
import net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout;
Im trying to use yours library, but I need to set the tittle dynamiclly. Is there a way to do it?
That lines make a ClassCastException of course.
In your demo file you setup the tittle by paramter aapp:title="@string/title", but as far as I know @string values are immutable