Is this view inside a RelativeLayout or is it in a LinearLayout? android:layout_alignBottom is used align the bottom edge of your view with anchor view within RelativeLayout whereas android:layout_gravity is used for LinearLayout. You could also use android:layout_alignParentBottom within a RelativeLayout to align your view at the bottom of the parent view. Please see: http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html
On Aug 14, 4:06 pm, Dolphin <amicit...@gmail.com> wrote: > I'm trying to align a button to the bottom of the frame and can't make > it happen. > I tried: > 1.android:layout_alignBottom > or > 2. android:layout_gravity="bottom" > (this is not a landscape view) > > The button keeps apearing on the Top margins of the main frame. > > What do I miss ? > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---