21

I want to make the same implementation a pulse application.

Horizontal list view inside a vertical list view.

enter image description here

i tried this project for horizontal list view, but when i am trying to scroll horizontal the vertical scroll active and the list is goes up and down. how can i prevent this issues.

Basbous
  • 3,927
  • 4
  • 34
  • 62
  • Hey, have you found a solution to this problem? I'm implementing almost the exact same thing and I'm having the same issue. – Iraklis Jan 12 '13 at 16:21
  • 1
    This is what you are looking for : http://stackoverflow.com/questions/2646028/android-horizontalscrollview-within-scrollview-touch-handling – Iraklis Jan 12 '13 at 16:36
  • http://stackoverflow.com/questions/24107433/view-pager-in-listview – Anitha Mar 25 '15 at 10:28

3 Answers3

22

it's work on my app...

just like pulse app... horizontallistview inside vertical listview

this is the solution...

just put this code in u'r onscroll of HorizontalListview class...

ViewParent viewParent = getParent();

if (viewParent != null) {

    viewParent.requestDisallowInterceptTouchEvent(true);

}
ade sueb
  • 261
  • 2
  • 7
  • I have horizontal listview in vertical listview. And this one works good with mine as well. – Darpan Nov 10 '14 at 15:42
3

It would be much easier if you paste your piece of code with your question, allowing to see why it goes wrong. My best guess without this information is to check you usage of fill_parent vs wrap_content.

-1

i think you should use some horizontal scrollviews in a vertical scrollview. and in each horizontal scrollview, you can give listview, gridview, etc... if you want. I think it's better solution for this problem. :)

Quoc Truong
  • 545
  • 4
  • 9
  • I am using Vertical scroll view with four horizontal list view. – Basbous Aug 02 '12 at 10:52
  • ya. you can replace horizontal listview by horizontal scroll view, and in each horizontal scroll view, you can put horizontal list view to that. – Quoc Truong Aug 02 '12 at 10:54