FL社区

2019-10-21 09:01:17 -0400
【布局】 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, orientation="vertical", layout_width="fill"; layout_height="fill"; { CardView; layout_marginTop="20dp"; layout_margin="8dp"; elevation="5dp"; id="kp1"; layout_width="80%w"; CardBackgroundColor="#FF00d492"; layout_height="13%h"; radius="8dp"; layout_gravity="center", { TextView, textColor="#ffffffff", layout_gravity="center", text="800资源站", textSize="25sp", }, }; }; -- --------------------布局二开始 {LinearLayout, orientation="vertical", layout_width="fill"; layout_height="fill"; { CardView; layout_margin="8dp"; elevation="5dp"; id="kp2"; layout_width="80%w"; CardBackgroundColor="#FF00d492"; layout_height="13%h"; radius="8dp"; layout_gravity="center", { TextView, textColor="#ffffffff", layout_gravity="center", text="猫咪在线网", textSize="25sp", }, }; }; -- --------------------布局三开始 {LinearLayout, orientation="vertical", layout_width="fill"; layout_height="fill"; { CardView; layout_margin="8dp"; elevation="5dp"; id="kp3"; layout_width="80%w"; CardBackgroundColor="#FF00d492"; layout_height="13%h"; radius="8dp"; layout_gravity="center", { TextView, textColor="#ffffffff", layout_gravity="center", text="大地资源网", textSize="25sp", }, }; }; -- --------------------布局四开始 {LinearLayout, orientation="vertical", layout_width="fill"; layout_height="fill"; { CardView; layout_margin="8dp"; elevation="5dp"; id="kp4"; layout_width="80%w"; CardBackgroundColor="#FF00d492"; layout_height="13%h"; radius="8dp"; layout_gravity="center", { TextView, textColor="#ffffffff", layout_gravity="center", text="小黄瓜资源", textSize="25sp", }, }; }; -- --------------------布局五开始 {LinearLayout, orientation="vertical", layout_width="fill"; layout_height="fill"; { CardView; layout_margin="8dp"; elevation="5dp"; id="kp5"; layout_width="80%w"; CardBackgroundColor="#FF00d492"; layout_height="13%h"; radius="8dp"; layout_gravity="center", { TextView, textColor="#ffffffff", layout_gravity="center", text="69资源网", textSize="25sp", }, }; }; }; }; }; webView.addView(loadlayout(yt)) kp1.onClick=function() 进入子页面("播放页",{链接="http://801zy.com/#801zy"}) end kp2.onClick=function() 进入子页面("播放页",{链接="https://www.af532.com/enter/ios.html"}) end kp3.onClick=function() 进入子页面("播放页",{链接="http://www.dadizy9.com/"}) end kp4.onClick=function() 进入子页面("播放页",{链接="http://xhgdy1.com/"}) end kp5.onClick=function() 进入子页面("播放页",{链接="http://69ccb.com/"}) end 【布局】
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N