Yes. I try putting the textview but not success so i showing then plain buttons only. Nice, I will try your suggesting right away :)
On Jan 5, 9:31 am, Mark Murphy <[email protected]> wrote: > There is no TextView in your layout. > > The two main approaches for putting some widget "at the bottom last > line of the screen" are: > > 1. Use a LinearLayout parent for the widget and the other stuff. Use > android:layout_height="0px" and android:layout_weight="1" for the > other stuff. Use a regular android:layout_height for the widget and no > android:layout_weight for it. > > 2. Use a RelativeLayout parent for the widget and the other stuff. > Define the widget as having android:layout_alignParentBottom="true". > Define the other stuff as having android:layout_alignParentTop="true" > and android:layout_above="...", where the ... is the ID of the widget. > > > > > > > > > > On Tue, Jan 4, 2011 at 8:22 PM, Mystique <[email protected]> wrote: > > Hi, > > > I want to display a textview at the bottom last line of the screen but > > I have been trying without success. What is the correct way to display > > it? > > > Many thanks, > > CJ > > > -- code -- > > <?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="@color/desktop" > > android:gravity="center"> > > <Button > > android:id="@+id/button1" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/button1"/> > > <Button > > android:id="@+id/button2" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/button2"/> > > </LinearLayout> > > > -- > > 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 > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- 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

