Tuesday 19 March 2013

How to inflate xml ?

1)For Layout xml:
LayoutInflater li=getLayoutInflater();
li.inflate(R.layout.activity_main, null);


2)For Menu xml:
MenuInflater mi=getMenuInflater();
mi.inflate(R.menu.activity_main, menu);


No comments:

Post a Comment