상속: android.widget.BaseExpandableListAdapter, android.widget.Filterable, android.widget.CursorFilter.CursorFilterClient
예제 #1
0
            internal MyCursorHelper(CursorTreeAdapter _enclosing, android.database.Cursor cursor
                                    )
            {
                this._enclosing = _enclosing;
                bool cursorPresent = cursor != null;

                this.mCursor          = cursor;
                this.mDataValid       = cursorPresent;
                this.mRowIDColumn     = cursorPresent ? cursor.getColumnIndex("_id") : -1;
                this.mContentObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyContentObserver
                                            (this);
                this.mDataSetObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyDataSetObserver
                                            (this);
                if (cursorPresent)
                {
                    cursor.registerContentObserver(this.mContentObserver);
                    cursor.registerDataSetObserver(this.mDataSetObserver);
                }
            }
예제 #2
0
			internal MyCursorHelper(CursorTreeAdapter _enclosing, android.database.Cursor cursor
				)
			{
				this._enclosing = _enclosing;
				bool cursorPresent = cursor != null;
				this.mCursor = cursor;
				this.mDataValid = cursorPresent;
				this.mRowIDColumn = cursorPresent ? cursor.getColumnIndex("_id") : -1;
				this.mContentObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyContentObserver
					(this);
				this.mDataSetObserver = new android.widget.CursorTreeAdapter.MyCursorHelper.MyDataSetObserver
					(this);
				if (cursorPresent)
				{
					cursor.registerContentObserver(this.mContentObserver);
					cursor.registerDataSetObserver(this.mDataSetObserver);
				}
			}