Some Android Developer may not know well of Linearlayout . This may help you to know sth about the gravity of its chilren;android
-------------------CONET ------------------ide
1) wahts the diffrence between "gravity " android "layout_gravity"?this
gravity: is sth to itself; this tell how you want its content to layout; Its see a TextView ; provided its wd is 200; and its content (text ) measured wd is 150; This Gravity setting will make its text align left ? top? center ? etc...it
layout_gravity: is sth to its parent ; this tells it;s parent how it wants to be layed out; Again this TextView in its parent Linearlayout; Provided parent wd is 300, ht is 400;io
2) WHY Does my layout_gravity not work?event
layout_gravity is sth relevent to its parent orentation;
layout
If its orentation is horizontal , top , btm , center_vertical will be effective;top
else if is vertical : left , right ,center_horizontal is effective;di
----------------------END--------------------------vi
THAT ALL FOR TODAY ! MY POOR UBUNTU INPUT METHOD!!!