B2BÍøÂçÈí¼þ

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á ÉóºËÍøÕ¾ºÅ:QQ:896757558
ËÑË÷
²é¿´: 7|»Ø¸´: 0
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

AIWROKÈí¼þIOSÆ»¹ûÏßÌõÀà[Line]·½·¨Ð¡½á

[¸´ÖÆÁ´½Ó]

938

Ö÷Ìâ

943

Ìû×Ó

7029

»ý·Ö

abc

Rank: 9Rank: 9Rank: 9

»ý·Ö
7029
Ìø×ªµ½Ö¸¶¨Â¥²ã
Â¥Ö÷
AIWROKÈí¼þIOSÆ»¹ûÏßÌõÀà[Line]·½·¨Ð¡½á
AIWROKÈí¼þIOSÆ»¹ûÏßÌõÀà[Line]·½·¨Ð¡½á B2BÍøÂçÈí¼þ


  1. // µÚÒ»¸ö·½·¨£º📌setWidth - ÉèÖÃÏßÌõ¿í¶È
  2. /*
  3. Àà±ð ÏêÇé˵Ã÷
  4. ·½·¨¹¦ÄÜ ÉèÖÃÏßÌõµÄ¿í¶È
  5. ·½·¨Ç©Ãû Void setWidth (Single width)
  6. ·µ»ØÖµ ·µ»ØÖµ: Void
  7. ²ÎÊý - Single width£ºÓÃÓÚÖ¸¶¨ÏßÌõ¿í¶ÈµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
  8. */
  9. // ʾÀý£ºÉèÖÃÏßÌõ¿í¶È
  10. var line = new Line ();
  11. line.setWidth (5.0f); // ÉèÖÃÏßÌõ¿í¶ÈΪ 5
  12. // µÚ¶þ¸ö·½·¨£º📌setHeight - ÉèÖÃÏßÌõ¸ß¶È
  13. /*
  14. Àà±ð ÏêÇé˵Ã÷
  15. ·½·¨¹¦ÄÜ ÉèÖÃÏßÌõµÄ¸ß¶È
  16. ·½·¨Ç©Ãû Void setHeight (Single height)
  17. ·µ»ØÖµ ·µ»ØÖµ: Void
  18. ²ÎÊý - Single height£ºÓÃÓÚÖ¸¶¨ÏßÌõ¸ß¶ÈµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
  19. */
  20. // ʾÀý£ºÉèÖÃÏßÌõ¸ß¶È
  21. var line = new Line ();
  22. line.setHeight (2.0f); // ÉèÖÃÏßÌõ¸ß¶ÈΪ 2
  23. // µÚÈý¸ö·½·¨£º📌setColor - ÉèÖÃÏßÌõÑÕÉ«
  24. /*
  25. Àà±ð ÏêÇé˵Ã÷
  26. ·½·¨¹¦ÄÜ ÉèÖÃÏßÌõµÄÑÕÉ«
  27. ·½·¨Ç©Ãû Void setColor (Single red, Single green, Single blue)
  28. ·µ»ØÖµ ·µ»ØÖµ: Void
  29. ²ÎÊý - Single red£ººìɫͨµÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
  30. Single green£ºÂÌɫͨµÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
  31. Single blue£ºÀ¶É«Í¨µÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
  32. */
  33. // ʾÀý£ºÉèÖÃÏßÌõÑÕÉ«
  34. var line = new Line ();
  35. line.setColor (255, 0, 0); // ÉèÖÃÏßÌõÑÕɫΪºìÉ«
¸´ÖÆ´úÂë



