Answer the question
In order to leave comments, you need to log in
SeekBar customization thumb?
Hello. Tell me please. It is necessary to programmatically customize the SeekBar, increased the thumb (slider) and at the minimum and maximum values it does not fit into the viewport (it is actually cut off)
ShapeDrawable thumb = new android.graphics.drawable.ShapeDrawable(
new android.graphics.drawable.shapes.OvalShape()
);
thumb.setColorFilter(android.graphics.Color.RED, android.graphics.PorterDuff.Mode.SRC_OVER );
thumb.setIntrinsicHeight( 80 );
thumb.setIntrinsicWidth( 80 );
thumb.setBounds(0, 0, 80, 80);
SeekBar seekbar = findViewById(R.id.seekbar);
seekbar.setThumb(thumb);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question