Hi All, In my application, I am displaying some text in textview on tabs. I have customized tabs view. because of the text length it is wrapping in two line which is fine with me.
But this text is getting aligned with the left and no more in center of the tab view. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@layout/mailbox_tab_bg_state" android:gravity="center"> <TextView android:id="@+id/tabTxt" android:text="list view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@layout/tab_text_color_selector"> </TextView> </LinearLayout> I tried to set text view's gravity property as center then text in two line get in center but it wasn't left aligned with respect to each other. I wish that lines should be in center of the tab view and left aligned with themselves. Thanks & Regards, Manish Garg -- 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