Craig wrote:
>>> Do you have any evidence that your TetrisView constructor is being called?
> Yes - I put a logging line in a ctor and I see that in the log.

Hrm.

Here's a couple of shots in the dark, some of which you probably have 
already tried:

-- Try replacing com.technosabbey.games.tetris.TetrisView in your layout 
XML with something built-in, like TextView. If view is still null, 
there's something really weird going on with layout inflation in 
general. If the view is not null, then something's wrong in your custom 
View that is screwing up inflation.

-- Try rm -rf bin and a recompile to see if that causes some hidden 
compilation errors.

-- Try calling your own constructor and adding your custom View to the 
LinearLayout in Java code (vs. in the layout), to see if that turns up 
anything.

-- Which constructor does your logging say is being called, and are you 
doing all the proper inflation steps (e.g., using the supplied 
AttributeSet) in there? Are you chaining to the superclass?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to