android progressbar with separate items (bars)


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?


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.


  • android: Unable to pause activity : java.lang.IllegalArgumentException: Service not registered:
  • Calling super.approveSelection() within a SwingWorker
  • CSS Bundling and Internet Explorer's Limit
  • Putting progress bar inside edit text which will launch after user has entered something
  • Background image crashes android
  • Setting attributes of an EditText added dynamically in Android
  • Android: How do you create an EditText field in java class
  • Splash Screen will not display
  • Excel's Macro-Recorder usage
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • How to use carriage return with multiple line?
  • How to define and use opencv mat of user type
  • How do I alternate colors in Flat List (React Native)
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Python urlparse: small issue
  • Google Custom Search with transparent background
  • Android fill_parent issue
  • Highlight and Bold text in JTextPane
  • FileReader+canvas image loading problem
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Xamarin Forms - UWP Fonts
  • Read text file and split every line in MSBuild
  • C# - Serializing and deserializing static member
  • Java applet as stand-alone Windows application?
  • How to convert from System.Drawing.Color to Excel.ColorFormat in C#? Change comment color
  • Cassandra Data Model
  • Join two tables and save into third-sql
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • How to model a transition system with SPIN
  • Weird JavaScript statement, what does it mean?
  • ORA-29908: missing primary invocation for ancillary operator
  • jquery mobile loadPage not working
  • Unanticipated behavior
  • Error creating VM instance in Google Compute Engine
  • Getting Messege Twice Using IMvxMessenger
  • need help with bizarre java.net.HttpURLConnection behavior
  • Android Google Maps API OnLocationChanged only called once
  • python draw pie shapes with colour filled
  • Converting MP3 duration time
  • Python/Django TangoWithDjango Models and Databases