Fixed [Android] Label's HorizontalTextAlignment property is not updated properly at runtime
Root Cause
Android The text alignment property of the Android TextView does not update at runtime, causing the text alignment to remain unchanged.
Description of Change
We can resolve this issue by using gravity along with the text alignment logic.
Validated the behaviour in the following platforms
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac
Issues Fixed
Fixes #11655
Output
Android
| Before | After |
|---|---|
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
I am going to trigger the Android UITests again, and test locally to be sure but this ui test
Seems to fail after the changes.
@jsuarezruiz I ran the specified failing test case in Android API 30 on my local machine, and it passed successfully.Please find the screenshot for the same.
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
/rebase
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/azp run
Azure Pipelines successfully started running 3 pipeline(s).
/rebase
I no longer can reproduce the bug in maui 10.0.20. closing this PR
Seems to fail after the changes.