android: visual issues on a custom slider -


i created custom slider working fine, started showing visual issues , have no idea solve problem.

the issue appearance of black borders/gradients around it. tested on android 6 , android 4.0.3 well. both showing same problem. on android 4.0.3, can see problem around actions in toolbar when press on them, makes black gradient shadow.

enter image description here

any idea?

the code of slider is:

public class styledseekbar extends seekbar { public styledseekbar(context context) {     super(context);     this.init(); }  public styledseekbar(context context, attributeset attrs) {     super(context, attrs);     this.init(); }  public styledseekbar(context context, attributeset attrs, int defstyleattr) {     super(context, attrs, defstyleattr);     this.init(); }  @targetapi(build.version_codes.lollipop) public styledseekbar(context context, attributeset attrs, int defstyleattr, int defstyleres) {     super(context, attrs, defstyleattr, defstyleres);     this.init(); }  /**  * initializes instance of class.  */ private void init(){     setthumb(getresources().getdrawable(r.drawable.apptheme_scrubber_control_selector_holo_light));     setindeterminatedrawable(getresources().getdrawable(r.drawable.apptheme_scrubber_progress_horizontal_holo_light));     setprogressdrawable(getresources().getdrawable(r.drawable.apptheme_scrubber_progress_horizontal_holo_light)); } } 

it's no shadow. looks .png stretched. try 9png


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -