java - what this integer value means? -


The entire program I found on one of the Android Tutorials site shows the bouncing ball with a custom view.

I could not understand this line.

  Private int xVelocity = 30; Xviolocity = xavilocity * -1;   

What does this mean? If I change dramatically, I delete it * as compared to the animation and the other thing is that invalid () the method of the visual class repaint () java ??? Is similar to ??? Any help would be appericiated.

multiplication.

  xVelocity * - 1   

by xVelocity by -1 .

  xVelocity-1   

decrease 1 to xVelocity .

And the other thing which is invalid () method is similar to repaint ()

Yes, invalid () / Code> views the scene as dirty and therefore schedules a redraw.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -