old mode 100755
new mode 100644
| | |
| | | /// </summary> |
| | | public class ComplaintsPage : FrameLayout |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | | |
| | | /// <summary> |
| | | /// 当前 |
| | | /// |
| | | /// </summary> |
| | | VerticalScrolViewLayout bodyScrolView; |
| | | |
| | | public ComplaintsPage() |
| | | { |
| | | bodyView = this; |
| | | BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Complaints)).LoadTopView(); |
| | | |
| | | int bodyY = Application.GetRealHeight(64); |
| | | bodyScrolView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = bodyY, |
| | | Height = bodyView.Height - bodyY, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | |
| | | #region 投诉联系 |
| | | FrameLayout phoneRow = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(50), |
| | | Height = Application.GetRealWidth(50), |
| | | }; |
| | | bodyView.AddChidren(phoneRow); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | }; |
| | | phoneRow.AddChidren(btnPhoneTitle); |
| | | if(Language.CurrentLanguage == "English") |
| | | { |
| | | btnPhoneTitle.Text = "Tel.:"; |
| | | } |
| | | |
| | | Button btnPhoneText = new Button() |
| | | { |
| | |
| | | /// </summary> |
| | | var btnImage = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | X = Application.GetRealWidth(343), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | Width = Application.GetRealWidth(16), |
| | | Height = Application.GetRealWidth(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | phoneRow.AddChidren(btnImage); |
| | |
| | | FrameLayout emailRow = new FrameLayout() |
| | | { |
| | | Y = phoneRow.Bottom, |
| | | Height = Application.GetRealHeight(54), |
| | | Height = Application.GetRealWidth(54), |
| | | }; |
| | | bodyView.AddChidren(emailRow); |
| | | |
| | |
| | | Button btnEmailText = new Button() |
| | | { |
| | | X = btnEmailTitle.Right, |
| | | Y = Application.GetRealHeight(8), |
| | | Height = Application.GetRealHeight(20), |
| | | Y = Application.GetRealWidth(8), |
| | | Height = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | |
| | | Button btnEmailTipText = new Button() |
| | | { |
| | | X = btnEmailTitle.Right, |
| | | Y = btnEmailText.Bottom + Application.GetRealHeight(4), |
| | | Height = Application.GetRealHeight(20), |
| | | Y = btnEmailText.Bottom + Application.GetRealWidth(4), |
| | | Height = Application.GetRealWidth(20), |
| | | Width = Application.GetRealWidth(266), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | |
| | | TextID = StringId.WillGivePriorityToTheTreatmen, |
| | | }; |
| | | emailRow.AddChidren(btnEmailTipText); |
| | | |
| | | if (Language.CurrentLanguage == "English") |
| | | { |
| | | btnEmailTitle.Width = Application.GetRealWidth(80); |
| | | emailRow.Height = Application.GetRealWidth(65); |
| | | btnEmailTipText.IsMoreLines = true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 前进图标 |
| | | /// </summary> |
| | | var btnImage2 = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | X = Application.GetRealWidth(343), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | Width = Application.GetRealWidth(16), |
| | | Height = Application.GetRealWidth(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | emailRow.AddChidren(btnImage2); |