On Mon, Apr 4, 2011 at 3:54 PM, Jake Colman <[email protected]> wrote:

>
>
> No takers on this question? Any reason why word-wrapped text won't honor
> the layout_centerInParent directive?
>
>
I haven't used centerInParent and I'm not at my desk to try, but that sounds
like it's trying to center your TextView inside the parent Relative
Layout... Not center the text in the TextView. Try android:gravity="center".


http://developer.android.com/reference/android/widget/TextView.html#attr_android:gravity

Not sure if it'll work when your text wraps (since your text isn't "smaller
than the view").

--PhillW

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to