代码拉取完成,页面将自动刷新
【布局】
--程序启动时会执行的事件
yt=
{
LinearLayout,
orientation="vertical",
layout_width="fill";
layout_height="fill";
background="#ffffffff",
--主框架纵向布局
{ScrollView,
layout_width="fill";
layout_height="fill";
VerticalScrollBarEnabled=false;
--设置滚动布局
{LinearLayout,
orientation="vertical",
layout_width="fill";
layout_height="fill";
id="dc";
-- -- --第一行开始
{
LinearLayout;
layout_height="wrap_content";
layout_width="fill";
orientation="vertical";
background=bgColor,
{
CardView;
layout_height="wrap_content";
layout_width="fill";
layout_gravity="center";
layout_margin="10dp";
radius="12dp";
elevation="3dp";
{
LinearLayout;
orientation="vertical";
layout_height="wrap_content";
layout_width="fill";
{
TextView,
layout_height="40dp",
layout_width="wrap",
textColor="#ff33a7aa",
layout_gravity="center",
gravity="center",
text="FL社区",
textSize="15sp",
textStyle="bold",--文本字体
},
-- --------------------布局一开始
{
LinearLayout,
orientation="horizontal",
layout_width="fill";
layout_height="fill";
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="maomi";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="猫咪资源网",
textColor="#b9000000",
textSize="20sp",
};
},
{
CardView;
-- layout_gravity="center";
layout_gravity='right';
layout_marginTop="9%h";
elevation="0dp";
layout_width="12%w";
layout_height="25dp";--25
cardBackgroundColor="#FFDBDBDB";
radius="5dp";
{
LinearLayout;
layout_width="fill";
layout_height="fill";
gravity="center";
id="yxx";
{
TextView;
textSize="10sp";
gravity="center",
text="推荐",
textColor="#ff0000";
};
};
};
},
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="lebo";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="乐播资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
};
-- --第一行结束
-- --第二行开始
{
LinearLayout,
orientation="horizontal",
layout_width="fill";
layout_height="fill";
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="lajiao";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="辣椒资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="ix";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="IX资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
};
-- -- 第二行结束
-- --第三行开始
{
LinearLayout,
orientation="horizontal",
layout_width="fill";
layout_height="fill";
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="hou";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="00后资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="yumi";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="玉米资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
};
-- --第三行结束
-- --第四行开始
{
LinearLayout,
orientation="horizontal",
layout_width="fill";
layout_height="fill";
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="sw";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="35资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="bb";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="800资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
};
-- --第四行结束
-- --第五行开始
{
LinearLayout,
orientation="horizontal",
layout_width="fill";
layout_height="fill";
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="dadi";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="大地资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
{
CardView;
layout_height="80dp";
layout_width="fill";
layout_weight="1";
layout_margin="8dp";
radius="10dp";
elevation="3dp";
cardBackgroundColor="#FFededed";
{
LinearLayout,
id="huanggua";
layout_width="fill",
orientation="vertical",--纵向排列
{
TextView,
elevation="2dp";
layout_gravity="top",
layout_height="5dp",
layout_width="fill",
backgroundColor=0x44000000,
},
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="小黄瓜资源网",
textColor="#b9000000",
textSize="20sp",
};
},
},
};
-- --第五行结束
};
};
};
-- --卡片布局结束
{
LinearLayout,
id="first";
layout_width="fill",
layout_height='80dp';--图片高度
orientation="vertical",--纵向排列
{
TextView;--文字控件
gravity="center";
layout_width='fill';--图片宽度
layout_height='80dp';--图片高度
text="网站收集较少,如有好网站\n可点击【蓝字】加群推荐!",
textColor="#ff2190ed",
textSize="15sp",
};
},
};
};
};
webView.addView(loadlayout(yt))
function 波纹(id,颜色)
import "android.content.res.ColorStateList"
local attrsArray = {android.R.attr.selectableItemBackgroundBorderless}
local typedArray =activity.obtainStyledAttributes(attrsArray)
ripple=typedArray.getResourceId(0,0)
Pretend=activity.Resources.getDrawable(ripple)
Pretend.setColor(ColorStateList(int[0].class{int{}},int{颜色}))
id.setBackground(Pretend.setColor(ColorStateList(int[0].class{int{}},int{颜色})))
end
--用法
波纹(maomi,0xfff48FB1)
波纹(lebo,0xfff48FB1)
波纹(lajiao,0xfff48FB1)
波纹(ix,0xfff48FB1)
波纹(hou,0xfff48FB1)
波纹(yumi,0xfff48FB1)
波纹(sw,0xfff48FB1)
波纹(bb,0xfff48FB1)
波纹(dadi,0xfff48FB1)
波纹(huanggua,0xfff48FB1)
maomi.onClick=function()
进入子页面("浏览页2",{链接="https://www.88erw.com/"})
end
lebo.onClick=function()
进入子页面("浏览页2",{链接="https://lebozy.com/"})
end
lajiao.onClick=function()
进入子页面("浏览页2",{链接="https://apilj.com/"})
end
ix.onClick=function()
进入子页面("浏览页2",{链接="http://api.iixxzyapi.com"})
end
hou.onClick=function()
进入子页面("浏览页2",{链接="http://www.00h19.com/"})
end
yumi.onClick=function()
进入子页面("浏览页2",{链接="https://ym666.vip/"})
end
sw.onClick=function()
进入子页面("浏览页2",{链接="http://www.35zy22.com/"})
end
bb.onClick=function()
进入子页面("浏览页2",{链接="http://801zy.com/#801zy"})
end
dadi.onClick=function()
进入子页面("浏览页2",{链接="http://www.dadizy9.com/"})
end
huanggua.onClick=function()
进入子页面("浏览页2",{链接="http://xhgdy1.com/"})
end
first.onClick=function()
加QQ群(853604551)
end
【布局】
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。