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

Blur effect not work on Android #563

Open
BeepBeepBopBop opened this issue Feb 5, 2024 · 2 comments
Open

Blur effect not work on Android #563

BeepBeepBopBop opened this issue Feb 5, 2024 · 2 comments
Labels
bug-report Potential bug that should be verified platform-android Something is related to Android

Comments

@BeepBeepBopBop
Copy link

BeepBeepBopBop commented Feb 5, 2024

Hello, I am trying to use the Blur effect from the library but I have not been able to used it with Android.I have not found a reported issue out there about it so I unsure whether it is supposed to be working or not but anyways here is a code snippet showing the issue:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:MauiApp1"
             xmlns:uranium="http://schemas.enisn-projects.io/dotnet/maui/uraniumui"
             x:Class="MauiApp1.MainPage">


    <Grid BackgroundColor="Red">
        <Grid.Effects>
            <uranium:BlurEffect Mode="Dark">
            </uranium:BlurEffect>
        </Grid.Effects>
        <Label HorizontalOptions="Center" VerticalOptions="Center" Text="The quick brown fox jumps over the lazy dog"/>
    </Grid>

</ContentPage>

Without the blur the page shows Red, as it should, and with the blur the page turns to white but no effect is applied.

Thanks for any help with this.

@enisn enisn added bug-report Potential bug that should be verified platform-android Something is related to Android labels Feb 6, 2024
@sokolinivan
Copy link

sokolinivan commented Feb 6, 2024

Yes, I too have run into the same frustrating problem 😔:

<TabBar>
      <TabBar.Effects>
          <uranium:BlurEffect></uranium:BlurEffect> // <--- It had no effect
      </TabBar.Effects>
      <Tab Title="Page" Icon="icon.svg">
          <Tab.Effects>
              <uranium:BlurEffect></uranium:BlurEffect>
          </Tab.Effects>
          <ShellContent ContentTemplate="{DataTemplate views:Page}" />
      </Tab>
      <Tab Title="Page">
          <ShellContent ContentTemplate="{DataTemplate views:Page}" />
      </Tab>
      <Tab Title="Page" Icon="icon.svg">
          <ShellContent ContentTemplate="{DataTemplate views:Page}" />
      </Tab>
  </TabBar>

@enisn
Copy link
Owner

enisn commented Feb 23, 2024

The effect doesn't handle Tabbar or elements that inherited from Page, But I'll try to implement for Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Potential bug that should be verified platform-android Something is related to Android
Projects
None yet
Development

No branches or pull requests

3 participants