LinearLayout layout = new LinearLayout (context);
ImageView imageView = new ImageView (context);
layout.addView (imageView);
Why create a view of the time to pass a context, what is the use in this context
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
http://stackoverflow .com/questions/11167032/why-does-imageview-require-a-context-to-be-passed-to-it
Reply:
Just to get the resources it? ? ? There is no where to build with him about? ?
Reply:
Relationship context
Reply:
context is the operating environment, the equivalent of telling an object is instantiated current program operating environment is like. context should be considered a design pattern of the bar, the first application of this model should be on the scene cpu multitasking bar, task switching process, CPU stops the currently running process, and save the current program runs for a specific location then continue to run this operation register information is stored in the context of the task.
No comments:
Post a Comment