Android: Horizontal list view in vertical scroll view?

前端 未结 3 2010
悲哀的现实
悲哀的现实 2020-12-28 16:30

I want to make the same implementation a pulse application.

Horizontal list view inside a vertical list view.

相关标签:
3条回答
  • 2020-12-28 16:44

    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. :)

    0 讨论(0)
  • 2020-12-28 16:45

    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.

    0 讨论(0)
  • 2020-12-28 17:00

    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);
    
    }
    
    0 讨论(0)
提交回复
热议问题