Re: [android-developers] HorizontalListView inside a VerticalListView

2012-02-03 Thread Arnaud VALLAT
Hello,

you need to modify HorizontalListView and do this in the onScroll method:

final ViewParent viewParent = getParent();

if (viewParent != null) {

 viewParent.requestDisallowInterceptTouchEvent(true);

 }


Rno

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] HorizontalListView inside a VerticalListView

2011-10-11 Thread Christopher Van Kirk
My guess is that the reason you're seeing that effect is that your 
vertical list view comes before the horizontal one in the touch event 
sink chain. I think that once a touch event handler returns true no 
further processing on that event happens. Try making your primary view 
horizontal, and your secondary view vertical and see if that helps.


Failing that, you'll probably have to handle the touch events yourself.


On 10/11/2011 11:01 PM, Marcos Paulo wrote:

Hi guys,

I need to do a HorizontalScrollView inside a listview like we have
in pulse app.

I found this guy that made an implementation of a horizontal listview 
- http://www.dev-smart.com/archives/34
So I took his HorizontalListView and added it to a ListView, and it 
worked, I could do something like pulse app but
there is a problem. When I am scrolling horizontally, when I 
accidentally scroll vertically, the HorizontalListView stops
scrolling and the VerticalListView takes place... I need to block the 
VerticalListView when I am scrolling horizontally and

vice-versa.

Can someone help me please? Pulse app works like that so I know it's 
possible.


Many Thanks,
--
*Marcos Paulo Damasceno *
Software Developer.
@_marcospaulo _
http://devforfun.com/
http://github.com/marcospaulo
http://www.delicious.com/marcospaulo_

--
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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] HorizontalListView inside a VerticalListView

2011-10-11 Thread Marcos Paulo
Unfortunately it didn't work.

I could handle the enableing and disableing of the scroll with events but
how do I do this programmatically?

I can't find a way to disable the scroll at programming level.
--
*Marcos Paulo Damasceno*
Software Developer.
@_marcospaulo_
http://devforfun.com/
http://github.com/marcospaulo
http://www.delicious.com/marcospaulo_



2011/10/11 Christopher Van Kirk christopher.vank...@gmail.com

  My guess is that the reason you're seeing that effect is that your
 vertical list view comes before the horizontal one in the touch event sink
 chain. I think that once a touch event handler returns true no further
 processing on that event happens. Try making your primary view horizontal,
 and your secondary view vertical and see if that helps.

 Failing that, you'll probably have to handle the touch events yourself.



 On 10/11/2011 11:01 PM, Marcos Paulo wrote:

 Hi guys,

  I need to do a HorizontalScrollView inside a listview like we have
 in pulse app.

  I found this guy that made an implementation of a horizontal listview -
 http://www.dev-smart.com/archives/34
 So I took his HorizontalListView and added it to a ListView, and it worked,
 I could do something like pulse app but
 there is a problem. When I am scrolling horizontally, when I accidentally
 scroll vertically, the HorizontalListView stops
 scrolling and the VerticalListView takes place... I need to block the
 VerticalListView when I am scrolling horizontally and
 vice-versa.

  Can someone help me please? Pulse app works like that so I know it's
 possible.

  Many Thanks,
 --
  * Marcos Paulo Damasceno *
  Software Developer.
  @_marcospaulo _
  http://devforfun.com/
 http://github.com/marcospaulo
  http://www.delicious.com/marcospaulo_

  --
 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en