maui icon indicating copy to clipboard operation
maui copied to clipboard

Not able to change NavigationBarDividerColor on android platform

Open blackmesacode opened this issue 2 years ago • 4 comments

Description

There is a 1px divider line between the navigation bar and the app, which i didnt found a way to style.

Capture

There is a property Android.Views.Window.NavigationBarDividerColor but whatever value i set it to, it is not considered.

Compared to changing the NavigationBar color:

Window.SetNavigationBarColor(); (works flawlessly for coloring the navigation bar)

Window.SetNavigationBarDividerColor() (this method does not exist)

When reproducing this issue, make sure that your app background is dark, otherwise you cannot see the divider line which defaults to white.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

7.0.101

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Asus ZenFone 8 Model: ASUS_I006D OS: Android 13 API Level: 33

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

blackmesacode avatar Jan 09 '24 16:01 blackmesacode

Hi @stephansum. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jan 09 '24 19:01 ghost

Can you also include more information about the device you are testing on?

PureWeen avatar Jan 09 '24 19:01 PureWeen

Sure:

Asus ZenFone 8 Model: ASUS_I006D OS: Android 13 API Level: 33

blackmesacode avatar Jan 09 '24 19:01 blackmesacode

Hi @stephansum. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jan 11 '24 19:01 ghost

I could solve the issue by setting: Window.SetBackgroundDrawable(null); first.

blackmesacode avatar Jan 15 '24 20:01 blackmesacode