tags:

views:

75

answers:

1

If I just make a standard TextView with the Justification set to Center, it looks something like this:

Center-Justified TextView

If I also want to center the text vertically, as well as horizontally, how do I do this?

+1  A: 

TextViews are normally meant for a large amount of text that the user can edit. As such it may grow too large and have to scroll, hence the difficulty with vertical centering.

If you're only using it to display a message that doesn't have to be edited, you might try Gtk.Label instead, which you can center vertically.

ptomato
I see, I'm taking your advice for now and using Labels rather than TextViews. Eventually, though, I'd like for them to be able to be edited in-place. Hopefully there is some solution for this.
Matthew