1 Star 1 Fork 1

zhijiantv/app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fuli 10.27 KB
一键复制 编辑 原始数据 按行查看 历史
zhijiantv 提交于 2020-09-04 16:08 +08:00 . update fuli.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
【布局】
--程序启动时会执行的事件
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
【布局】
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhijiantv/app.git
[email protected]:zhijiantv/app.git
zhijiantv
app
app
master

搜索帮助