1. ÏßÌõ¿í¶ÈÉèÖ÷½·¨
씀ÄÚÈÝ
¹¦ÄÜÃèÊö
ÉèÖÃÏßÌõµÄ¿í¶È
·½·¨ÉùÃ÷
Void setWidth(Single width)
·µ»ØÖµ
·µ»ØÖµ: Void
²ÎÊý
Single width
£ºÓÃÓÚÖ¸¶¨ÏßÌõ¿í¶ÈµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
°¸Àý
csharp<br>var line = new Line();<br>line.setWidth(5.0f); // ÉèÖÃÏßÌõ¿í¶ÈΪ5<br>
2. ÏßÌõ¸ß¶ÈÉèÖ÷½·¨
씀ÄÚÈÝ
¹¦ÄÜÃèÊö
ÉèÖÃÏßÌõµÄ¸ß¶È
·½·¨ÉùÃ÷
Void setHeight(Single height)
·µ»ØÖµ
·µ»ØÖµ: Void
²ÎÊý
Single height
£ºÓÃÓÚÖ¸¶¨ÏßÌõ¸ß¶ÈµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
°¸Àý
csharp<br>var line = new Line();<br>line.setHeight(2.0f); // ÉèÖÃÏßÌõ¸ß¶ÈΪ2<br>
3. ÏßÌõÑÕÉ«ÉèÖ÷½·¨
씀ÄÚÈÝ
¹¦ÄÜÃèÊö
ÉèÖÃÏßÌõµÄÑÕÉ«
·½·¨ÉùÃ÷
Void setColor(Single red, Single green, Single blue)
·µ»ØÖµ
·µ»ØÖµ: Void
²ÎÊý
- Single red
£ººìɫͨµÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
- Single green
£ºÂÌɫͨµÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
- Single blue
£ºÀ¶É«Í¨µÀµÄµ¥¾«¶È¸¡µãÊý²ÎÊý
°¸Àý
csharp<br>var line = new Line();<br>line.setColor(255, 0, 0); // ÉèÖÃÏßÌõÑÕɫΪºìÉ«<br>
ʵÓÃÑÝʾÀý×Ó£º


  1. // &#128296;&#127822;UI-LineÏßÌõÀà[Line]·½·¨ÍêÕûʾÀý
  2. // UI-LineÏßÌõÀà·½·¨Ð¡½á£¬½»Á÷QQȺ711841924

  3. printl("=== Line¿Ø¼þ·½·¨ÍêÕûʾÀý ===");

  4. // ´´½¨ÊÓͼÈÝÆ÷
  5. var vc = new IOSView();
  6. vc.show(() => {
  7.     printl("LineʾÀý½çÃæÒѼÓÔØ");
  8.    
  9.     // »ñÈ¡µ±Ç°ÊÓͼ
  10.     var view = vc.getView();
  11.    
  12.     // ´´½¨Ö÷ÈÝÆ÷
  13.     var mainContainer = new Vertical();
  14.     mainContainer.setSpacing(20);
  15.     mainContainer.setBackgroundColor(245, 245, 245);
  16.    
  17.     // ±êÌâÇøÓò
  18.     var titleContainer = new Vertical();
  19.     titleContainer.setAlignment("center");
  20.     titleContainer.setSpacing(5);
  21.     titleContainer.setBackgroundColor(0, 122, 255);
  22.    
  23.     var titleLabel = new Label();
  24.     titleLabel.setText("&#128296; LineÏßÌõ¿Ø¼þÑÝʾ");
  25.     titleLabel.setFontSize(20.0);
  26.     titleLabel.setTextColor(255, 255, 255);
  27.     titleLabel.setTextAlignment("center");
  28.    
  29.     var subtitleLabel = new Label();
  30.     subtitleLabel.setText("Line¿Ø¼þ·½·¨Ê¹ÓÃʾÀý");
  31.     subtitleLabel.setFontSize(14.0);
  32.     subtitleLabel.setTextColor(255, 255, 255);
  33.     subtitleLabel.setTextAlignment("center");
  34.    
  35.     titleContainer.addView(titleLabel);
  36.     titleContainer.addView(subtitleLabel);
  37.     mainContainer.addView(titleContainer);
  38.    
  39.     // Line·½·¨ÑÝÊ¾ÇøÓò
  40.     var demoContainer = new Vertical();
  41.     demoContainer.setBackgroundColor(255, 255, 255);
  42.     demoContainer.setSpacing(15);
  43.    
  44.     var demoTitle = new Label();
  45.     demoTitle.setText("Line¿Ø¼þ¹¦ÄÜÑÝʾ");
  46.     demoTitle.setFontSize(18.0);
  47.     demoTitle.setTextColor(0, 0, 0);
  48.     demoTitle.setTextAlignment("center");
  49.     demoContainer.addView(demoTitle);
  50.    
  51.     // µÚÒ»¸ö·½·¨£ºsetWidthÉèÖÃÏßÌõ¿í¶ÈÑÝʾ
  52.     var widthDemo = new Vertical();
  53.     widthDemo.setSpacing(10);
  54.    
  55.     var widthLabel = new Label();
  56.     widthLabel.setText("&#128204; setWidthÉèÖÃÏßÌõ¿í¶È");
  57.     widthLabel.setFontSize(16.0);
  58.     widthLabel.setTextColor(0, 122, 255);
  59.     widthDemo.addView(widthLabel);
  60.    
  61.     var widthDesc = new Label();
  62.     widthDesc.setText("´´½¨²»Í¬¿í¶ÈµÄÏßÌõ:");
  63.     widthDesc.setFontSize(14.0);
  64.     widthDesc.setTextColor(100, 100, 100);
  65.     widthDemo.addView(widthDesc);
  66.    
  67.     // ´´½¨²»Í¬¿í¶ÈµÄÏßÌõʾÀý
  68.     var line1 = new Line();
  69.     line1.setWidth(5.0); // ÉèÖÃÏßÌõ¿í¶ÈΪ 5
  70.     line1.setHeight(1.0);
  71.     line1.setColor(255, 0, 0); // ºìÉ«ÏßÌõ
  72.     widthDemo.addView(line1);
  73.    
  74.     var lineDesc1 = new Label();
  75.     lineDesc1.setText("¿í¶È: 5.0");
  76.     lineDesc1.setFontSize(12.0);
  77.     lineDesc1.setTextColor(150, 150, 150);
  78.     widthDemo.addView(lineDesc1);
  79.    
  80.     var line2 = new Line();
  81.     line2.setWidth(10.0); // ÉèÖÃÏßÌõ¿í¶ÈΪ 10
  82.     line2.setHeight(1.0);
  83.     line2.setColor(0, 255, 0); // ÂÌÉ«ÏßÌõ
  84.     widthDemo.addView(line2);
  85.    
  86.     var lineDesc2 = new Label();
  87.     lineDesc2.setText("¿í¶È: 10.0");
  88.     lineDesc2.setFontSize(12.0);
  89.     lineDesc2.setTextColor(150, 150, 150);
  90.     widthDemo.addView(lineDesc2);
  91.    
  92.     var line3 = new Line();
  93.     line3.setWidth(15.0); // ÉèÖÃÏßÌõ¿í¶ÈΪ 15
  94.     line3.setHeight(1.0);
  95.     line3.setColor(0, 0, 255); // À¶É«ÏßÌõ
  96.     widthDemo.addView(line3);
  97.    
  98.     var lineDesc3 = new Label();
  99.     lineDesc3.setText("¿í¶È: 15.0");
  100.     lineDesc3.setFontSize(12.0);
  101.     lineDesc3.setTextColor(150, 150, 150);
  102.     widthDemo.addView(lineDesc3);
  103.    
  104.     demoContainer.addView(widthDemo);
  105.    
  106.     // Ìí¼Ó·Ö¸î¿Õ¼ä
  107.     var separator1 = new Space();
  108.     separator1.setHeight(10.0);
  109.     demoContainer.addView(separator1);
  110.    
  111.     // µÚ¶þ¸ö·½·¨£ºsetHeightÉèÖÃÏßÌõ¸ß¶ÈÑÝʾ
  112.     var heightDemo = new Vertical();
  113.     heightDemo.setSpacing(10);
  114.    
  115.     var heightLabel = new Label();
  116.     heightLabel.setText("&#128204; setHeightÉèÖÃÏßÌõ¸ß¶È");
  117.     heightLabel.setFontSize(16.0);
  118.     heightLabel.setTextColor(0, 122, 255);
  119.     heightDemo.addView(heightLabel);
  120.    
  121.     var heightDesc = new Label();
  122.     heightDesc.setText("´´½¨²»Í¬¸ß¶ÈµÄÏßÌõ:");
  123.     heightDesc.setFontSize(14.0);
  124.     heightDesc.setTextColor(100, 100, 100);
  125.     heightDemo.addView(heightDesc);
  126.    
  127.     // ´´½¨²»Í¬¸ß¶ÈµÄÏßÌõʾÀý
  128.     var hLine1 = new Line();
  129.     hLine1.setWidth(200.0);
  130.     hLine1.setHeight(2.0); // ÉèÖÃÏßÌõ¸ß¶ÈΪ 2
  131.     hLine1.setColor(255, 165, 0); // ³ÈÉ«ÏßÌõ
  132.     heightDemo.addView(hLine1);
  133.    
  134.     var hLineDesc1 = new Label();
  135.     hLineDesc1.setText("¸ß¶È: 2.0");
  136.     hLineDesc1.setFontSize(12.0);
  137.     hLineDesc1.setTextColor(150, 150, 150);
  138.     heightDemo.addView(hLineDesc1);
  139.    
  140.     var hLine2 = new Line();
  141.     hLine2.setWidth(200.0);
  142.     hLine2.setHeight(5.0); // ÉèÖÃÏßÌõ¸ß¶ÈΪ 5
  143.     hLine2.setColor(128, 0, 128); // ×ÏÉ«ÏßÌõ
  144.     heightDemo.addView(hLine2);
  145.    
  146.     var hLineDesc2 = new Label();
  147.     hLineDesc2.setText("¸ß¶È: 5.0");
  148.     hLineDesc2.setFontSize(12.0);
  149.     hLineDesc2.setTextColor(150, 150, 150);
  150.     heightDemo.addView(hLineDesc2);
  151.    
  152.     var hLine3 = new Line();
  153.     hLine3.setWidth(200.0);
  154.     hLine3.setHeight(8.0); // ÉèÖÃÏßÌõ¸ß¶ÈΪ 8
  155.     hLine3.setColor(0, 128, 128); // ÇàÉ«ÏßÌõ
  156.     heightDemo.addView(hLine3);
  157.    
  158.     var hLineDesc3 = new Label();
  159.     hLineDesc3.setText("¸ß¶È: 8.0");
  160.     hLineDesc3.setFontSize(12.0);
  161.     hLineDesc3.setTextColor(150, 150, 150);
  162.     heightDemo.addView(hLineDesc3);
  163.    
  164.     demoContainer.addView(heightDemo);
  165.    
  166.     // Ìí¼Ó·Ö¸î¿Õ¼ä
  167.     var separator2 = new Space();
  168.     separator2.setHeight(10.0);
  169.     demoContainer.addView(separator2);
  170.    
  171.     // µÚÈý¸ö·½·¨£ºsetColorÉèÖÃÏßÌõÑÕÉ«ÑÝʾ
  172.     var colorDemo = new Vertical();
  173.     colorDemo.setSpacing(10);
  174.    
  175.     var colorLabel = new Label();
  176.     colorLabel.setText("&#128204; setColorÉèÖÃÏßÌõÑÕÉ«");
  177.     colorLabel.setFontSize(16.0);
  178.     colorLabel.setTextColor(0, 122, 255);
  179.     colorDemo.addView(colorLabel);
  180.    
  181.     var colorDesc = new Label();
  182.     colorDesc.setText("´´½¨²»Í¬ÑÕÉ«µÄÏßÌõ:");
  183.     colorDesc.setFontSize(14.0);
  184.     colorDesc.setTextColor(100, 100, 100);
  185.     colorDemo.addView(colorDesc);
  186.    
  187.     // ´´½¨²»Í¬ÑÕÉ«µÄÏßÌõʾÀý
  188.     var colorLine1 = new Line();
  189.     colorLine1.setWidth(250.0);
  190.     colorLine1.setHeight(3.0);
  191.     colorLine1.setColor(255, 0, 0); // ÉèÖÃÏßÌõÑÕɫΪºìÉ« (255, 0, 0)
  192.     colorDemo.addView(colorLine1);
  193.    
  194.     var colorLineDesc1 = new Label();
  195.     colorLineDesc1.setText("ÑÕÉ«: ºìÉ« (255, 0, 0)");
  196.     colorLineDesc1.setFontSize(12.0);
  197.     colorLineDesc1.setTextColor(150, 150, 150);
  198.     colorDemo.addView(colorLineDesc1);
  199.    
  200.     var colorLine2 = new Line();
  201.     colorLine2.setWidth(250.0);
  202.     colorLine2.setHeight(3.0);
  203.     colorLine2.setColor(0, 255, 0); // ÉèÖÃÏßÌõÑÕɫΪÂÌÉ« (0, 255, 0)
  204.     colorDemo.addView(colorLine2);
  205.    
  206.     var colorLineDesc2 = new Label();
  207.     colorLineDesc2.setText("ÑÕÉ«: ÂÌÉ« (0, 255, 0)");
  208.     colorLineDesc2.setFontSize(12.0);
  209.     colorLineDesc2.setTextColor(150, 150, 150);
  210.     colorDemo.addView(colorLineDesc2);
  211.    
  212.     var colorLine3 = new Line();
  213.     colorLine3.setWidth(250.0);
  214.     colorLine3.setHeight(3.0);
  215.     colorLine3.setColor(0, 0, 255); // ÉèÖÃÏßÌõÑÕɫΪÀ¶É« (0, 0, 255)
  216.     colorDemo.addView(colorLine3);
  217.    
  218.     var colorLineDesc3 = new Label();
  219.     colorLineDesc3.setText("ÑÕÉ«: À¶É« (0, 0, 255)");
  220.     colorLineDesc3.setFontSize(12.0);
  221.     colorLineDesc3.setTextColor(150, 150, 150);
  222.     colorDemo.addView(colorLineDesc3);
  223.    
  224.     var colorLine4 = new Line();
  225.     colorLine4.setWidth(250.0);
  226.     colorLine4.setHeight(3.0);
  227.     colorLine4.setColor(255, 255, 0); // ÉèÖÃÏßÌõÑÕɫΪ»ÆÉ« (255, 255, 0)
  228.     colorDemo.addView(colorLine4);
  229.    
  230.     var colorLineDesc4 = new Label();
  231.     colorLineDesc4.setText("ÑÕÉ«: »ÆÉ« (255, 255, 0)");
  232.     colorLineDesc4.setFontSize(12.0);
  233.     colorLineDesc4.setTextColor(150, 150, 150);
  234.     colorDemo.addView(colorLineDesc4);
  235.    
  236.     demoContainer.addView(colorDemo);
  237.    
  238.     mainContainer.addView(demoContainer);
  239.    
  240.     // ʵ¼ÊÓ¦ÓÃʾÀý
  241.     var applicationContainer = new Vertical();
  242.     applicationContainer.setBackgroundColor(255, 255, 255);
  243.     applicationContainer.setSpacing(15);
  244.    
  245.     var appTitle = new Label();
  246.     appTitle.setText("Lineʵ¼ÊÓ¦ÓÃʾÀý");
  247.     appTitle.setFontSize(18.0);
  248.     appTitle.setTextColor(0, 0, 0);
  249.     appTitle.setTextAlignment("center");
  250.     applicationContainer.addView(appTitle);
  251.    
  252.     var appDesc = new Label();
  253.     appDesc.setText("ʹÓÃLine¿Ø¼þ´´½¨·Ö¸ôÏß:");
  254.     appDesc.setFontSize(14.0);
  255.     appDesc.setTextColor(100, 100, 100);
  256.     applicationContainer.addView(appDesc);
  257.    
  258.     // ±íµ¥²¼¾ÖʾÀý
  259.     var formContainer = new Vertical();
  260.     formContainer.setSpacing(10);
  261.    
  262.     // Óû§ÃûÐÐ
  263.     var usernameRow = new Horizontal();
  264.     usernameRow.setSpacing(10);
  265.    
  266.     var usernameLabel = new Label();
  267.     usernameLabel.setText("Óû§Ãû:");
  268.     usernameLabel.setWidth(60);
  269.     usernameLabel.setTextColor(0, 0, 0);
  270.    
  271.     var usernameInput = new Input();
  272.     usernameInput.setPlaceholder("ÇëÊäÈëÓû§Ãû");
  273.     usernameInput.setWidth(200);
  274.     usernameInput.setHeight(40);
  275.     usernameInput.setBackgroundColor(240, 240, 240);
  276.    
  277.     usernameRow.addView(usernameLabel);
  278.     usernameRow.addView(usernameInput);
  279.     formContainer.addView(usernameRow);
  280.    
  281.     // Ìí¼Ó·Ö¸ôÏß
  282.     var separatorLine1 = new Line();
  283.     separatorLine1.setWidth(300.0);
  284.     separatorLine1.setHeight(1.0);
  285.     separatorLine1.setColor(200, 200, 200);
  286.     formContainer.addView(separatorLine1);
  287.    
  288.     // ÃÜÂëÐÐ
  289.     var passwordRow = new Horizontal();
  290.     passwordRow.setSpacing(10);
  291.    
  292.     var passwordLabel = new Label();
  293.     passwordLabel.setText("ÃÜÂë:");
  294.     passwordLabel.setWidth(60);
  295.     passwordLabel.setTextColor(0, 0, 0);
  296.    
  297.     var passwordInput = new Input();
  298.     passwordInput.setPlaceholder("ÇëÊäÈëÃÜÂë");
  299.     passwordInput.setWidth(200);
  300.     passwordInput.setHeight(40);
  301.     passwordInput.setBackgroundColor(240, 240, 240);
  302.    
  303.     passwordRow.addView(passwordLabel);
  304.     passwordRow.addView(passwordInput);
  305.     formContainer.addView(passwordRow);
  306.    
  307.     // Ìí¼Ó·Ö¸ôÏß
  308.     var separatorLine2 = new Line();
  309.     separatorLine2.setWidth(300.0);
  310.     separatorLine2.setHeight(1.0);
  311.     separatorLine2.setColor(200, 200, 200);
  312.     formContainer.addView(separatorLine2);
  313.    
  314.     // ÓÊÏäÐÐ
  315.     var emailRow = new Horizontal();
  316.     emailRow.setSpacing(10);
  317.    
  318.     var emailLabel = new Label();
  319.     emailLabel.setText("ÓÊÏä:");
  320.     emailLabel.setWidth(60);
  321.     emailLabel.setTextColor(0, 0, 0);
  322.    
  323.     var emailInput = new Input();
  324.     emailInput.setPlaceholder("ÇëÊäÈëÓÊÏä");
  325.     emailInput.setWidth(200);
  326.     emailInput.setHeight(40);
  327.     emailInput.setBackgroundColor(240, 240, 240);
  328.    
  329.     emailRow.addView(emailLabel);
  330.     emailRow.addView(emailInput);
  331.     formContainer.addView(emailRow);
  332.    
  333.     applicationContainer.addView(formContainer);
  334.    
  335.     // °´Å¥ÇøÓò
  336.     var buttonContainer = new Horizontal();
  337.     buttonContainer.setSpacing(10);
  338.     buttonContainer.setAlignment("center");
  339.    
  340.     var submitBtn = new Button();
  341.     submitBtn.setText("Ìá½»");
  342.     submitBtn.setColor(0, 122, 255);
  343.     submitBtn.setTextColor(255, 255, 255);
  344.     submitBtn.setWidth(100);
  345.     submitBtn.setHeight(40);
  346.    
  347.     submitBtn.onClick(() => {
  348.         var username = usernameInput.getText();
  349.         var password = passwordInput.getText();
  350.         var email = emailInput.getText();
  351.         printl("Óû§Ãû: " + username);
  352.         printl("ÃÜÂë: " + password);
  353.         printl("ÓÊÏä: " + email);
  354.         
  355.         var resultLabel = new Label();
  356.         resultLabel.setText("Ìá½»³É¹¦£¡");
  357.         resultLabel.setFontSize(14.0);
  358.         resultLabel.setTextColor(52, 199, 89);
  359.         applicationContainer.addView(resultLabel);
  360.     });
  361.    
  362.     var resetBtn = new Button();
  363.     resetBtn.setText("ÖØÖÃ");
  364.     resetBtn.setColor(255, 149, 0);
  365.     resetBtn.setTextColor(255, 255, 255);
  366.     resetBtn.setWidth(100);
  367.     resetBtn.setHeight(40);
  368.    
  369.     resetBtn.onClick(() => {
  370.         usernameInput.setText("");
  371.         passwordInput.setText("");
  372.         emailInput.setText("");
  373.         printl("±íµ¥ÒÑÖØÖÃ");
  374.     });
  375.    
  376.     buttonContainer.addView(submitBtn);
  377.     buttonContainer.addView(resetBtn);
  378.     applicationContainer.addView(buttonContainer);
  379.    
  380.     mainContainer.addView(applicationContainer);
  381.    
  382.     // ¿Ø¼þÐÅÏ¢ÇøÓò
  383.     var infoContainer = new Vertical();
  384.     infoContainer.setBackgroundColor(236, 245, 255);
  385.     infoContainer.setSpacing(8);
  386.    
  387.     var infoTitle = new Label();
  388.     infoTitle.setText("ℹ️ Line¿Ø¼þ˵Ã÷");
  389.     infoTitle.setFontSize(16.0);
  390.     infoTitle.setTextColor(0, 122, 255);
  391.     infoContainer.addView(infoTitle);
  392.    
  393.     var info1 = new Label();
  394.     info1.setText("• Line¿Ø¼þÓÃÓÚ´´½¨ÏßÌõÔªËØ");
  395.     info1.setFontSize(12.0);
  396.     info1.setTextColor(52, 58, 64);
  397.     infoContainer.addView(info1);
  398.    
  399.     var info2 = new Label();
  400.     info2.setText("• ¿Éͨ¹ýsetWidth/setHeightÉèÖÃÏßÌõ³ß´ç");
  401.     info2.setFontSize(12.0);
  402.     info2.setTextColor(52, 58, 64);
  403.     infoContainer.addView(info2);
  404.    
  405.     var info3 = new Label();
  406.     info3.setText("• ¿Éͨ¹ýsetColorÉèÖÃÏßÌõÑÕÉ«");
  407.     info3.setFontSize(12.0);
  408.     info3.setTextColor(52, 58, 64);
  409.     infoContainer.addView(info3);
  410.    
  411.     var info4 = new Label();
  412.     info4.setText("• ³£ÓÃÓÚ½çÃæ·Ö¸ôºÍ×°ÊÎ");
  413.     info4.setFontSize(12.0);
  414.     info4.setTextColor(52, 58, 64);
  415.     infoContainer.addView(info4);
  416.    
  417.     mainContainer.addView(infoContainer);
  418.    
  419.     // µ×²¿°´Å¥
  420.     var bottomContainer = new Horizontal();
  421.     bottomContainer.setSpacing(10);
  422.     bottomContainer.setAlignment("center");
  423.    
  424.     var exitBtn = new Button();
  425.     exitBtn.setText("Í˳öʾÀý");
  426.     exitBtn.setColor(255, 59, 48);
  427.     exitBtn.setTextColor(255, 255, 255);
  428.     exitBtn.setHeight(40);
  429.    
  430.     exitBtn.onClick(() => {
  431.         printl("Í˳ö°´Å¥±»µã»÷");
  432.         vc.dismiss();
  433.     });
  434.    
  435.     bottomContainer.addView(exitBtn);
  436.     mainContainer.addView(bottomContainer);
  437.    
  438.     // Ìí¼Óµ½Ö÷ÊÓͼ
  439.     view.addView(mainContainer);
  440.    
  441.     printl("LineʾÀý½çÃæ¹¹½¨Íê³É");
  442. });

  443. printl("Line¿Ø¼þÍêÕûʾÀýÒÑÆô¶¯");
