Dears, I think the settings you made means the content of that textview is aligned at horizontal_center and top/bottom within that textview, not within the whole screen.If you want to make the text view aligned at top or bottom within the whole screen, you might try to use other kind of layout manager.
B.R. Augustin. 2009/3/11 Rui Vieira <ruidevie...@googlemail.com> > > Hi everyone, > > Noob question: > > I was trying to create a layout with a text view aligned to the top > and another aligned to the bottom. > After reading the layout dev docs, I wrote the following: > > <?xml version="1.0" encoding="UTF-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:background="@drawable/bg"> > <TextView > android:id="@+id/text1" > android:layout_height="wrap_content" > android:layout_width="fill_parent" > android:textSize="30px" > android:textColor="#000000" > android:gravity="center_horizontal|top" > android:text="Top!"/> > <TextView > android:id="@+id/text2" > android:layout_height="wrap_content" > android:layout_width="fill_parent" > android:textSize="30px" > android:textColor="#000000" > android:gravity="center_horizontal|bottom" > android:text="Bottom!"/> > </LinearLayout> > > ... but it doesn't work... > Can someone give me a tip? > > Thanks in advance. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---