Code example for SeekBar

Methods: getWidth

0
                        time -= 12;
                    } else { 
                        timeSuffix = "AM";
                    } 
                    timeLabel.setText(time + timeSuffix);
                    timeLabel.setPadding(seekBar.getWidth() / 13 * progress, 0, 0, 0);
                } 
            }); 
 
            manager.addSeekBar(dsb);
            dsb.setProgress(i);
            dsb.setMax(12);
            taskLabel.setText("Task " + (i + 1));
 
            if (i > 0) {
                dsb.addDependencies(DependentSeekBar.Dependency.GREATER_THAN, i - 1);
            } 
 
            mainLayout.addView(rowLayout, 1 + i);
        } 
        manager.setShiftingAllowed(true);