How to use listview inside scrollview?

BhautikBhautik ✭✭✭Member ✭✭✭

Hello,
Is there any way to use listview inside scrollview.?

P.S :- In my application there is one scrollview which is covered whole page so in landscape mode page can be scrolling properly and I have one listview at bottom of the screen.But, due to scrollview my listview is not working properly.If I removed my main scrollview then listview is working as expected but in landscape mode page is not scrolling.So is there any way to overcome this scenario?

Answers

  • AlessandroCaliaroAlessandroCaliaro ✭✭✭✭✭ ITMember ✭✭✭✭✭

    no, you can't add a listview to a scrollview

  • BhautikBhautik ✭✭✭ Member ✭✭✭

    @AlessandroCaliaro said:
    no, you can't add a listview to a scrollview

    Ya,that I know its not possible.But is there any hack to achieve this scenario.

  • AlessandroCaliaroAlessandroCaliaro ✭✭✭✭✭ ITMember ✭✭✭✭✭

    maybe a tabbedpage. A tab for scrollview, a tab for listview

  • BhautikBhautik ✭✭✭ Member ✭✭✭
    edited March 5

    @AlessandroCaliaro said:
    no, you can't add a listview to a scrollview

    Ya,that I know its not possible.But is there any hack to achieve this scenario.> @AlessandroCaliaro said:

    maybe a tabbedpage. A tab for scrollview, a tab for listview

    I want to implement something like that.

  • LandLuLandLu Xamurai Member, Xamarin Team Xamurai

    @Bhautik I think you could place your top controls in the ListView's header, then it can be scrolled with the list view's items.

    <ListView.Header>
        <StackLayout>
            <!--fixed data-->
            <!--Tabs-->
        </StackLayout>
    </ListView.Header>
    
Sign In or Register to comment.