public override View OnCreateView(LayoutInflater p0, ViewGroup p1, Bundle p2)
        {
            var v = p0.Inflate(Resource.Layout.fragment_test, p1, false);
            m_StickyList = v.FindViewById<StickyListHeadersListView>(Resource.Id.list);
            m_StickyList.OnItemClickListener = this;
            m_StickyList.OnHeaderListClickListener = this;
            m_StickyList.AddHeaderView(p0.Inflate(Resource.Layout.list_header, null));
            m_StickyList.AddFooterView(p0.Inflate(Resource.Layout.list_footer, null));

            m_Adapter = new TestBaseAdapter(Activity);
            m_StickyList.EmptyView = v.FindViewById(Resource.Id.empty);
            m_StickyList.Adapter = m_Adapter;
            return v;
        }
Example #2
0
        public override View OnCreateView(LayoutInflater p0, ViewGroup p1, Bundle p2)
        {
            var v = p0.Inflate(Resource.Layout.fragment_test, p1, false);

            m_StickyList = v.FindViewById <StickyListHeadersListView>(Resource.Id.list);
            m_StickyList.OnItemClickListener       = this;
            m_StickyList.OnHeaderListClickListener = this;
            m_StickyList.AddHeaderView(p0.Inflate(Resource.Layout.list_header, null));
            m_StickyList.AddFooterView(p0.Inflate(Resource.Layout.list_footer, null));

            m_Adapter = new TestBaseAdapter(Activity);
            m_StickyList.EmptyView = v.FindViewById(Resource.Id.empty);
            m_StickyList.Adapter   = m_Adapter;
            return(v);
        }