コード例 #1
0
 @Override
 public LayoutInflater getLayoutInflater() {
   if (getCase() == null) {
     return super.getLayoutInflater();
   }
   ILayoutInflaterService layoutInflaterService =
       getCase().getService(ILayoutInflaterService.class);
   return layoutInflaterService.getLayoutInflater(this);
 }
コード例 #2
0
 @Override
 public Object getSystemService(String name) {
   if (getCase() == null) {
     super.getSystemService(name);
   }
   Object service = super.getSystemService(name);
   if (service instanceof LayoutInflater) {
     ILayoutInflaterService layoutInflaterService =
         getCase().getService(ILayoutInflaterService.class);
     if (layoutInflaterService != null)
       return layoutInflaterService.getLayoutInflater((LayoutInflater) service);
   }
   return service;
 }