ysdq1.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. 随机=tointeger(tostring(math.random(-35235686,-1285363)))
  2. 随机1=tointeger(tostring(math.random(-35235686,-1285363)))
  3. 写入文件(随机色,随机)
  4. 读取颜色(随机色,随机色)
  5. function 布局边框(边框粗细,边框颜色,背景颜色,圆角大小)
  6. import "android.graphics.drawable.GradientDrawable"
  7. drawable=GradientDrawable()
  8. drawable.setShape(GradientDrawable.RECTANGLE)
  9. drawable.setStroke(边框粗细,tonumber(边框颜色))--边框粗细和颜色
  10. drawable.setColor(tonumber(背景颜色))--背景颜色
  11. drawable.setCornerRadius(圆角大小)--圆角
  12. return drawable
  13. end
  14. lay=
  15. {
  16. LinearLayout;
  17. orientation="vertical";
  18. background='#ffffff',
  19. {
  20. TextView;--文本控件
  21. text='影视推荐';--显示文字
  22. textSize='20sp';--文字大小
  23. --textColor=随机;--文字颜色
  24. textColor='#333333';--文字颜色
  25. layout_gravity="center|bottom";
  26. };
  27. {
  28. TextView;--横向分割线
  29. layout_width='97.4%w';--分割线宽度
  30. layout_height='5px';--分割线厚度
  31. layout_marginTop='10dp';--布局顶距
  32. layout_marginBottom='10dp';--布局底距
  33. layout_gravity='center';--高度居中
  34. backgroundColor='#FFBEBEBE';--分割线颜色
  35. };
  36. {
  37. LinearLayout,
  38. layout_width="100%w",
  39. layout_height="50dp",
  40. layout_weight="1.0",
  41. {
  42. Button,
  43. textSize="14dp",
  44. textColor='#FFEC6A5C';--文字颜色
  45. text="腾讯视频",
  46. onClick=function()
  47. 子页面("安卓",'https://m.v.qq.com/')
  48. end,
  49. layout_width="fill",
  50. layout_height="fill",
  51. layout_weight="1.0",
  52. layout_margin='5dp';--卡片边距
  53. BackgroundDrawable=布局边框(4,0x77000000,0x00000000,17);
  54. },
  55. {
  56. Button,
  57. textSize="14dp",
  58. textColor='#FFEC6A5C';--文字颜色
  59. text="优酷视频",
  60. onClick=function()
  61. 子页面("安卓",'http://www.youku.com/')
  62. end,
  63. layout_width="fill",
  64. layout_height="fill",
  65. layout_weight="1.0",
  66. layout_margin='5dp';--卡片边距
  67. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  68. },
  69. {
  70. Button,
  71. textSize="14dp",
  72. textColor='#FFEC6A5C';--文字颜色
  73. text="芒果TV",
  74. onClick=function()
  75. 子页面("安卓",'http://m.mgtv.com/#/channel/home')
  76. end,
  77. layout_width="fill",
  78. layout_height="fill",
  79. layout_weight="1.0",
  80. layout_margin='5dp';--卡片边距
  81. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  82. },
  83. },
  84. {
  85. LinearLayout,
  86. layout_width="100%w",
  87. layout_height="50dp",
  88. layout_weight="1.0",
  89. {
  90. Button,
  91. textSize="14dp",
  92. textColor='#FFEC6A5C';--文字颜色
  93. text="爱奇艺",
  94. onClick=function()
  95. 子页面("安卓",'http://m.iqiyi.com/lib/dianying/')
  96. end,
  97. layout_width="fill",
  98. layout_height="fill",
  99. layout_weight="1.0",
  100. layout_margin='5dp';--卡片边距
  101. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  102. },
  103. {
  104. Button,
  105. textSize="14dp",
  106. textColor='#FFEC6A5C';--文字颜色
  107. text="搜狐视频",
  108. onClick=function()
  109. 子页面("安卓",'https://m.tv.sohu.com/')
  110. end,
  111. layout_width="fill",
  112. layout_height="fill",
  113. layout_weight="1.0",
  114. layout_margin='5dp';--卡片边距
  115. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  116. },
  117. {
  118. Button,
  119. textSize="14dp",
  120. textColor='#FFEC6A5C';--文字颜色
  121. text="乐视视频",
  122. onClick=function()
  123. 子页面("安卓",'http://m.le.com/')
  124. end,
  125. layout_width="fill",
  126. layout_height="fill",
  127. layout_weight="1.0",
  128. layout_margin='5dp';--卡片边距
  129. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  130. },
  131. },
  132. {
  133. LinearLayout,
  134. layout_width="100%w",
  135. layout_height="50dp",
  136. layout_weight="1.0",
  137. {
  138. Button,
  139. textSize="14dp",
  140. textColor='#FFEC6A5C';--文字颜色
  141. text="FREE影视",
  142. onClick=function()
  143. 子页面("安卓",'https://www.freeok.vip/')
  144. end,
  145. layout_width="fill",
  146. layout_height="fill",
  147. layout_weight="1.0",
  148. layout_margin='5dp';--卡片边距
  149. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  150. },
  151. {
  152. Button,
  153. textSize="14dp",
  154. text="情满九道弯",
  155. textColor='#FFEC6A5C';--文字颜色
  156. onClick=function()
  157. --写入文件(自动旋转,"已开启自动旋转")
  158. --写入文件(全屏,"已开启全屏")
  159. --写入文件(UA,塞班)
  160. --写入文件(UA标识,"塞班")
  161. 子页面("安卓",'http://txcgb.woan.link/ziyuan/360/play/?vid=tv%2FRbVwbH7mRW8nMn')
  162. end,
  163. layout_width="fill",
  164. layout_height="fill",
  165. layout_weight="1.0",
  166. layout_margin='5dp';--卡片边距
  167. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  168. },
  169. {
  170. Button,
  171. textSize="14dp",
  172. textColor='#FFEC6A5C';--文字颜色
  173. text="预留入口",
  174. onClick=function()
  175. --子页面("安卓",'')
  176. end,
  177. layout_width="fill",
  178. layout_height="fill",
  179. layout_weight="1.0",
  180. layout_margin='5dp';--卡片边距
  181. BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
  182. },
  183. },
  184. }
  185. webView.addView(loadlayout(lay))