1

I have the android xml layout using DroidDraw : link : https://docs.google.com/document/d/1L3QJVwI9Znmeu1yANJXhDcZGFR70587d4oznu0hrZCw/edit?usp=sharing0

enter image description here

I need to bottom align the last Textview (Yellow one as indicated in the print screen).

i.e.

I need this :

enter image description here

Al2x
  • 1,001
  • 5
  • 26
  • 37
  • we need all the parameters of your `TextView` to give you a 100% correct answer. Otherwise its guessing – Bartek Lipinski Mar 05 '15 at 12:54
  • possible duplicate of [How to align views at the bottom of the screen?](http://stackoverflow.com/questions/2386866/how-to-align-views-at-the-bottom-of-the-screen) – Aks Mar 05 '15 at 12:56

4 Answers4

1

Try using

android:alignParentBottom="true"

If I see correctly that the parent ViewGroup of your TextView is a RelativeLayout

harrane
  • 959
  • 11
  • 24
  • Ive paste the code for the xml https://drive.google.com/open?id=1L3QJVwI9Znmeu1yANJXhDcZGFR70587d4oznu0hrZCw&authuser=0 – Al2x Mar 05 '15 at 13:50
  • try now please : https://docs.google.com/document/d/1L3QJVwI9Znmeu1yANJXhDcZGFR70587d4oznu0hrZCw/edit?usp=sharing – Al2x Mar 05 '15 at 17:20
  • Repalce android:layout_gravity="bottom | left" with android:gravity="bottom" in your LinearLayout ( id/widget73 ) – harrane Mar 05 '15 at 17:23
0

Set the parent relative layout property to:

android:layout_gravity = "bottom | left" 
actual_kangaroo
  • 5,971
  • 2
  • 31
  • 45
Akash
  • 681
  • 3
  • 17
0

In Relative layout use:

    android:alignParentBottom="true" 

and In Linear layout use:

    android:layout_weight="1.0"
    android:gravity="bottom|right"
Ram
  • 3,092
  • 10
  • 40
  • 56
Raj Patel
  • 191
  • 1
  • 4
0

This post did the trick.

stackOverflow link

I needed to implement layout_weight on my layouts. Basically defining weights for header, content and footer

Community
  • 1
  • 1
Al2x
  • 1,001
  • 5
  • 26
  • 37