baskren/Forms9Patch

[Bug] Icons not showing on buttons on Android

Closed this issue · 9 comments

Description

On the latest version of the library on Android the icons on the buttons are no longer working.

Steps to Reproduce

This works and shows icons on both platforms

                <Image HeightRequest="35" Margin="10,6,6,0"  VerticalOptions="CenterAndExpand" Grid.Row="0" Grid.Column="0">
                    <Image.Source>
                        <FontImageSource
                                FontFamily="{DynamicResource FontAwesomeRegular}"
                                Glyph="{StaticResource LeftArrow}"
                                Size="44"
                                Color="White" />
                    </Image.Source>
                </Image>

This however only works on iOS <f9p:Button VerticalOptions="CenterAndExpand" Clicked="Faster_Clicked" Text="Faster Times" IconText="{StaticResource TachFast}" IconFontFamily="{DynamicResource FontAwesomeRegular}" BackgroundColor="{StaticResource OrangeButton}" HasTightSpacing="True" TrailingIcon="False" ElementShape="Obround" HasShadow="True" HorizontalTextAlignment="Center" Spacing="35" Margin="5" FontSize="14" FontFamily="{DynamicResource RobotoBold}" TextColor="White"/>

Expected Behavior

Works the same as iOS

Actual Behavior

Blank icons

Basic Information

Latest forms & forms9patch

Screenshots

Screenshot_20201214-140049
IMG_2427

Please send a demo project that replicates this issue.

Yeah, definitely send me a demo project. It's not clear to me you're touching Forms9Patch with the sample XAML you've shared nor is it clear that this is within the scope of Forms9Patch.

Sure attaching along with screenshots showing the button not working on droid

please verify fix with version 2.4.9-beta2

Yep that works - thanks

Thank you for taking the time to verify this. v2.4.9 is now released.