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

            headers.Remove(view);
            NotifyItemRemoved(position);
        }
Beispiel #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);
        }
Beispiel #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);
 }
 /// <summary>method: AddView
 /// add view to viewlist
 /// </summary>
 /// <param name="aView"></param>
 public void AddView(ITemView aView)
 {
     ViewList.Add(aView);
 }