Skip to content

[Android] When keyboard with InputScope=CurrencyAmount is displayed, it can break the status bar. #6216

Closed

Description

@takla21

Current behavior

When I remove the status bar natively by adding those 4 lines in the style.xml

<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>

And that I use a TextBox with InputScope=CurrencyAmount inside a grid that has toolkit:VisibleBoundsPadding.PaddingMask="Bottom", Something like this:

<Grid Background="White"
		  toolkit:VisibleBoundsPadding.PaddingMask="Bottom">
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<TextBox InputScope="CurrencyAmount"
				 Grid.Row="0" />

		<Grid Background="Red"
			  Grid.Row="1"
			  Height="50" />
	</Grid>

The status bar become black.

actual

Expected behavior

The status bar shouldn't change its color.

expected

How to reproduce it (as minimally and precisely as possible)

Sample
Download this sample KeyboardStatusBarSample.zip
Deploy on Android
Tap on the TextBox

Workaround

N/A

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s): 3.8.0-dev.475

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: 16.8.4)
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

@Iguins and I were able to isolate the version that introduced the regression (in Uno.Ui 3.2.0-dev.388). We were able to retrace the PR related to the build and I'm not sure if it even make sense #4433. Hopefully it can make sense for anyone that worked on it.

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    platform/android 🤖
    on Jun 9, 2021
  2. added
    difficulty/medium 🤔
    and removed
    difficulty/tbd
    triage/untriaged
    on Jun 10, 2021
  3. added
    project/input ⌨️
    on Jun 10, 2021
  4. self-assigned this
    on Mar 14, 2022
  5. CesarRabelo commented on Mar 23, 2022

    @CesarRabelo
    Contributor

    Executing more tests on this issue I verified that the behavior is not related to InputScope=CurrencyAmount or toolkit:VisibleBoundsPadding.PaddingMask="Bottom"

    This sample is using Grid
    Code_Grid

    statusbar_textbox

    This another sample is using StackPanel
    Code_StackPanel

    statusbar_stackpanel

  6. CesarRabelo commented on Mar 23, 2022

    @CesarRabelo
    Contributor

    But if exist an element before the TextBox for example a TextBlock the StatusBar is not affected.

    Code_StackPanel_OK

    statusbar_stackpanel_OK

  7. CesarRabelo commented on Mar 23, 2022

    @CesarRabelo
    Contributor

    Does anyone have any suggestions on what I should do to resolve this?

  8. francoistanguay commented on Apr 1, 2022

    @francoistanguay
    Contributor
  9. self-assigned this
    on Jun 9, 2022
  10. Repository owner unassigned on Jun 29, 2022
  11. Repository owner unassigned on Feb 8, 2023
  12. changed the title [-][Android] When keyboard with InputScope=CurrencyAmount is displayed, it can break the status bar.[/-] [+][Android] When keyboard with `InputScope=CurrencyAmount` is displayed, it can break the status bar.[/+] on Jul 10, 2023
  13. MartinZikmund commented on Jul 17, 2025

    @MartinZikmund
    Member

    No longer relevant, works correctly in Skia renderer targets

  14. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  15. locked as resolved and limited conversation to collaborators on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/bugplatform/android 🤖project/input ⌨️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions