I previously asked a question that I still have not been able to solve:
http://stackoverflow.com/questions/3126347/android-relativelayout-how-to-alignparentbottom-when-wrapped-in-a-scrollview
What I am trying to do is align a view to the bottom of the screen, using either a RelativeLayout or LinearLayout, and then wrap that layout in a scrollview to permit scrolling when necessary (for changes to landscape orientation or on small screen devices).
To date, what I find is that anything aligned to parent bottom works great as long at the bottom is visible…but if the bottom is below the scroll, the view that is aligned parent bottom jumps up to the top.
This seems like a very common design for ads that appear on the bottom, so I would think that this is possible. Is it?
I don’t know if there is ONE method to do that, but here is a trick I use to do this kind of stuff. If this is what you want :
alt text http://img594.imageshack.us/img594/3419/scrollviewandads.png
Here is my code for it :
I hope this matches your hopes 😉 It just a trick with margins.