Exemplo n.º 1
0
        /// <summary>
        /// 移除指定页眉
        /// </summary>
        /// <param name="view"></param>
        public void RemoveHeader(ITemView view)
        {
            var position = headers.IndexOf(view);

            headers.Remove(view);
            NotifyItemRemoved(position);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 移除指定页脚
        /// </summary>
        /// <param name="view"></param>
        public void RemoveFooter(ITemView view)
        {
            var position = headers.Count + GetCount() + footers.IndexOf(view);

            footers.Remove(view);
            NotifyItemRemoved(position);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 添加页脚
 /// </summary>
 /// <param name="view"></param>
 /// <exception cref="NullPointerException"></exception>
 public void AddFooter(ITemView view)
 {
     if (view == null)
     {
         throw new NullPointerException("ItemView can't be null");
     }
     footers.Add(view);
     NotifyItemInserted(headers.Count + GetCount() + footers.Count - 1);
 }
Exemplo n.º 4
0
 /// <summary>method: AddView
 /// add view to viewlist
 /// </summary>
 /// <param name="aView"></param>
 public void AddView(ITemView aView)
 {
     ViewList.Add(aView);
 }