s zhu="1"
//主控件id
s zhi="2"
//子控件id
s shu="60"
//数量
s jd="45"
//正数45向左,负数45向右,0为垂直
s big="3800"
//最慢下落速度
s sm="800"
//最快下落速度
sl("150dp;120dp;90dp;60dp;30dp",";",sh)
//五级视距雨滴长
sl("5dp;4dp;3dp;2dp;1dp",";",sw)
//五级视距雨滴宽
swh("pxw",w)
s(w/shu,ww)
s(w/shu,www)
s(w/2,w1)
swh("pxhh",h)
s(h/shu,hh)
s(h/shu,hhh)
s(h/2,h1)
s+(200,h)
s+(200,w)
ngde(0,0,"#FF09DBDB|#00ff000a","#fd000000","bottomtop",color)
//ngde里面的#FF09DBDB是雨滴颜色
for(1;shu)
{
sran(sm,big,stop)
sgszl(sw,sww)
sgszl(sh,shh)
s-(1,sww)
sran(0,sww,sww)
sran(0,sww,shh)
sgsz(sw,sww,yw)
sgsz(sh,shh,yh)
//生成五级视距大小
ss("width="+yw+"\nheight="+yh,ut)
nvw(zhi,zhu,"相对布局",ut)
us(zhi,"background",color)
//生成雨滴
dhas(dh1,zhi,"rotation",0,jd)
dh(dh1,"start")
dht(dh2,w,ww,hh,h1)
dh(dh2,"duration",stop)
dh(dh2,"repeat",-1)
us(zhi,"dh",dh2)
s+(www,w1)
s+(hhh,h1)
s+(www,ww)
s+(hhh,hh)
s+(1,zhi)
}

//主控件id
s zhi="2"
//子控件id
s shu="60"
//数量
s jd="45"
//正数45向左,负数45向右,0为垂直
s big="3800"
//最慢下落速度
s sm="800"
//最快下落速度
sl("150dp;120dp;90dp;60dp;30dp",";",sh)
//五级视距雨滴长
sl("5dp;4dp;3dp;2dp;1dp",";",sw)
//五级视距雨滴宽
swh("pxw",w)
s(w/shu,ww)
s(w/shu,www)
s(w/2,w1)
swh("pxhh",h)
s(h/shu,hh)
s(h/shu,hhh)
s(h/2,h1)
s+(200,h)
s+(200,w)
ngde(0,0,"#FF09DBDB|#00ff000a","#fd000000","bottomtop",color)
//ngde里面的#FF09DBDB是雨滴颜色
for(1;shu)
{
sran(sm,big,stop)
sgszl(sw,sww)
sgszl(sh,shh)
s-(1,sww)
sran(0,sww,sww)
sran(0,sww,shh)
sgsz(sw,sww,yw)
sgsz(sh,shh,yh)
//生成五级视距大小
ss("width="+yw+"\nheight="+yh,ut)
nvw(zhi,zhu,"相对布局",ut)
us(zhi,"background",color)
//生成雨滴
dhas(dh1,zhi,"rotation",0,jd)
dh(dh1,"start")
dht(dh2,w,ww,hh,h1)
dh(dh2,"duration",stop)
dh(dh2,"repeat",-1)
us(zhi,"dh",dh2)
s+(www,w1)
s+(hhh,h1)
s+(www,ww)
s+(hhh,hh)
s+(1,zhi)
}





鞪磔噼麓遝









