Jan 29, 2013

Call getLayoutInflater() with Context

If you have to get LayoutInflater object with Context, in case of not in Activity. Call getLayoutInflater() with context using the code:

   
   LayoutInflater inflater = 
     (LayoutInflater)myContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE );
   


No comments:

Post a Comment

Infolinks In Text Ads