Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Searching in ListView causes ListView Item to move under above view

$
0
0

I don't know how to explain it but here is a video explaining it.
This only happen on iOs

Here is a link to the video
https://www.dropbox.com/s/tlyorc73phibrmn/ScreenCaptureProject1.mp4?dl=0

Here is my xaml

    <StackLayout VerticalOptions="FillAndExpand" Orientation="Vertical" Spacing="1">
        <Frame CornerRadius="15" Padding="0,0,0,10" Margin="5,5,5,5" BackgroundColor="#4D6C9D">
            <StackLayout>
                <SearchBar x:Name="SearchUser"  BackgroundColor="Transparent" Margin="0,5,0,0" HeightRequest="30" Placeholder="TYPE HERE TO SEARCH">
                    <SearchBar.TextColor>
                        <OnPlatform iOS="#4D6C9D" Android="White"></OnPlatform>
                    </SearchBar.TextColor>
                    <SearchBar.PlaceholderColor>
                        <OnPlatform iOS="#4D6C9D" Android="White"></OnPlatform>
                    </SearchBar.PlaceholderColor>
                </SearchBar>
            </StackLayout>
        </Frame>
        <ListView x:Name="ListViewOwners" RefreshAllowed="True" SeparatorColor="Blue" HasUnevenRows="True" IsPullToRefreshEnabled="True" Refreshing="ListViewOwners_Refreshing"  >
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <ViewCell.View>
                            <StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand" BackgroundColor="#F1F9FF" Padding="0,0,0,5">
                                <StackLayout HorizontalOptions="FillAndExpand" Orientation="Horizontal" Padding="5,5,5,5">
                                    <forms:CachedImage CacheType="All" LoadingPlaceholder="resource://Equine.Resources.loading.png" ErrorPlaceholder="resource://Equine.Resources.error.png" Source="{Binding ProfilePic}" HeightRequest="50" WidthRequest="50" Aspect="AspectFit">
                                        <forms:CachedImage.Transformations>
                                            <fftransformations:CircleTransformation/>
                                        </forms:CachedImage.Transformations>
                                    </forms:CachedImage>
                                    <StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
                                        <Label HorizontalOptions="FillAndExpand" FontSize="Medium" Text="{Binding UserText}" TextColor="#4D6C9D" VerticalTextAlignment="Center"></Label>
                                        <Label HorizontalOptions="FillAndExpand" FontSize="Micro" Text="{Binding CellNumber}" TextColor="#4D6C9D" VerticalTextAlignment="Center"></Label>
                                    </StackLayout>
                                </StackLayout>
                            </StackLayout>
                        </ViewCell.View>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </StackLayout>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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