-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Comments
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. |
Update, see this version
Android.labels.appear.mp4 |
This should be fixed as of service release 3. |
Description
This project dynamically adds and removes
Label
s from/to an existingStackLayout
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](https://user-images.githubusercontent.com/64279914/176287946-76348b22-fc4e-4398-b6fc-91dcfdaee0f4.png)
On Android, there are no labels displayed (or they are empty? I don't know)
This is supposed to be displayed:
![image](https://user-images.githubusercontent.com/64279914/176289136-1a67ab1c-0af8-450d-91c1-2f38dd3d212b.png)
![image](https://user-images.githubusercontent.com/64279914/176289174-ec7c9240-04de-4506-a78e-c465954fc5a4.png)
Actual display (nothing):
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
The text was updated successfully, but these errors were encountered: