| | |
| | | /// <summary> |
| | | /// View的方法 |
| | | /// </summary> |
| | | /// <param name="fLayout">父控件</param> |
| | | /// <param name="frame">父控件</param> |
| | | /// <param name="titleName">标题名称</param> |
| | | /// <param name="stateValue">之前状态值</param> |
| | | /// <param name="action">返回回调</param> |
| | | public void FLayoutView(FrameLayout fLayout, string titleName,string stateValue, Action<string> action) |
| | | public void FLayoutView(FrameLayout frame, string titleName,string stateValue, Action<string> action) |
| | | { |
| | | FrameLayout fLayout = new FrameLayout |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | | }; |
| | | frame.AddChidren(fLayout); |
| | | fLayout.AddChidren(frameLayout); |
| | | frameLayout.AddChidren(btnTitle); |
| | | frameLayout.AddChidren(btnCancel); |
| | |
| | | frameLayout.AddChidren(seekBarVol); |
| | | frameLayout.AddChidren(btn_add); |
| | | frameLayout.AddChidren(btn_add_click); |
| | | btnTitle.Text = titleName; |
| | | //第一个变化记录选中值 |
| | | int brightnesValue = 0; |
| | | if (stateValue != "") |
| | |
| | | try |
| | | { |
| | | //进来的状态 |
| | | brightnesValue = int.Parse(stateValue); |
| | | seekBarVol.Progress = int.Parse(stateValue); |
| | | brightnesValue = int.Parse(stateValue.Replace("%", "")); |
| | | seekBarVol.Progress = brightnesValue; |
| | | } |
| | | catch { } |
| | | } |