android - How to remove corners radius in drawable programmatically? -
i want remove corner radius programmatically. don't know how it.
i'm creating progressbarcompat change progress bar color coloraccent don't know how remove corner radius in progressbardrawable in android api lower 11.
link drawable: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/drawable/progress_horizontal.xml
can it?
i'm using progress drawable:
layerdrawable drawable = (layerdrawable) getprogressdrawable(); drawable progressdrawable = drawable.finddrawablebylayerid(android.r.id.progress); // , detect sdk version , call method remove corners on drawable (progressdrawable).
Comments
Post a Comment