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

Labels added in code are not displayed on Android #8395

Closed
janseris opened this issue Jun 28, 2022 · 4 comments
Closed

Labels added in code are not displayed on Android #8395

janseris opened this issue Jun 28, 2022 · 4 comments
Assignees
Labels
area-controls-label Label, Span area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 t/bug Something isn't working

Comments

@janseris
Copy link

janseris commented Jun 28, 2022

Description

This project dynamically adds and removes Labels from/to an existing StackLayout as indicators of action results (action = DB call).

When each action finishes, a new label is added into the StackLayout container.

On Windows, the labels are displayed.
image

image

On Android, there are no labels displayed (or they are empty? I don't know)

This is supposed to be displayed:
image
Actual display (nothing):
image

I have added a debug print to show expected label contents in the Debug Output window.

Steps to Reproduce

Run the following project on Android:

janseris/MAUI_SQLServer_Test@98b96c0

Version with bug

6.0.400 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12, Android 5

Did you find any workaround?

No response

Relevant log output

No response

@janseris janseris added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 28, 2022
@janseris janseris changed the title Labels are not displayed on Android Labels added in code are not displayed on Android Jun 28, 2022
@rachelkang rachelkang added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-label Label, Span and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 28, 2022
@markadrake
Copy link

markadrake commented Jun 29, 2022

I am coming here after launching a new .NET Maui app in the Android Simulator and noticed that the button label does not resize to fit the text. So although the button text is changed to "clicked x times," the button does not resize to fit the text.

I can only assume all of these rendering issues are related.

@janseris
Copy link
Author

janseris commented Jun 29, 2022

Update, see this version janseris/MAUI_SQLServer_Test@72b40bf janseris/MAUI_SQLServer_Test@52b2a18 of the sample project:

  • it is possible to get the labels to appear using a hack by clicking into an enabled Editor control (writing any text is not neccessary)
    • if the Labels should be there, they appear after writing into the Editor control (DB calls must be executed so that the Labels are supposed to show because they show the results of these DB calls)
Android.labels.appear.mp4

@hartez
Copy link
Contributor

hartez commented Jun 30, 2022

Probably another manifestation of #8071, likely fixed by #8136. We'll need to verify.

@hartez hartez self-assigned this Jun 30, 2022
@hartez
Copy link
Contributor

hartez commented Jul 27, 2022

This should be fixed as of service release 3.

@hartez hartez closed this as completed Jul 27, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2022
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-label Label, Span area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants