| | |
| | | /// </summary>
|
| | | private void InitMiddleFrame()
|
| | | {
|
| | | bodyFrameLayout.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor;
|
| | |
|
| | | var title = new Button |
| | | { |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(58), |
| | | Width = Application.GetRealWidth(600), |
| | | Height = Application.GetRealHeight(58), |
| | | TextID = R.MyInternationalizationString.SLA_Title, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | TextSize = 14 |
| | | };
|
| | | title.IsBold = true;
|
| | | bodyFrameLayout.AddChidren(title);
|
| | |
|
| | | var detail=new Button |
| | | { |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(164), |
| | | Width = Application.GetRealWidth(942), |
| | | Height = Application.GetRealHeight(800), |
| | | Text = Language.StringByID(R.MyInternationalizationString.SLA_Detail).Replace("{\\r\\n}","\r\n\r\n"), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = ZigbeeColor.Current.GXCTextColor, |
| | | IsMoreLines=true, |
| | | TextSize = 12, |
| | | |
| | | }; |
| | | bodyFrameLayout.AddChidren(detail); |
| | | //打开进度条
|
| | | this.ShowProgressBar(); |
| | | HdlThreadLogic.Current.RunThread(async () => |
| | | {
|
| | | var strUrl = "https://hdlcontrol.com/%E6%B2%B3%E4%B8%9C%E9%9A%90%E7%A7%81%E6%9D%83%E6%94%BF%E7%AD%9620200331.txt";
|
| | | var byteData = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, null, "GET");
|
| | | if (byteData == null)
|
| | | {
|
| | | this.CloseProgressBar(ShowReLoadMode.YES);
|
| | | return;
|
| | | }
|
| | | this.CloseProgressBar();
|
| | | var receipData = System.Text.Encoding.UTF8.GetString(byteData);
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | var btnText = new EditTextView();
|
| | | btnText.Height = bodyFrameLayout.Height;
|
| | | btnText.TextSize = 12;
|
| | | btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnText.TextAlignment = TextAlignment.TopLeft;
|
| | | btnText.Foucs = false;
|
| | | bodyFrameLayout.AddChidren(btnText);
|
| | | btnText.Text = receipData;
|
| | | });
|
| | | }); |
| | | } |
| | | } |
| | | } |