Esempio n. 1
0
 /// <summary>
 /// Remove adapter from the list.
 /// </summary>
 public void RemoveAdapter()
 {
     Assert.IsNotNull(m_Adapter, "Cannot remove a non-existent adapter.");
     m_Adapter.DeregisterObserver(this);
     m_ListView.makeItem    = null;
     m_ListView.bindItem    = null;
     m_ListView.itemHeight  = 0;
     m_ListView.itemsSource = null;
     m_Adapter = null;
 }
Esempio n. 2
0
        /// <summary>
        /// Remove adapter from the list.
        /// </summary>
        public void RemoveAdapter()
        {
            Assert.IsNotNull(m_Adapter, "Cannot remove a non-existent adapter.");
            m_Adapter.DeregisterObserver(this);
            m_ListView.makeItem = null;
            m_ListView.bindItem = null;
#if UNITY_2021_2_OR_NEWER
            m_ListView.fixedItemHeight = 0;
#else
            m_ListView.itemHeight = 0;
#endif
            m_ListView.itemsSource = null;
            m_Adapter = null;
        }