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

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -