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

Is there support for SearchBar on nougat 7.0?

$
0
0

Uploaded a build to test cloud which passed on multiple devices and android versions. However the 7.0 device failed because the screen didn't render my search bar.

    <ContentPage.Content>
        <StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
            <StackLayout.Padding>
                <Thickness>
                    4, 0, 4, 0
                </Thickness>
            </StackLayout.Padding>

            <SearchBar x:Name="txtSearch">
            </SearchBar>

            <ListView x:Name="listCountries">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ImageCell Text="{Binding description}" TextColor="Black" ImageSource="{Binding flag, Converter={StaticResource base64ToImageSource}}" />
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackLayout>
    </ContentPage.Content>

SearchBar simply did not appear on the screen of the 7.0 device (specifically, LG Nexus 5X running Android 7.0). Is this an issue with the OS or with XF?

I've attached some images - one is a working example on a 6.0.1 device, the other shows the missing searchbar on 7.0.

Thanks,

JWF


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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