B2BÍøÂçÈí¼þ

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

°²×¿½Å±¾ÃëÍÂ˾¿ìËÙÏÔʾºÍ¹Ø±ÕµÄUIÌáʾ´°¿Ú

[¸´ÖÆÁ´½Ó]

1077

Ö÷Ìâ

1082

Ìû×Ó

7585

»ý·Ö

abc

Rank: 9Rank: 9Rank: 9

»ý·Ö
7585
Ìø×ªµ½Ö¸¶¨Â¥²ã
Â¥Ö÷


°²×¿½Å±¾ÃëÍÂ˾¿ìËÙÏÔʾºÍ¹Ø±ÕµÄUIÌáʾ´°¿Ú


°²×¿½Å±¾ÃëÍÂ˾¿ìËÙÏÔʾºÍ¹Ø±ÕµÄUIÌáʾ´°¿Ú B2BÍøÂçÈí¼þ

°²×¿½Å±¾ÃëÍÂ˾¿ìËÙÏÔʾºÍ¹Ø±ÕµÄUIÌáʾ´°¿Ú B2BÍøÂçÈí¼þ


  1. /**
  2. * ============================================
  3. * ƽ̨: Android (AIWROK)
  4. * 🍎½»Á÷QQȺ£º711841924£¨Èº£©
  5. *🍎½»Á÷QQȺ£º528816639  £¨°²×¿ÄÚ²âȺ£©
  6. * ============================================
  7. */

  8. // µ¼Èë°ü
  9. importClass(Packages.android.os.Handler);
  10. importClass(Packages.android.os.Looper);

  11. /**
  12. * ÃëÍÂ˾ - ¿ìËÙÏÔʾºÍ¹Ø±ÕµÄUIÌáʾ´°¿Ú£¨Ê¹ÓÃfloatUI£¬×îÉϲãÏÔʾ£©
  13. * @param {string} message - ÌáʾÐÅÏ¢
  14. * @param {number} duration - ÏÔʾʱ³¤£¨ºÁÃ룩£¬Ä¬ÈÏ3000ms
  15. */
  16. function showQuickToast(message, duration) {
  17.     duration = duration || 3000;
  18.    
  19.     try {
  20.         // ´´½¨ floatUI ʵÀý
  21.         var fui = new floatUI();
  22.         
  23.         // ¼ÓÔØ¼òµ¥µÄÎı¾²¼¾Ö£¨ºìÉ«´ó×Ö£¬À¶É«±³¾°£©
  24.         fui.loadXML(
  25.             '<TextView xmlns:android="http://schemas.android.com/apk/res/android" ' +
  26.             'android:id="toastText" ' +
  27.             'android:layout_width="wrap_content" ' +
  28.             'android:layout_height="wrap_content" ' +
  29.             'android:text="' + message + '" ' +
  30.             'android:textColor="#FF0000" ' +
  31.             'android:textSize="20sp" ' +
  32.             'android:textStyle="bold" ' +
  33.             'android:background="#EE4A90E2" ' +
  34.             'android:padding="20dp" ' +
  35.             'android:gravity="center" />'
  36.         );
  37.         
  38.         // »ñÈ¡ÆÁÄ»³ß´ç
  39.         var screenWidth = screen.getScreenWidth();
  40.         var screenHeight = screen.getScreenHeight();
  41.         
  42.         // ÉèÖÃλÖã¨ÆÁÄ»ÉÏ·½¾ÓÖУ©
  43.         setTimeout(function() {
  44.             fui.setPosition((screenWidth - 300) / 2, screenHeight / 3);
  45.             
  46.             // ÉèÖÃΪ×îÉϲ㴰¿ÚÀàÐÍ
  47.             try {
  48.                 var window = fui.getWindow();
  49.                 if (window) {
  50.                     var params = window.getAttributes();
  51.                     // TYPE_APPLICATION_OVERLAY - Android 8.0+
  52.                     // TYPE_SYSTEM_ALERT - Android 8.0ÒÔÏÂ
  53.                     params.type = android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
  54.                     // »òÕßʹÓøü¸ßµÄ²ã¼¶
  55.                     // params.type = 2038; // TYPE_APPLICATION_OVERLAY µÄÖµ
  56.                     window.setAttributes(params);
  57.                 }
  58.             } catch (e) {
  59.                 // Èç¹ûÉèÖÃʧ°Ü£¬ºöÂÔ´íÎó
  60.             }
  61.         }, 50);
  62.         
  63.         // ×Ô¶¯¹Ø±Õ
  64.         setTimeout(function() {
  65.             try {
  66.                 fui.close();
  67.             } catch (e) {
  68.                 // ºöÂԹرմíÎó
  69.             }
  70.         }, duration);
  71.         
  72.     } catch (e) {
  73.         printl("❌ ÃëÍÂ˾ÏÔʾʧ°Ü: " + e.message);
  74.         // ½µ¼¶·½°¸£ºÖ±½Ó´òÓ¡
  75.         printl("[Ìáʾ] " + message);
  76.     }
  77. }

  78. /**
  79. * ÔÚÖ¸¶¨Î»ÖÃÏÔʾÃëÍÂ˾£¨×îÉϲ㸡¶¯´°£©
  80. * @param {string} message - ÌáʾÐÅÏ¢
  81. * @param {string} position - λÖãº'top'(ÉÏ), 'bottom'(ÏÂ), 'left'(×ó), 'right'(ÓÒ)
  82. * @param {number} duration - ÏÔʾʱ³¤£¨ºÁÃ룩
  83. */
  84. function showQuickToastAt(message, position, duration) {
  85.     duration = duration || 3000;
  86.    
  87.     try {
  88.         var fui = new floatUI();
  89.         
  90.         fui.loadXML(
  91.             '<TextView xmlns:android="http://schemas.android.com/apk/res/android" ' +
  92.             'android:id="toastText" ' +
  93.             'android:layout_width="wrap_content" ' +
  94.             'android:layout_height="wrap_content" ' +
  95.             'android:text="' + message + '" ' +
  96.             'android:textColor="#FF0000" ' +
  97.             'android:textSize="20sp" ' +
  98.             'android:textStyle="bold" ' +
  99.             'android:background="#EE4A90E2" ' +
  100.             'android:padding="20dp" ' +
  101.             'android:gravity="center" />'
  102.         );
  103.         
  104.         var screenWidth = screen.getScreenWidth();
  105.         var screenHeight = screen.getScreenHeight();
  106.         var x, y;
  107.         
  108.         // ¸ù¾ÝλÖÃÉèÖÃ×ø±ê
  109.         switch(position) {
  110.             case 'top':
  111.                 x = (screenWidth - 300) / 2;
  112.                 y = screenHeight / 4;
  113.                 break;
  114.             case 'bottom':
  115.                 x = (screenWidth - 300) / 2;
  116.                 y = screenHeight * 3 / 4;
  117.                 break;
  118.             case 'left':
  119.                 x = screenWidth / 4;
  120.                 y = (screenHeight - 100) / 2;
  121.                 break;
  122.             case 'right':
  123.                 x = screenWidth * 3 / 4;
  124.                 y = (screenHeight - 100) / 2;
  125.                 break;
  126.             default:
  127.                 x = (screenWidth - 300) / 2;
  128.                 y = screenHeight / 3;
  129.         }
  130.         
  131.         setTimeout(function() {
  132.             fui.setPosition(x, y);
  133.             
  134.             // ÉèÖÃΪ×îÉϲ㴰¿ÚÀàÐÍ
  135.             try {
  136.                 var window = fui.getWindow();
  137.                 if (window) {
  138.                     var params = window.getAttributes();
  139.                     params.type = android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
  140.                     window.setAttributes(params);
  141.                 }
  142.             } catch (e) {
  143.                 // Èç¹ûÉèÖÃʧ°Ü£¬ºöÂÔ´íÎó
  144.             }
  145.         }, 50);
  146.         
  147.         setTimeout(function() {
  148.             try {
  149.                 fui.close();
  150.             } catch (e) {
  151.                 // ºöÂԹرմíÎó
  152.             }
  153.         }, duration);
  154.         
  155.     } catch (e) {
  156.         printl("❌ ÃëÍÂ˾ÏÔʾʧ°Ü: " + e.message);
  157.         printl("[Ìáʾ] " + message);
  158.     }
  159. }



  160. /**
  161. * ²âÊÔÃëÍÂ˾¹¦ÄÜ
  162. */
  163. function testQuickToast() {
  164.     printl("=== ²âÊÔÃëÍÂ˾¹¦ÄÜ ===");
  165.    
  166.     // ²âÊÔ1£º»ù±¾ÏÔʾ
  167.     showQuickToast("ÕâÊÇÃëÍÂ˾ÏûÏ¢");
  168.     sleep.millisecond(1200);
  169.    
  170.     // ²âÊÔ2£º¶Ìʱ¼äÏÔʾ
  171.     showQuickToast("¶ÌÏûÏ¢", 600);
  172.     sleep.millisecond(1000);
  173.    
  174.     // ²âÊÔ3£ºÁ¬ÐøÏÔʾ
  175.     showQuickToast("µÚÒ»Ìõ");
  176.     sleep.millisecond(300);
  177.     showQuickToast("µÚ¶þÌõ¸²¸ÇµÚÒ»Ìõ");
  178.     sleep.millisecond(1200);
  179.    
  180.     printl("=== ²âÊÔÍê³É ===");
  181. }

  182. /**
  183. * Ö÷º¯Êý - ²âÊÔÃëÍÂ˾¹¦ÄÜ
  184. */
  185. function main() {
  186.     printl("=== ÃëÍÂ˾¹¦ÄÜÑÝʾ ===");
  187.    
  188.     var message = "¼¼Êõ½»Á÷QQȺ711841924Ⱥһ£¬Æ»¹ûÄÚ²âȺ£¬528816639";
  189.    
  190.     // ÑÝʾ1£ºÉÏ·½ÏÔʾ£¨3Ã룩
  191.     printl("1. ÉÏ·½ÏÔʾ");
  192.     showQuickToastAt(message, 'top', 3000);
  193.     sleep.millisecond(3500);
  194.    
  195.     // ÑÝʾ2£ºÏ·½ÏÔʾ£¨3Ã룩
  196.     printl("2. Ï·½ÏÔʾ");
  197.     showQuickToastAt(message, 'bottom', 3000);
  198.     sleep.millisecond(3500);
  199.    
  200.     // ÑÝʾ3£º×ó²àÏÔʾ£¨3Ã룩
  201.     printl("3. ×ó²àÏÔʾ");
  202.     showQuickToastAt(message, 'left', 3000);
  203.     sleep.millisecond(3500);
  204.    
  205.     // ÑÝʾ4£ºÓÒ²àÏÔʾ£¨3Ã룩
  206.     printl("4. ÓÒ²àÏÔʾ");
  207.     showQuickToastAt(message, 'right', 3000);
  208.     sleep.millisecond(3500);
  209.    
  210.     printl("=== ÑÝʾÍê³É ===");
  211.     printl("\nʹÓ÷½·¨£º");
  212.     printl("  showQuickToast('ÏûÏ¢');                    // ĬÈÏ3Ã룬ÉÏ·½ÏÔʾ");
  213.     printl("  showQuickToastAt('ÏûÏ¢', 'top', 3000);     // ÉÏ·½ÏÔʾ");
  214.     printl("  showQuickToastAt('ÏûÏ¢', 'bottom', 3000);  // Ï·½ÏÔʾ");
  215.     printl("  showQuickToastAt('ÏûÏ¢', 'left', 3000);    // ×ó²àÏÔʾ");
  216.     printl("  showQuickToastAt('ÏûÏ¢', 'right', 3000);   // ÓÒ²àÏÔʾ");
  217. }

  218. // Ö´ÐÐÖ÷º¯Êý
  219. main();
¸´ÖÆ´úÂë




»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

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

¹Ø±Õ

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

map2

GMT+8, 2026-4-14 12:28 , Processed in 0.390241 second(s), 35 queries .

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