| | |
| | | /// <param name="list">显示数据源</param> |
| | | /// <param name="titleText">标题</param> |
| | | /// <param name="action">返回值索引值</param> |
| | | public void FrameOrVv(FrameLayout frame, List<string> list, int titleText, Action<int> action) |
| | | public void FrameOrVv(FrameLayout frame, List<string> list, List<string> stateList, int titleText, Action<int> action) |
| | | { |
| | | |
| | | int line = 0; |
| | |
| | | { |
| | | verticalRefresh.AddChidren(checkView.FLayoutView()); |
| | | } |
| | | |
| | | if (stateList.Contains(strName)) |
| | | { |
| | | checkView.btnCheckIcon.IsSelected = true; |
| | | } |
| | | checkView.btnText.Text = strName; |
| | | checkView.btnClick.Tag = i;//标记 |
| | | //点击事件 |
| | |
| | | frameLayout.RemoveFromParent(); |
| | | }; |
| | | |
| | | } |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 超出5个元素该用滑动控件 |
| | | /// </summary> |
| | |
| | | /// <param name="list">显示数据源</param> |
| | | /// <param name="stateList">之前状态数据源</param> |
| | | /// <param name="titleText">标题</param> |
| | | /// <param name="action">返回值索引值</param> |
| | | /// <param name="action">返回值列表</param> |
| | | public void FrameOrVvList(FrameLayout frame, List<string> list, List<string> stateList, int titleText, Action<List<string>> action) |
| | | { |
| | | |