Auriwield Auriwield - 3 months ago 18
Android Question

android toolbar decrease padding between title an subtitle

Does anybody know how to do that ?

I use AppCompatActivity toolbar and setting title and subtitle through methods


toolbar.setTitle("Title");
toolbar.setSubtitle("Subtitle");

Answer

One way to do this is to disable toolbar title display and create your own toolbar layout.

getSupportActionBar().setDisplayShowTitleEnabled(false);

This way you will have full control over paddings, style etc.