¸´ÖÆ´úÂë


»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

±¾°æ»ý·Ö¹æÔò

¹Ø±Õ

QQ|»ÓªÏúÈí¼þ×ÛºÏÌÖÂÛ|»ÓªÏúÈí¼þÓÐÎʱشð|»ÓªÏúÈí¼þ½Ì³Ì×¨Çø|»ÓªÏúÈí¼þPOST½Å±¾·ÖÏí|»ÓªÏúÈí¼þÆÕͨ½Å±¾·ÖÏí|»ÓªÏúÈí¼þÈí¼þ×ÊѶ|»ÓªÏúÈí¼þ¾«Æ·Èí¼þ|»ÓªÏúÈí¼þ¸üй«¸æ|ÓªÏúÈí¼þ|B2BÈí¼þ|B2BÍøÂçÈí¼þ ( ¾©ICP±¸09078825ºÅ )±¾ÍøÕ¾¿ª·¢µÄÓªÏúÈí¼þÊÇÒ»¿îеÄÍøÂçÓªÏúÈí¼þ£¬Õâ¿îÓªÏú¿ÉÒÔÈ¥ÍøÕ¾Èí¼þ£¬²©¿ÍÈí¼þ£¬B2BÈí¼þ£¬·ÖÀàÐÅÏ¢Íø·¢Ìù£¬¿ÉÒÔÇÀɳ·¢£¬¿ÉÒÔµ½°Ù¶ÈÎÄ¿âÉÏ´«WORDÎĵµ£¬¿ÉÒÔµ½Ò»Ð©ÊÇÏà²áÍøÕ¾×Ô¶¯ÉÏ´«Í¼Æ¬£¬Õâ¸ö×Ô¶¯·¢ÌûÈí¼þ×Ô´øÔÆÖ©Ö룬¼Ó¿ìÊÕ¼£¬ÓÐ6ÖÖ¶Ô½Ó´òÂë½Ó¿Ú£¬·½±ã£¬Ð§Âʸߣ¬Ëٶȿ죬¶øÇÒ¶ÔÍ϶¯µÄÑéÖ¤ÂëÈ«ÍøµÚÒ»¼Ò¶À¼ÒÖ§³Ö£¬È«²¿Ô­´´¼¼Êõ£¬¶À¼ÒÑз¢£¬Õý°æÔ­´´´ø°æÈ¨Èí¼þ¡£Ñ¡ÔñÍòÄÜÓªÏúÈí¼þ£¬¾ÍÑ¡ÔñÁËÒ»ÖÖ׬ǮµÄЧÂÊ£¬´ÓûÓб»³¬Ô½¹ý£¬Ò»Ö±ÔÚŬÁ¦Ñз¢Ð¼¼Êõ¡£·Å·ÉÃÎÏ룬½â·ÅË«ÊÖ£¬À´µã´´Ò⣬³É¾ÍÄãµÄÃÎÏ룬¾ÍÔÚÍòÄÜÓªÏúÈí¼þ¿ªÊ¼

map2

GMT+8, 2025-9-12 17:46 , Processed in 3.943565 second(s), 33 queries .

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí