Thursday, April 12, 2012

Re: [android-developers] How to superpose 2 ScrollableViews

One thing I did to get a similar (though not identical) effect is to put the navbar and the main view in a frame layout.  The navbar pops out from the left side and shows up on top of the main view.  After making a selection it hides itself again.

This doesn't do EXACTLY what you are looking for but it provides the same kind of functionality and isn't that hard to implement.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Apr 12, 2012 at 2:14 AM, Amokrane <amokrane.chentir@gmail.com> wrote:
Hi everyone,

In order to implement a navigation bar ala Facebook I have the following Layout

So the basic idea is that when I want to open the navbar I just shift the TopLayer to the right and the navbar will be revealed.
Now this works well and I can interact with the navbar's ListView in order to navigate through the application, as far as the view that gets injected inside the TopLayer isn't a ScrollableView (like another ListView, a ScrollView or a WebView).

For instance, when the TopLayer is a WebView instance, I can't scroll and interact with the navbar's ListView because it is the WebView that gets scrolled (althoough I shifted it to the right).

I guess it's not trivial to superpose many ScrollableView's but I hope there are hacks to overcome these issues. 

I have been looking for a solution for almost a week now (including posting it on StackOverflow) but I haven't found anything relevant. I'll really appreciate any help regarding this!

Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment