| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public EmptyTipView(string tipMsg ="") |
| | | public EmptyTipView(string tipMsg ="",int btnTipNotY=0) |
| | | { |
| | | if(tipMsg == "") |
| | | { |
| | | tipMsg = Language.StringByID(StringId.ContentIsEmpty); |
| | | } |
| | | int tipHeight = Application.GetRealWidth(180); |
| | | int tipHeight = Application.GetRealWidth(180 + btnTipNotY); |
| | | |
| | | this.Height = tipHeight + Application.GetRealHeight(17); |
| | | this.Height = tipHeight + Application.GetRealHeight(17 ); |
| | | |
| | | BtnTipNot = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = tipHeight, |
| | | Height = tipHeight, |
| | | Width = Application.GetRealWidth(180), |
| | | Height = Application.GetRealWidth(180), |
| | | UnSelectedImagePath = "TipNot.png", |
| | | }; |
| | | this.AddChidren(BtnTipNot); |
| | | if(btnTipNotY!=0) |
| | | { |
| | | BtnTipNot.Y = Application.GetRealHeight(btnTipNotY); |
| | | } |
| | | |
| | | //空空如也 |
| | | Button btnTipNotText = new Button() |
| | | { |
| | | Y = tipHeight, |
| | | Y = tipHeight , |
| | | Height = Application.GetRealHeight(17), |
| | | Text = tipMsg, |
| | | TextAlignment = TextAlignment.Center, |