Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AndreasReitberger opened this issue Sep 25, 2021 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AndreasReitberger
Copy link

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!

@jonathanpeppers
Copy link
Owner

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 jonathanpeppers added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 12, 2021
@AndreasReitberger AndreasReitberger closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants