Put the toolbar, but I do not know how to programmatically change it. I wanted to try using getSupportActionBar (), but there was no such method by which it was possible to change the color
toolbar XML
<android.support.v7.widget.Toolbar android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/toolbar" />
toolbar set in the onCreate method
toolbar = (Toolbar) findViewById(R.id.toolbar); if (toolbar != null) { setSupportActionBar(toolbar); }
setTheme()
- no news