I'm using a custom titlebar created for my own use in the app i'm making, containing the title and some buttons. However occasionally I get titles that are slightly too long for the titlebar, where the titles are out of my control.
Currently setting the titlebar's height through "android:windowTitleSize="70dp"" in the titlebar's theme, but is there a way to dynamically change it if I can detect that the incoming title is too long and falls over into two lines?