Tuesday, September 15, 2009

Creating View from XML layout

We can create a view from the XML layout file. the way to do this is using,


LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflater(R.layout.main, true);

No comments:

Post a Comment

Androidians