Esempio n. 1
0
        //SwipeMenuListView mListView;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var mListView = FindViewById <SwipeMenuListView>(Resource.Id.SwipeList);

            mAdapter          = new AppAdapter(this);
            mListView.Adapter = mAdapter;

            ((SwipeMenuListView)mListView).SetMenuCreator(this);

            //mListView.SetOnMenuItemClickListener((SwipeMenuListView.IOnItemClickListener)this);
            mListView.SetOnSwipeListener(this);
        }
Esempio n. 2
0
        //SwipeMenuListView mListView;
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            var mListView = FindViewById<SwipeMenuListView>(Resource.Id.SwipeList);
            mAdapter = new AppAdapter(this);
            mListView.Adapter = mAdapter;

            ((SwipeMenuListView)mListView).SetMenuCreator(this);

            //mListView.SetOnMenuItemClickListener((SwipeMenuListView.IOnItemClickListener)this);
            mListView.SetOnSwipeListener(this);
        }