1iveowl / Plugin.SegmentedControl

MIT License
170 stars 29 forks source link

Android: Make sure that BackgroundColor does only affect the buttons, not the whole element #90

Closed thomaskaelin closed 4 years ago

thomaskaelin commented 4 years ago

In version 4.5.1, if a BackgroundColor is set for the segmented control, it does not only fill the "boxes" with that color but also the background outside the "boxes":

Before

This pull request fixes that bug and makes sure that only the "boxes" will be filled with the color, see screenshot below:

Fixed

I also extended the Test-app with a button that changes the BackgroundColor-property.

Successfully tested on Google Pixel 3 with Android 10 and an Android Emulator with Android 8.0.

1iveowl commented 4 years ago

Thank you!

Will be implemented in upcoming release.