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

[Android & iOS] Shadows & Gradients don't work with a list view's header/footer #26636

Open
kubaflo opened this issue Dec 14, 2024 · 0 comments · May be fixed by #26637
Open

[Android & iOS] Shadows & Gradients don't work with a list view's header/footer #26636

kubaflo opened this issue Dec 14, 2024 · 0 comments · May be fixed by #26637
Assignees
Labels
area-controls-listview ListView and TableView platform/android 🤖 platform/iOS 🍎 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@kubaflo
Copy link
Contributor

kubaflo commented Dec 14, 2024

Description

The following code doesn't work as expected, and like the collection view does:

<ListView
        VerticalOptions="Center"
        HeightRequest="300">
        <ListView.Header>
                <Label 
                        FontSize="16"
                        AutomationId="HeaderLabel"
                        HorizontalTextAlignment="Center"
                        Text="(Header) This is a border with shadows">
                        <Label.Background>
                                <LinearGradientBrush
                                        StartPoint="0, 0"
                                        EndPoint="1, 1">
                                        <LinearGradientBrush.GradientStops>
                                                <GradientStop Color="#8A2387"
                                                                Offset="0.1"/>
                                                <GradientStop Color="#E94057"
                                                                Offset="0.6"/>
                                                <GradientStop Color="#F27121"
                                                                Offset="1.0"/>
                                        </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                        </Label.Background>
                </Label>
        </ListView.Header>
        <ListView.Footer>
                <Label
                        FontSize="16"
                        HorizontalTextAlignment="Center"
                        Text="(Footer) This is a label with shadows">
                        <Label.Shadow>
                                <Shadow
                                        Brush="Green"
                                        Radius="4"
                                        Offset="0,4"/>
                        </Label.Shadow>
                </Label>
        </ListView.Footer>
</ListView>

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@kubaflo kubaflo added the t/bug Something isn't working label Dec 14, 2024
@kubaflo kubaflo self-assigned this Dec 14, 2024
@kubaflo kubaflo added platform/android 🤖 platform/iOS 🍎 area-controls-listview ListView and TableView s/verified Verified / Reproducible Issue ready for Engineering Triage labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-listview ListView and TableView platform/android 🤖 platform/iOS 🍎 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant