i wanted to create a progressbar with separate items, like this:
<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/2KWhD.png" data-original="https://i.stack.imgur.com/2KWhD.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
as you see in the horizontal progressbar, there are some vertical bars (every X% one will be added). the background is no problem, i could use a LinearLayout with a style, but i really have no idea how to place these bars in it (i have the red ones as image, but can create them also with xml if its neccessary).
but is this generally possible or am i forced to use a "normal" progressbar?Answer1:
One solution would be to create a layout for your progressbar with all of your red bars included. Have their <a href="http://developer.android.com/reference/android/view/View.html#setVisibility(int)" rel="nofollow">visibility</a> set to INVISIBLE initially, and then when you reach appropriate progress percentage, set their visibility programattically to VISIBLE.