wilsonvargas / ButtonCirclePlugin

Circle Buttons with icon for your Xamarin.Forms Applications
MIT License
96 stars 18 forks source link

Background when clicked #34

Closed TeuryBazzo closed 6 years ago

TeuryBazzo commented 6 years ago

My code in xaml local:CircleButton AbsoluteLayout.LayoutBounds=".95,.95,.15,.15" AbsoluteLayout.LayoutFlags="All" Image="icn_mais_24" BackgroundColor="#005F9C" Command="{Binding NovoDocumentoCommand}" TextColor="White" HeightRequest="70" WidthRequest="70" >

this xaml show correct Button : whatsapp image 2018-05-21 at 15 07 12

but when i click on the Button it shows the borders

whatsapp image 2018-05-21 at 15 07 12 1

I think that occurs on the property backgroundColor, why when i take off this property, this problem don't occurs

any soluction ?

wilsonvargas commented 6 years ago

This issue is similiar to #23 it's solved by assigning a style like "NoShadow" in your style.xml file:

<style name="NoShadowButton" parent="android:style/Widget.Button">
        <item name="android:stateListAnimator">@null</item>
</style>

And then set this style to android:buttonStyle in your main style, like this:

<item name="android:buttonStyle">@style/NoShadowButton</item>

For more information see this sample file

wilsonvargas commented 6 years ago

I'm closing the issue as no further response from user. Feel free to re-open if you run into issues around this again or there are further comments.