glidex icon indicating copy to clipboard operation
glidex copied to clipboard

Image in Shell.FlyoutHeaderTemplate is not showing if Forms.Glidex is active

Open AndreasReitberger opened this issue 2 years ago • 1 comments

Once I enable Glidex, my logo disappears in the Shell.FlyoutHeaderTemplate

<Shell.FlyoutHeaderTemplate>
        <DataTemplate>
            <ContentView BackgroundColor="{DynamicResource PrimaryColor}"
                         HeightRequest="{OnIdiom Phone=92, Tablet=108, Default=92}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Image 
                        HeightRequest="24" 
                        Grid.Row="0"
                        Margin="4"
                        VerticalOptions="Center" HorizontalOptions="Center"
                        Source="Logo"
                        />
                </Grid>
            </ContentView>
        </DataTemplate>
    </Shell.FlyoutHeaderTemplate>

The logo is a "Logo.png" file located in the Drawings folder of the Android project. All other images are working fine, which have Bindings as Source.

This is what the Output window says:

[glidex] IImageViewHandler of type `Android.Glide.ImageViewHandler`, instance created.
[glidex] IImageViewHandler of type `Android.Glide.ImageViewHandler`, `LoadImageAsync` called.
[Glide] Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
[glidex] Loading `Logo` as an Android resource

Is there anything I missed? Thanks!

AndreasReitberger avatar Sep 25 '21 08:09 AndreasReitberger

Hi, would you be able to port this sample to use Shell?

https://github.com/jonathanpeppers/glidex/tree/main/glidex.forms.sample/Forms

Then we could reproduce your issue here.

I think it was created before Xamarin.Forms Shell existed.

jonathanpeppers avatar Oct 12 '21 15:10 jonathanpeppers