//(id =1):
width=-1
height=-1
backgrou=through
backgroundcolor= white
//这里对于线性布局,在不同的手机会有乱码的问题,比如会有布局变乱的为题,我给大家推荐一个用法,可以弥补不足
//代码如下:
//界面的自适应布局代码为:
s a="w"
swh(a,w)
s a="h"
swh(a,h)
sn(55/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(2,"height",dx)
sn(50/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(3,"width",dx)
sn(50/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(3,"height",dx)
sn(13/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(3,"padding",dx)
sn(18/707,dx)
sn(h*dx,dx)
ss(dx+"sp",dx)
us(4,"textsize",dx)
sn(5/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(4,"layout_marginleft",dx)
sn(50/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(6,"width",dx)
sn(50/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(6,"height",dx)
sn(12/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us(6,"padding",dx)
sn(8/707,dx)
sn(h*dx,dx)
ss(dx+"dp",dx)
us((这里填布局id),"layout_marginbottom",dx)
us((这里填布局id),"text",sss.xmname)
//(以上代码放入安卓界面的载入事件中)
//(以下代码放入界面交互事件中)
t()
{
ss(sss.xm2+"src/",xm2)
fl(xm2,a)
for(sj;a)
{
f(sj?".iyu"||sj?".ilua"||sj?".ijs")
{
//界面名称
ss(xm2+sj,mc)
//文件大小
fs(mc,dx)
f(dx<1024)
{
ss(dx+"B",dxs)
}
else
{
s2(dx/1024,dx)
f(dx<1024)
{
ss(dx+"KB",dxs)
}
else
{
s2(dx/1024,dx)
ss(dx+"MB",dxs)
}
}
ula(xm,3=sj,4=dxs,7=mc)
}
}
ufnsui()
{
uls(5,xm,"adaptive2_list.iyu",-1,-2)
}
}
//这里关于稳定线性布局就介绍到这里
(id)//
width=-1
height=1800
url=https://sharechain.qq.com/818e683ce8b23c7f635f9d51b964a9a7
(这里填你自己的链接)
s a = "公告"
s b = "yu.iyu"
s c = "取消"
utw(null, a, b, c, false, v)
{
syso("点击了确定")
}
//程序运行时会直接跳转到id名称为yu的iyu界面。