swipe-button icon indicating copy to clipboard operation
swipe-button copied to clipboard

cannot access method setTrailBackground

Open Testator opened this issue 4 years ago • 0 comments

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

.

Testator avatar Aug 27 '20 01:08 Testator