I want to create custom progress widgets as shown in the image. After some research I found:
For needle gauge i can modify this widget
For Horizontal Progress meters i should customize the android native progress bar.
For Water indicator i should create a custom widget using android canvas.
My Question is: Am I using the correct way to create and implement these widgets? Or Any better recommendations or tutorials which you think might help me create these especially the "Water Indicator" and Customizing the Android Native progress bar.
Thanks.
Related
I want to create a circular seek bar which tells the number of cycles complete. I have a sample of IOS but I want to create the same as in Android(JAVA or Kotlin). Kindly guide me, how to create a circular seek bar the same as IOS. https://github.com/HamzaGhazouani/HGCircularSlider/blob/master/Screenshots/Circular.gif
I know this is not a new question but I didn't find any proper solution yet. How can I make a progress bar like the photo using native android xml layouts and no 3rd party libraries?
You need to create your custom View. Then in onDraw() method just draw on canvas whatever you want. There is canvas.drawArc() function.
I find the default Android progress bar very thick when large, is there anyway to make the bar thinner in the circular indetermindate.
I dont want to use a custom drawable if possible. It always slows things down and gives a two two gradient I dont like
I don't think it's possible without using custom drawables. As an alternative, you can use a third-party library, such as CircularProgressView, to create a customizable Material progress indicator.
I need to show to the user the speed of my robot's motors.
I thought about something like that:
How can I achieve this in Android? Should I use Canvas? Or maybe you can point out a better way to represent these motors' speeds?
You should use ProgressBar with a custom layout.
You can then update the progress using ProgressBar.setProgress and customizing the style is well documented.
Here is a relevant thread describing exactly how to customize it ~ How To Customize a Progress Bar in Android
I've seen in the progress bar api, there is a property for 'backgroundImage'. Is there a way in titanium to create a custom progress bar? If I have two images? Or has anyone heard of a module which could let me do such a thing?