getWidth, getHeight and getBounds method problems

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

getWidth, getHeight and getBounds method problems

Postby exopolitix » Fri Sep 18, 2009 7:52 pm

Hi, I am trying to make game with a block that goes around the screen. For the block I found an example with an icon moving around screen and thought I could use code from this. Inside the view there is use of a getWidth, getHeight and getBounds methods that arent implemented within the classes. However when I use it in my view it comes up with an error. It wants me to create the methods within the view class. I had a look at the imports on the example and I seem to use all the imports so I cant see whats really going on. If anyone can provide an insight into this I would be really grateful.

Cheers,
eXo

PS. These methods are located within my thread class for the game which is built inside my view class if this makes any difference.
exopolitix
Freshman
Freshman
 
Posts: 8
Joined: Tue Sep 01, 2009 12:56 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests