コード例 #1
0
ファイル: KListViewScroll.cs プロジェクト: vinhphu3000/mg01
        //刷新content容器的尺寸
        protected void RefreshContentSize()
        {
            Vector2 size = LayoutUtil.CalcLayoutSize(m_layoutParam, m_dataList.Count);

            size.x = Mathf.Max(size.x, m_contentSizeDefault.x);
            size.y = Mathf.Max(size.y, m_contentSizeDefault.y);

            m_contentSize            = size;
            m_contentTrans.sizeDelta = size;
        }
コード例 #2
0
ファイル: KListView.cs プロジェクト: vinhphu3000/mg01
 //清空布局列表
 protected void ClearLayoutItems()
 {
     LayoutUtil.RecyleLayoutItems(m_layoutItems);
 }
コード例 #3
0
ファイル: KListView.cs プロジェクト: vinhphu3000/mg01
 //初始化布列表
 protected void GenLayoutItems(int len_)
 {
     LayoutUtil.CreateLayoutItems(m_layoutParam, len_, m_layoutItems);
 }