user interface - Android custom SeekBar with two values -


i need create custom seekbar, can show 2 different values. idea is, dragging thumb change background color of whole seek bar (first value) , there white horizontal line, show second value.

custom seekbar

can me achieve this?

one of thoughts use

myseekbar.setprogressdrawable(dynamicalycreateddrawable); 

but hope there should better solution. if there not, can @ least point me, how dynamicaly draw image/drawable use this?

you can use:

myseekbar.setprogress(value1); // thumb myseekbar.setsecondaryprogress(value2); // white line 

where value1 , value2 between 0 , max.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -