Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ScrollView messed up StackLayout

$
0
0

I am coding a Xamarin.Forms cross-platform Social Media app. I am trying to make it so on users' profiles you can scroll in case their feed goes below the page. I added a ScrollView except it messed up how it should be displayed, which displays perfectly without the ScrollView.

My code is

<ContentPage.Content>
        <ScrollView>
            <StackLayout>
                <Label Text=" "/>
                <Image Source="profile_icon.png" HeightRequest="60" />
                <Button x:Name="relation_button" Clicked="relation_button_Clicked"/>
                <StackLayout Grid.Row="1" Orientation="Horizontal" Spacing="0" HorizontalOptions="CenterAndExpand">
                    <Label x:Name="follower_count" TextColor="Black"/>
                    <Label x:Name="following_count" TextColor="Black"/>
                </StackLayout>
                <StackLayout Grid.Row="1" Orientation="Horizontal" Spacing="0" HorizontalOptions="CenterAndExpand">
                    <Label x:Name="display_name" Text="Loading..." FontSize="20" TextColor="Black" HorizontalOptions="CenterAndExpand"/>
                    <Label x:Name="name_space"/>
                    <Image x:Name="verified_image" HeightRequest="15"/>
                </StackLayout>
                <Label x:Name="bio" FontSize="10" Text="Loading..." TextColor="Black" HorizontalOptions="CenterAndExpand"/>
                <BoxView HeightRequest="1" WidthRequest="1" BackgroundColor="Black"></BoxView>
                <StackLayout x:Name="mainStackLayout">
                    <Label x:Name="loading_label" Text="Loading..." FontSize="20"/>
                </StackLayout>
        </StackLayout>
        </ScrollView>
    </ContentPage.Content>

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>