First of all, sorry for my language.. Thanks jean for your reply.
Somehow solved the issue. I gave proper weight to the 3 layouts and now displaying all 3. Only the middle layout is scrolling, other 2 are fixed and displaying. Nithin On Dec 23, 3:30 am, jean-guys <[email protected]> wrote: > First off I apologize but I'm having a hard time understanding your > intent based on your language, but I'll try to help with what I > understand. > > The android:gravity attribute affects thelayoutof content within the > view, not how a view is laid out within alayoutmanager. It sounds > like what you really want is android:layout_gravity. However this > attribute is not applicable to LinearLayout, mostly used (in my > experience) with FrameLayouts. > > If you're using a LinearLayout with orientation vertical and three sub- > views, as long as any of the sub-views declare > layout_height=fill_parent the views should fill the available space > and, as a result, the third view should be on the bottom. I am > guessing you'd like the center view to fill_parent. > > With a RelativeLayout it sounds like you want the > android:layout_alignParentBottom attribute for the third view. > > Lastly, I've given you the XML attributes, you'll need to look up the > Java API equivalents, but I highly recommend using XML layouts if at > all possible. > > Hope this helps. > Jean-Guy > > On Dec 22, 8:06 am, Nithin <[email protected]> wrote: > > > Hi, > > > I have three layouts in my screen. One topLayout, bottomLayout and the > > centerLayout. CenterLayout is a scrollablelayout, in such a way that > > the center part is scrollable and top and bottomLayout are filxed. I > > am using linearLayout. Its all working except the bottomlayout. For > > bottomlayout, i put in the layoutParams gravity=BOTTOM. BUt its not > > working. > > > I tried with relativeLayout also, in that the scrollable part is not > > working fine.Scrollbar as to be at the edge of the screen. In > > relative, its coming after view. I tried with width=FILL_PARENT. > > > I am doing all this in java code, not in xml. > > > Any suggestions is much appreciated. > > > Nithin -- 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

