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

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

python - Obscure curses error message when creating a sub window -