java - Don't understand the constructor of my View -


My code is working and it is, but I do not understand one thing. I have started game programming and now works on my entire Surfaces and so on. I have to draw a background, so all this works.

When I made it, I followed a tutorial, so know that I am commenting on my language. :) When I started commenting some things now; I can not get rid of it, someone can tell me what is my constructor's reference parameter and attribute parameter for my idea? Is it necessary and why do I need to set local context valves for my game reference? OnCreate (savedInstanceState); SetContentView (new GameView (this, blank)); } GameView

  public game view (reference local content, AttributeSet etat) {super (local contact, etat); Context = localContext; InitView (); }  

InitView (); Just initialize each object and variable I made; If this material is needed to explain the constructor-cheeses; I'll post it

Thank you!

There is a bunch of state in context to work with that view Use the resource system To help, things like configuration state have been included which determines that the resources are used to do so among many other people.

AttributeSet is used when your view is inflated by the XML layout, in this way the XML attributes layout is bound to see the properties during inflation.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -