this.setBackgroundDrawable(this.getResources().getDrawable (R.drawable.android)); // Load our "Ball" this.mySprite = this.getResources().getDrawable (R.drawable.world);
if (mySpritePos.x >= this.getWidth() - mySprite.getBounds().width()) { this.myXDirection = HorizontalDirection.LEFT; } else if (mySpritePos.x <= 0) { this.myXDirection = HorizontalDirection.RIGHT; } Can Any body explain clearly about this diff b/t this.getWidth() and mySprite.getWidth() its a stupid ques but please consider and give the ans thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---