On Fri, Apr 25, 2014 at 2:34 AM, ANKUR GOEL <[email protected]> wrote:
> Here when i click layout 4 the view will expand and the contents are going > out of screen , > so i want to move the contents to be fit on screen > > Say layout shud move up when expanded . > I don't know what a "LinerarView" is, but you can try figuring out the y position of that view that expanded and then using: http://developer.android.com/reference/android/widget/ScrollView.html#smoothScrollTo%28int,%20int%29 Or use an expandable list view, which seems like what you've described and does the whole "scroll to expanded section" thing automatically. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

