Forum Xamarin.Forms

Image Entry Custom Renderer drawable padding

GaganSinghGaganSingh USUniversity ✭✭✭

I created an Image Entry but the image is too close to the text. And i need to add some padding either on the right side of the drawable or the left side of the text.
Anyone know how to do this?

Im following this example to get the image inside the entry.


  • antferrantferr ITMember ✭✭
    edited August 2017

    After Control.SetCompoundDrawablesWithIntrinsicBounds(GetDrawable(element.Image), null, null, null);
    Write Control.CompoundDrawablePadding = Control.CompoundDrawablePadding + YOUR-PADDING;

Sign In or Register to comment.