Douglas Farias Expert Licensed User Longtime User Sep 22, 2019 #1 Hi all. i m using this code (at manifest) to change the seekbar color. Code: Copy <item name="android:progressTint">#FF8D63C7</item> <item name="android:progressBackgroundTint">#FFCACACA</item> <item name="android:thumbTint">#FF8D63C7</item> but this code changes all seekbar, I want to have others with other colors. Is it possible to change via code avoiding the manifest? (a sub getting the seekbar and the color) Is it possible to use the above code with javaobject or reflection? thank you!
Hi all. i m using this code (at manifest) to change the seekbar color. Code: Copy <item name="android:progressTint">#FF8D63C7</item> <item name="android:progressBackgroundTint">#FFCACACA</item> <item name="android:thumbTint">#FF8D63C7</item> but this code changes all seekbar, I want to have others with other colors. Is it possible to change via code avoiding the manifest? (a sub getting the seekbar and the color) Is it possible to use the above code with javaobject or reflection? thank you!
Brandsum Well-Known Member Licensed User Sep 22, 2019 #2 You cannot change individual seekbar color scheme. Though you can change seekbar color scheme of individual activity. Just create individual theme for individual activity in which you want different color of seekbar and set seekbar color scheme to that. I will recommend you to use a custom view. Last edited: Sep 22, 2019 Upvote 0
You cannot change individual seekbar color scheme. Though you can change seekbar color scheme of individual activity. Just create individual theme for individual activity in which you want different color of seekbar and set seekbar color scheme to that. I will recommend you to use a custom view.
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2019 #3 B4XSeekBar will be soon added to XUI Views. It will allow changing the colors. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2019 #4 Released: https://www.b4x.com/android/forum/threads/100836/#content Code: Copy Sub B4XSeekBar1_ValueChanged (Value As Int) B4XSeekBar3.Color1 = xui.Color_ARGB(255, Value, 0, 0) B4XSeekBar3.Color2 = xui.Color_ARGB(255, 0, 255 - Value, 0) B4XSeekBar3.Update End Sub Upvote 0
Released: https://www.b4x.com/android/forum/threads/100836/#content Code: Copy Sub B4XSeekBar1_ValueChanged (Value As Int) B4XSeekBar3.Color1 = xui.Color_ARGB(255, Value, 0, 0) B4XSeekBar3.Color2 = xui.Color_ARGB(255, 0, 255 - Value, 0) B4XSeekBar3.Update End Sub