Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-19588] Android: Expose color property of ProgressBar #7237

Merged
merged 1 commit into from Sep 28, 2015

Conversation

ashcoding
Copy link
Contributor

Jira: https://jira.appcelerator.org/browse/TIMOB-19588

Test App.js:

var win = Ti.UI.createWindow({backgroundColor: 'white'});

var maxCount = 10;
var minCount = 0;

var pb = Ti.UI.createProgressBar({
    top: 25,
    width: 250,
    min: minCount,
    max: maxCount,
    value: 0
});

var pr = Ti.UI.createProgressBar({
    top: 45,
    width: 250,
    min: minCount,
    max: maxCount,
    value: 0,
    color: 'red'
});

win.addEventListener('click', function(){
    if (pb.value < maxCount) {
        ++pb.value;
        ++pr.value;
    }
});

win.add(pb);
win.add(pr);

win.open();

@ashcoding
Copy link
Contributor Author

Tap anywhere on the window to make it progress.

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Request accepted

hieupham007 added a commit that referenced this pull request Sep 28, 2015
[TIMOB-19588] Android: Expose color property of ProgressBar
@hieupham007 hieupham007 merged commit 2f9bed8 into tidev:master Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants