Beispiel #1
0
 public _OnItemClickListener_931(AlertParams _enclosing, [email protected]
                                 .RecycleListView listView, [email protected] dialog)
 {
     this._enclosing = _enclosing;
     this.listView   = listView;
     this.dialog     = dialog;
 }
Beispiel #2
0
 public _CursorAdapter_873(AlertParams _enclosing, [email protected]
                           .RecycleListView listView, [email protected] dialog, android.content.Context
                           baseArg1, android.database.Cursor baseArg2, bool baseArg3) : base(baseArg1, baseArg2
                                                                                             , baseArg3)
 {
     this._enclosing = _enclosing;
     this.listView   = listView;
     this.dialog     = dialog;
     {
         android.database.Cursor cursor = this.getCursor();
         this.mLabelIndex     = cursor.getColumnIndexOrThrow(this._enclosing.mLabelColumn);
         this.mIsCheckedIndex = cursor.getColumnIndexOrThrow(this._enclosing.mIsCheckedColumn
                                                             );
     }
 }
Beispiel #3
0
 public virtual void apply([email protected] dialog)
 {
     if (mCustomTitleView != null)
     {
         dialog.setCustomTitle(mCustomTitleView);
     }
     else
     {
         if (mTitle != null)
         {
             dialog.setTitle(mTitle);
         }
         if (mIcon != null)
         {
             dialog.setIcon(mIcon);
         }
         if (mIconId >= 0)
         {
             dialog.setIcon(mIconId);
         }
     }
     if (mMessage != null)
     {
         dialog.setMessage(mMessage);
     }
     if (mPositiveButtonText != null)
     {
         dialog.setButton(android.content.DialogInterfaceClass.BUTTON_POSITIVE, mPositiveButtonText
                          , mPositiveButtonListener, null);
     }
     if (mNegativeButtonText != null)
     {
         dialog.setButton(android.content.DialogInterfaceClass.BUTTON_NEGATIVE, mNegativeButtonText
                          , mNegativeButtonListener, null);
     }
     if (mNeutralButtonText != null)
     {
         dialog.setButton(android.content.DialogInterfaceClass.BUTTON_NEUTRAL, mNeutralButtonText
                          , mNeutralButtonListener, null);
     }
     if (mForceInverseBackground)
     {
         dialog.setInverseBackgroundForced(true);
     }
     // For a list, the client can either supply an array of items or an
     // adapter or a cursor
     if ((mItems != null) || (mCursor != null) || (mAdapter != null))
     {
         createListView(dialog);
     }
     if (mView != null)
     {
         if (mViewSpacingSpecified)
         {
             dialog.setView(mView, mViewSpacingLeft, mViewSpacingTop, mViewSpacingRight, mViewSpacingBottom
                            );
         }
         else
         {
             dialog.setView(mView);
         }
     }
 }
Beispiel #4
0
 private void createListView([email protected] dialog)
 {
     [email protected] listView = ([email protected]
                                                                       .RecycleListView)mInflater.inflate(dialog.mListLayout, null);
     android.widget.ListAdapter adapter;
     if (mIsMultiChoice)
     {
         if (mCursor == null)
         {
             adapter = new _ArrayAdapter_859(this, listView, mContext, dialog.mMultiChoiceItemLayout
                                             , [email protected], mItems);
         }
         else
         {
             adapter = new _CursorAdapter_873(this, listView, dialog, mContext, mCursor, false
                                              );
         }
     }
     else
     {
         int layout = mIsSingleChoice ? dialog.mSingleChoiceItemLayout : dialog.mListItemLayout;
         if (mCursor == null)
         {
             adapter = (mAdapter != null) ? mAdapter : new android.widget.ArrayAdapter <java.lang.CharSequence
                                                                                        >(mContext, layout, [email protected], mItems);
         }
         else
         {
             adapter = new android.widget.SimpleCursorAdapter(mContext, layout, mCursor, new string
                                                              [] { mLabelColumn }, new int[] { [email protected] });
         }
     }
     if (mOnPrepareListViewListener != null)
     {
         mOnPrepareListViewListener.onPrepareListView(listView);
     }
     dialog.mAdapter     = adapter;
     dialog.mCheckedItem = mCheckedItem;
     if (mOnClickListener != null)
     {
         listView.setOnItemClickListener(new _OnItemClickListener_922(this, dialog));
     }
     else
     {
         if (mOnCheckboxClickListener != null)
         {
             listView.setOnItemClickListener(new _OnItemClickListener_931(this, listView, dialog
                                                                          ));
         }
     }
     // Attach a given OnItemSelectedListener to the ListView
     if (mOnItemSelectedListener != null)
     {
         listView.setOnItemSelectedListener(mOnItemSelectedListener);
     }
     if (mIsSingleChoice)
     {
         listView.setChoiceMode(android.widget.AbsListView.CHOICE_MODE_SINGLE);
     }
     else
     {
         if (mIsMultiChoice)
         {
             listView.setChoiceMode(android.widget.AbsListView.CHOICE_MODE_MULTIPLE);
         }
     }
     listView.mRecycleOnMeasure = mRecycleOnMeasure;
     dialog.mListView           = listView;
 }
Beispiel #5
0
 public _OnItemClickListener_922(AlertParams _enclosing, [email protected]
                                 dialog)
 {
     this._enclosing = _enclosing;
     this.dialog     = dialog;
 }