On Fri, Nov 21, 2014 at 7:10 PM, dashman <erjdri...@gmail.com> wrote:
> How can I center text in pre api 17. http://developer.android.com/reference/android/view/Gravity.html#CENTER_HORIZONTAL You can do * gravity=CENTER_HORIZONTAL* and *layout_width=MATCH_PARENT*, where the text is centered within the TextView bounds, something like: || TEXT || Or *layout_gravity=CENTER_HORIZONTAL* and *layout_width=WRAP_CONTENT*, where the TextView is centered within its parent's bounds, something like: | |TEXT| | ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.