Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
173 views
in Technique[技术] by (71.8m points)

java - How to make continuous addition button

Hi I am making countdown timer when on activity I have button which I set time every 5( 5,10,15..) seconds but 5 seconds are added by click. I would like to hold this button and after for example 1 second of holding my value of seconds will be added automatically every 5 seconds.

public void dodawanie2(View view) {

    czasrundy=czasrundy+5;
    display2(czasrundy);
}

this Is my code which responsible for adding 5seconds. (czasrundy- mean time of round)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...