Auriwield Auriwield - 1 year ago 83
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download