mercredi 16 avril 2014

Styling NavigatoinView Title

Hi, I have a NavigationView with a NavBar. I need to be able to set the style of the title either by inline style AND css (optionally). I won't go into why exactly, it'd take far too long.

Anyway, I've tried setting via css using the following...

navView.setStyleHtmlContent(true);

navView.setStyleHtmlStyle('myClass');

doesn't seem to do anything unfortunately. Also, I can't find any way good way to apply an Inline style. It is possible to have the title wrapped in a styled div, but that feels like a bit of a hack, and it does not work anyway if a form being pushed onto the NavView does not have a title formatted in the same way.

Ideally there would be a setTitleCss or setTitleStyle method. I find also that the title moves off-center (to the right) if a form is pushed onto the NavView. Surely there has to be a way to style the NavView so that the title remains consistently styled?

Thanks,

Derek Brennan





Aucun commentaire:

Enregistrer un commentaire