protected override void OnFinishInflate()
 {
     base.OnFinishInflate();
     Clickable = true;
     mContentView = FindViewById(Resource.Id.smContentView);
     if (mContentView == null)
     {
         throw new Java.Lang.IllegalArgumentException("not find contentView by id smContentView");
     }
     mMenuView = FindViewById(Resource.Id.smMenuView);
     if (mMenuView == null)
     {
         throw new Java.Lang.IllegalArgumentException("not find menuView by id smMenuView");
     }
     mViewConfiguration = ViewConfiguration.Get(Context);
     Init();
 }
 public ViewSwipeTouchListener(Context context, int subviewID)
 {
     this.detector = new GestureDetector (context, this);
     this.config = ViewConfiguration.Get (context);
     this.subviewID = subviewID;
 }
        private void Initialize(Context context)
        {
            if (!_initialized)
            {
                m_TouchSlop = ViewConfiguration.Get(this.Context).ScaledTouchSlop;

                m_DataSetObserver = new StickyListHeadersListViewObserver(this);
                m_AdapterHeaderAdapterClickListener = new AdapterHeaderAdapterClickListener(OnHeaderListClickListener, this);

                base.SetOnScrollListener(this);
                //null out divider, dividers are handled by adapter so they look good with headers
                base.Divider = null;
                base.DividerHeight = 0;

                m_ViewConfiguration = ViewConfiguration.Get(context);
                m_ClippingToPadding = true;

                try
                {
                    //reflection to get selector ref
                    var absListViewClass = JNIEnv.FindClass(typeof(AbsListView));
                    var selectorRectId = JNIEnv.GetFieldID(absListViewClass, "mSelectorRect", "()Landroid/graphics/Rect");
                    var selectorRectField = JNIEnv.GetObjectField(absListViewClass, selectorRectId);
                    m_SelectorRect = Java.Lang.Object.GetObject<Rect>(selectorRectField, JniHandleOwnership.TransferLocalRef);

                    var selectorPositionId = JNIEnv.GetFieldID(absListViewClass, "mSelectorPosition", "()Ljava/lang/Integer");
                    m_SelectorPositionField = JNIEnv.GetObjectField(absListViewClass, selectorPositionId);
                }
                catch (Exception)
                {

                }
                _initialized = true;
            }
        }
 protected void Init()
 {
     mTouchState = TOUCH_STATE_NONE;
     mViewConfiguration = ViewConfiguration.Get(Context);
 }