Ok so I’ve read the Custom Dialog explanation on the And Dev website
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
It show’s you how to make a custom dialog, but not how to customise the title!
Basically my title is too long and I want it to scroll (like textview) or better still have a ‘marquee’ effect i think it’s called.
Or if I can’t make it scroll, give it more space to wrap onto more lines!
Any ideas, I don’t hold out much hope as it’s not on android.dev 🙁
Customizig window (and thus also dialog) titles can be done by requesting the window feature CUSTOM_TITLE, which must be done before setContentView.
So in your Dialog / Activity subclasses onCreate(), call the following:
Then, after your setContentView, do this:
The layout can generally contain anything you want.
For a marquee text control. e.g. do this:
layout/custom_title.xml:
Due to some constraints with the marquee feature, the text view has to be made focusable and it will only be scrolling when focused (which it initially should be).