I have this xml -- <LinearLayout android:orientation="horizontal" android:layout_centerVertical="true" android:layout_width="fill_parent" android:layout_height="35px">
<ImageButton android:id="@+id/Btn1" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/btn1" android:background="@color/transparent"/> <TextView android:id="@+id/Text1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_centerHorizontal="true" android:background="@color/red" android:text="Text1"/> </LinearLayout> The text will not center. What am I doing wrong. tia. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---