ebanx / swipe-button

A button that activates by swipe instead of touch
487 stars 101 forks source link

cannot access method setTrailBackground #69

Open Testator opened 4 years ago

Testator commented 4 years ago

cannot access setTrailBackground method even though it is public. I need to programmatically change the trailing background when theme is switch from day to night and vice versa.

I have enable trail in xml and trail background works fine when user change from night to day or vice versa only when app is restarted.

However, is user does not restart the app - trailing background does not change color with corresponding theme These are when user change from night to day or vice versa without restarting app

Screen Shot 2020-08-26 at 8 59 23 PM Screen Shot 2020-08-26 at 8 57 17 PM

this is how it should be

Screen Shot 2020-08-26 at 9 03 30 PM Screen Shot 2020-08-26 at 9 04 00 PM

I believe that this can be fix if we can setTrailBackground.

I tried setSlidingButtonBackground() but that does not work.

Please help. Thxs in advance

.