Closed WeSrc-Yin closed 3 years ago
popup的UI xml文件如下:
<popup style="popup_s1" close_when_click="false" close_when_click_outside="true" close_when_timeout="3000" x="140" y="b" w="300" h="460" theme="window_custom">
<view x="10" y="20" w="-20" h="-40">
<button name ="btn_blue_color" x="50" y="60" w="-50" h="60" style="empty" children_layout="default(xm=10,r=1,c=2)">
<label y="middle" w="100" h="50" name="label_blue" tr_text="blue" style="text_align_left_white"/>
<label y="middle" w="60" h="40" style="blue_color_tile"/>
</button>
<button name ="btn_red_color" x="50" y="120" w="-50" h="60" style="empty" children_layout="default(xm=10,r=1,c=2)">
<label y="middle" w="100" h="50" name="label_red" tr_text="red" style="text_align_left_white"/>
<label y="middle" w="60" h="40" style="red_color_tile"/>
</button>
</view>
</popup>
我的label的style如下:
我的popup style如下:
我的label的style如下:
我的popup style如下: