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.
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
Post a Comment