Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Horizontal list view in vertical scroll view?

Tags:

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.

like image 673
Basbous Avatar asked Aug 02 '12 10:08

Basbous


2 Answers

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.

like image 39
Ray 'user1578904' Avatar answered Sep 27 '22 02:09

Ray 'user1578904'


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);

}
like image 193
ade sueb Avatar answered Sep 23 '22 02:09

ade sueb