views:

19

answers:

0

I'm trying to create a layout similar to the browser application. Basically, I want to have a LinearLayout on top of a WebView in such a way that when the user starts scrolling the WebView, the LinearLayout scrolls away, too (like the address bar in the browser app).

I know I could have the two elements inside a LinearLayout inside a ScrollView (my current solution), but that just doesn't seem right. And I'm sure the browser app doesn't use this solution, because if you look at it, you'll see that the scroll bar is only as tall as the WebView itself, it doesn't cover the address bar, too (which is what it would do if they had used a ScrollView to contain both).

I've been up and down the docs and Google for a while now and I can't find a solution. Has anyone here found one?