You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
If an icon is set in the Xamarin Forms Button via ImageSource, it will be centered correctly without text. As soon as the text is set , the icon is positioned on the far left.
It does not matter if I use a vector drawable or a PNG. The behaviour occurs with both variants.
Description
In Android:
If an icon is set in the Xamarin Forms Button via ImageSource, it will be centered correctly without text. As soon as the text is set , the icon is positioned on the far left.
It does not matter if I use a vector drawable or a PNG. The behaviour occurs with both variants.
Here is the code in xaml:
<Button HeightRequest="41" HorizontalOptions="FillAndExpand" ImageSource="cart_icon" Text="Add" />
This problem was already reported in older versions:
#5861
#9227
Steps to Reproduce
Expected Behavior
The icon is correctly centered before the text
Actual Behavior
The icon is positioned on the far left
Basic Information
Screenshots
A screenshot from the issue:
The text was updated successfully, but these errors were encountered: