I would like to animate two vertical timer bars controlled by the same thread. I am trying to avoid creating a new thread for each surfaceview which is what all the tutorials I’ve come across teach. Is this even possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes why not, Create the a util Class outside the
SurfaceView, then in yourSurfaceView implements Runnable Interfaceand in your Util Class define ArrayList , and in yourSurfaceViewaddthisto the Util Class, and i the Util Class make loop that reads theArrayListan call all objects ofRunnablein it. i hope you got it 🙂