123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- 随机=tointeger(tostring(math.random(-35235686,-1285363)))
- 随机1=tointeger(tostring(math.random(-35235686,-1285363)))
- 写入文件(随机色,随机)
- 读取颜色(随机色,随机色)
- function 布局边框(边框粗细,边框颜色,背景颜色,圆角大小)
- import "android.graphics.drawable.GradientDrawable"
- drawable=GradientDrawable()
- drawable.setShape(GradientDrawable.RECTANGLE)
- drawable.setStroke(边框粗细,tonumber(边框颜色))--边框粗细和颜色
- drawable.setColor(tonumber(背景颜色))--背景颜色
- drawable.setCornerRadius(圆角大小)--圆角
- return drawable
- end
- lay=
- {
- LinearLayout;
- orientation="vertical";
- background='#ffffff',
- {
- TextView;--文本控件
- text='影视推荐';--显示文字
- textSize='20sp';--文字大小
- --textColor=随机;--文字颜色
- textColor='#333333';--文字颜色
- layout_gravity="center|bottom";
- };
- {
- TextView;--横向分割线
- layout_width='97.4%w';--分割线宽度
- layout_height='5px';--分割线厚度
- layout_marginTop='10dp';--布局顶距
- layout_marginBottom='10dp';--布局底距
- layout_gravity='center';--高度居中
- backgroundColor='#FFBEBEBE';--分割线颜色
- };
- {
- LinearLayout,
- layout_width="100%w",
- layout_height="50dp",
- layout_weight="1.0",
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="腾讯视频",
- onClick=function()
- 子页面("安卓",'https://m.v.qq.com/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="优酷视频",
- onClick=function()
- 子页面("安卓",'http://www.youku.com/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="芒果TV",
- onClick=function()
- 子页面("安卓",'http://m.mgtv.com/#/channel/home')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- },
- {
- LinearLayout,
- layout_width="100%w",
- layout_height="50dp",
- layout_weight="1.0",
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="爱奇艺",
- onClick=function()
- 子页面("安卓",'http://m.iqiyi.com/lib/dianying/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="搜狐视频",
- onClick=function()
- 子页面("安卓",'https://m.tv.sohu.com/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="乐视视频",
- onClick=function()
- 子页面("安卓",'http://m.le.com/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- },
- {
- LinearLayout,
- layout_width="100%w",
- layout_height="50dp",
- layout_weight="1.0",
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="FREE影视",
- onClick=function()
- 子页面("安卓",'https://www.freeok.vip/')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- text="情满九道弯",
- textColor='#FFEC6A5C';--文字颜色
- onClick=function()
- --写入文件(自动旋转,"已开启自动旋转")
- --写入文件(全屏,"已开启全屏")
- --写入文件(UA,塞班)
- --写入文件(UA标识,"塞班")
- 子页面("安卓",'http://txcgb.woan.link/ziyuan/360/play/?vid=tv%2FRbVwbH7mRW8nMn')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- {
- Button,
- textSize="14dp",
- textColor='#FFEC6A5C';--文字颜色
- text="预留入口",
- onClick=function()
- --子页面("安卓",'')
- end,
- layout_width="fill",
- layout_height="fill",
- layout_weight="1.0",
- layout_margin='5dp';--卡片边距
- BackgroundDrawable=布局边框(4,0x77000000 ,0x00000000,17);
- },
- },
- }
- webView.addView(loadlayout(lay))
|