【梅开二度】圆角弹窗-myu

敖老头   ·   发表于 5个月前   ·   IAPP
//创建一个iapp项目,删掉mian界面然后添加一个线性
布局
//高宽都弄成-1,然后创建一个文本.myu界面,内容如下
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
height=-1
gravity=center
background=#8f000000", b)
ssj(id, "clicki")
{
us(7777,"visibility","gone")
}
s id =8888
s did =7777
nvw(id, did, "卡片", "width=280dp
height=-2
app_CardcornerRadius=15dp", b)
us(123456,"width",w)
s id =9999
s did =8888
nvw(id, did, "线性布局", "width=-1
height=-1
orientation=vertical
padding=20dp", b)
s id =11111
s did =9999
nvw(id, did, "文本", "width=-1
height=-2
text=公告
textsize=20sp
textcolor=#000000
textstyle=bold", b)
us(11111,"text",标题)
s id =22222
s did =9999
nvw(id, did, "文本", "width=-1
height=-2
text=滴滴滴,这里是弹窗模块,欢迎使用弹窗模块!
textsize=15sp
textcolor=#000000
layout_marginTop=10dp", b)
us(22222,"text",内容)
s id =33333
s did =9999
nvw(id, did, "卡片", "width=-1
height=-2
app_CardcornerRadius=15dp
app_CardElevation=0
layout_marginTop=10dp", b)
s id =44444
s did =33333
nvw(id, did, "图像", "width=-1
height=150dp
src=@-5d03bb1c865111d6.jpg
scaleType=centercrop", b)
us(44444,"src",图片)
/.s id =55555
s did =9999
nvw(id, did, "线性布局", "width=-1
height=-2
orientation=horizontal
gravity=right", b)
s id =66666
s did =55555
nvw(id, did, "按钮", "width=-1
height=-1
text=确定
ps=backgroundcolor=0
BackgroundRipple=#ff898989", b)
./
end fn

//然后保存,再进mian界面点击载入事件写上这行代码

//fn 着色.弹窗("你想要的弹窗标题","你想要的弹窗内容","@icon_iapp.png")

0 Reply   |  Until 5个月前 | 259 View
LoginCan Publish Content