Forum Xamarin.Forms

Creating a ListView embedded in a ScrollView

turkdueturkdue USMember ✭✭

Hello, I am trying to create a ListView embedded in a ScrollView. My main issue is that I want this ListView to have cells that cover all of the page. So, each cell is a page long and a page wide. I am using Xamarin.Forms to develop an Android and an iOS app. I am also trying to make it so that each cell has a background image and a label in front of that image. How can I achieve this?

Best Answer


  • Soundman32Soundman32 USMember ✭✭

    What options are there if I want a view that contains some items at the top and the a 'list' of items below it?

  • RHudsonRHudson CAMember ✭✭✭

    Simply use a StackLayout. Add your stuff at the top, then a listview underneath

            <Label Text="My top stuff (this won't scroll)" />
  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
    edited February 2019

    Otherwise you can also use ListView's Header to add some info. The difference with @RHudson suggestions is that Header scroll with ListView

Sign In or Register to comment.