ActionBar dynamic text size

0

How to put the text in the actionbar with dynamic size? I need to set in different sizes of text and have to frame dynamically.

public void setarTituloActionBar(String nome){
        setTitle(nome);

    }

The set is 100%.

    
asked by anonymous 23.01.2017 / 13:01

1 answer

0

I recommend you to separate the two texts in title and subtitle

 public void setTitles(String titulo, String subtitulo){
    toolbar.setTitle(titulo);
    toolbar.setSubtitle(subtitulo);

}

setTitles("Tocando","Nome Grande de música");
    
23.01.2017 / 14:34