Chapter4_Sample_Todo_list source code question
Hi,
I am new to the Adroid platform. I've just downloaded the source code and tried to compile and run the sample application in the book. I've tried Chapter4_Sample_Todo_List sample code. I can import the project and built using eclipse fine , and the application is running on emulator . However,
my question is: you have created TodoListItemView class ( derived from TextView class) in the src directory, but it seemed TodoListItemView class never got instantiated while the application is running ? Is this the intended behavior ? I've used eclipse debugger to break at TodoListeItemView class init() function, but it seemed the debugger never stopped at init() at all ? Just to be sure that my debugger setting is working correctly, I've tried to set the break point at ToDoList activity class, and it works fine. My question is that if TodoListItemView class never got instantiated, then the onDraw() method that is supposed to do the new coloring of the listitem will not be called , isn't it ? Or maybe I am missing somthing here ? Please help . Here's my eclipse setting:
eclipse build: 20090619-0625
Java JDK v 1.6.0.140
JRE v 6
host platform os : windows xp
Thanks vey much for your help.
Regards,
|