Exemple #1
0
 public override android.view.View getItemView([email protected]
                                               item, android.view.View convertView, android.view.ViewGroup parent)
 {
     android.view.View actionView = item.getActionView();
     if (actionView == null || item.hasCollapsibleActionView())
     {
         if (!(convertView is [email protected]))
         {
             convertView = null;
         }
         actionView = base.getItemView(item, convertView, parent);
     }
     actionView.setVisibility(item.isActionViewExpanded() ? android.view.View.GONE : android.view.View
                              .VISIBLE);
     [email protected] menuParent = ([email protected]
                                                              )parent;
     android.view.ViewGroup.LayoutParams lp = actionView.getLayoutParams();
     if (!menuParent.checkLayoutParams(lp))
     {
         actionView.setLayoutParams((([email protected]
                                      )menuParent.generateLayoutParams(lp)));
     }
     return(actionView);
 }