custom seekbar with multi color
问题 I am trying to create custom seek bar in android with multicolor. I tried below code customseekbar.java int proBarWidth = getWidth(); int proBarHeight = getHeight(); int thumboffset = getThumbOffset(); int lastproX = 0; int proItemWidth, proItemRight; for (int i = 0; i < mproItemsList.size(); i++) { proItem proItem = mproItemsList.get(i); Paint proPaint = new Paint(); proPaint.setColor(getResources().getColor(proItem.color)); proItemWidth = (int) (proItem.proItemPercentage * proBarWidth / 100