五行资源网给大家分享一个iapp弹窗模块,文本支持html代码布局,代码就不打包了,在下面,自己复制吧!
fn 弹窗(标题,内容,图片)
swh("w",w)
s-(w,80,w)
syso(w)
ss(w+"dp",w)
syso(w)
s id =7777
s did =1
nvw(id, did, "线性布局", "width=-1\nheight=-1\ngravity=center\nbackground=#8f000000", b)
ssj(id, "clicki")
{
us(7777,"visibility","gone")
}
s id =8888
s did =7777
nvw(id, did, "卡片", "width=280dp\nheight=-2\napp_CardcornerRadius=15dp", b)
us(123456,"width",w)
s id =9999
s did =8888
nvw(id, did, "线性布局", "width=-1\nheight=-1\norientation=vertical\npadding=20dp", b)
s id =11111
s did =9999
nvw(id, did, "文本", "width=-1\nheight=-2\ntext=公告\ntextsize=20sp\ntextcolor=#000000\ntextstyle=bold", b)
us(11111,"text",标题)
s id =22222
s did =9999
nvw(id, did, "文本", "width=-1\nheight=-2\ntext=滴滴滴,这里是弹窗模块,欢迎使用弹窗模块!\ntextsize=15sp\ntextcolor=#000000\nlayout_marginTop=10dp", b)
us(22222,"text",内容)
s id =33333
s did =9999
nvw(id, did, "卡片", "width=-1\nheight=-2\napp_CardcornerRadius=15dp\napp_CardElevation=0\nlayout_marginTop=10dp", b)
s id =44444
s did =33333
nvw(id, did, "图像", "width=-1\nheight=150dp\nsrc=@-5d03bb1c865111d6.jpgnscaleType=centercrop", b)
us(44444,"src",图片)
/.s id =55555
s did =9999
nvw(id, did, "线性布局", "width=-1\nheight=-2\norientation=horizontal\ngravity=right", b)
s id =66666
s did =55555
nvw(id, did, "按钮", "width=-1\nheight=-1\ntext=确定\nps=backgroundcolor=0\nBackgroundRipple=#ff898989", b)
./
end fn
评论