Hi,
At what point does the surfaceCreated() method fire? I presume its
after we add the callback interface with addCallback?
On Dec 12, 5:19 pm, RichardS richardswingw...@googlemail.com wrote:
Steve,
This is my understanding of it:
The file res/layout/lunar_layout.xml describes the layout
RichardS wrote:
Steve, I'm sure the instance is created by
setContentView(R.layout.lunar_layout)
so the constructor will have been run by the time we do
mLunarView = (LunarView) findViewById(R.id.lunar)
Correct.
If you look in res/layout/lunar_layout.xml, you will see the declaration:
Cheers, that makes sense. I didnt notice the reference to the class in
the lunar_layour xml.
On Dec 13, 3:58 pm, Mark Murphy mmur...@commonsware.com wrote:
RichardS wrote:
Steve, I'm sure the instance is created by
setContentView(R.layout.lunar_layout)
so the constructor will have been
Steve,
This is my understanding of it:
The file res/layout/lunar_layout.xml describes the layout of the view.
The src/R.java file is auto generated: it equates object ids to names.
setContentView(R.layout.lunar_layout)
'reads' lunar_layout.xml file and creates and instance of the
LunarView
4 matches
Mail list logo