Custom ProgressBar using a Slider
Well this isn't a question, but a solution for past and possible future question on the subject.
A few weeks ago, searching for a way to customize at least the colors of a ProgressBar in iOS, my ticket sent me to tenderapp discussions.
I was a little sad with that as you can imagine. But with my endless intelligence (right..) I've come up with a way of archiving just what I needed for a music player progress bar. Here's the part of the code that matters:
var progress = Ti.UI.createView({
width: 220,
height: 'auto',
backgroundColor: 'transparent',
bottom: 5
});
var progress_bar = Ti.UI.createSlider({
min: 0,
value: 0,
thumbImage:'../images/empty_thumb.png' // just to "hide" it
});
progress.add(progress_bar);
After adding you "progress" to wherever you want, you control the values using "progress_bar" (just in case it didn't make sense before :p)
1 Answer
-
great idea