I iCAB Well-Known Member Licensed User Longtime User Apr 9, 2018 #1 Hi All I need help changing the default slider thumb (circle) to look like a rectangle. Something similar to the attached image Thank you iCAB
Hi All I need help changing the default slider thumb (circle) to look like a rectangle. Something similar to the attached image Thank you iCAB
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2018 #2 B4X: Dim no As NativeObject no.Initialize("UISlider").RunMethod("appearance", Null).RunMethod("setThumbImage:forState:", _ Array(LoadBitmap(File.DirAssets, "smiley.png").Resize(32dip, 32dip, True), 0)) It will change the appearance of all sliders. Upvote 0
B4X: Dim no As NativeObject no.Initialize("UISlider").RunMethod("appearance", Null).RunMethod("setThumbImage:forState:", _ Array(LoadBitmap(File.DirAssets, "smiley.png").Resize(32dip, 32dip, True), 0)) It will change the appearance of all sliders.
I iCAB Well-Known Member Licensed User Longtime User Apr 10, 2018 #3 Thanks Erel for the great support Upvote 0
MikeH Well-Known Member Licensed User Longtime User Apr 12, 2018 #4 Is there a way to do this for Android? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2018 #5 MikeH said: Is there a way to do this for Android? Click to expand... This is not the correct place for this question. Upvote 0
MikeH said: Is there a way to do this for Android? Click to expand... This is not the correct place for this question.