其他分享
首页 > 其他分享> > soui(1)之一个半透明的窗口

soui(1)之一个半透明的窗口

作者:互联网

一个样式

xml源码

<SOUI name="mainWindow" title="@string/title" bigIcon="ICON_LOGO:32" smallIcon="ICON_LOGO:16" margin="5,5,5,5"  resizable="1" wndType="appMain"
appWnd="1"
translucent="1" 
>
  <root  width="600" height="400" colorBkgnd="#323232ce">
    <caption pos="0,0,-0,400" show="1" font="adding:0">

      <imgbtn name="btn_close" skin="_skin.sys.btn.close"    pos="-45,0" tip="close" animate="1"/>
      <imgbtn name="btn_max" skin="_skin.sys.btn.maximize"  pos="-83,0" animate="1" />
      <imgbtn name="btn_restore" skin="_skin.sys.btn.restore"  pos="-83,0" show="0" animate="1" />
      <imgbtn name="btn_min" skin="_skin.sys.btn.minimize" pos="-121,0" animate="1" />
    </caption>
    <window pos="5,[2,-5,-5"  >

    </window>
  </root>
</SOUI>

半透明核心代码

colorBkgnd="#323232ce"

颜色由以下组成: #RGB Alpha. 这里,alpha的值是 ce. R是第一个32, G是第二个32,B是第三个32.

标签:xml,窗口,soui,32,ce,RGB,源码,半透明
来源: https://www.cnblogs.com/pandamohist/p/14221156.html