old mode 100755
new mode 100644
| | |
| | | |
| | | TextButton btnMes = new TextButton() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | //Gravity = Gravity.CenterHorizontal, |
| | | Width = mesView.Width, |
| | | //Height = mesView.Height, |
| | | Height = Application.GetRealWidth(20), |
| | |
| | | mesView.AddChidren(btnMes); |
| | | //动态计算高度 |
| | | var needHeight = btnMes.GetMoreLineNeedHeight(); |
| | | if(needHeight < mesView.Height) |
| | | { |
| | | needHeight = mesView.Height; |
| | | } |
| | | btnMes.IsMoreLines = true; |
| | | btnMes.Height = needHeight; |
| | | //mesView.AddChidren(btnMes); |
| | | |
| | | |
| | | Button btnLine = new Button() |
| | | { |
| | |
| | | X = contentView.Width - Width144, |
| | | Y = btnLine.Y, |
| | | Width = Width144, |
| | | Height = Application.GetRealHeight(44), |
| | | Height = Application.GetRealHeight(45), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | { |
| | | Y = btnLine.Y, |
| | | Width = contentView.Width, |
| | | Height = Application.GetRealHeight(44), |
| | | Height = Application.GetRealHeight(45), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |