仿酷狗音乐播放器开发日志二十四 选项设置窗体的实现(附328行xml布局源码)

转载请说明原出处,谢谢~~

       花了两天时间把仿酷狗的选项设置窗体做出来了,当然了只是做了外观。现在开学了,写代码的时间减少,所以整个仿酷狗的工程开发速度减慢了。今天把仿酷狗的选项设置窗体的布局代码分享出来,给学习duilib布局的朋友做个demo。现在编写的仿酷狗选项设置窗体和原酷狗的窗体不细看几乎看不出差别,控件的布局位置和原酷狗最多只有几个像素的位置差别。

       先来看一下原酷狗的选项设置窗体的其中一个页面:

       如果还不太会布局的朋友可以先看我前些日子写的关于duilib布局的博客《duilib各种布局的作用,相对布局与绝对布局的的意义与用法》。可以看出来,选项设置窗体的整体布局并不复杂,但是其中分为多个页面,而每个页面里面又有许多控件,所以写这个窗体的布局简单而繁琐。这是我的眼中的布局图:

        左侧使用纵向布局内嵌Option控件实现,而右侧界面的主界面使用TabLayout布局实现切换的功能。每个页面使用纵向布局来做容器。

       在设置窗体里大量用到Label、Button、Option、CheckBox控件,为了避免重复写属性代码,所以应该使用Default标签定义这几个控件的默认属性,比如字体颜色,禁用状态下的字体颜色,CheckBox控件的状态图等。这里给出默认标签的代码:

<Default name="Label" value="autocalcwidth="true" textcolor="#FF454545" " />
<Default name="Button" value="autocalcwidth="true" textcolor="#FF454545" disabledtextcolor="#FF454545" " />
<Default name="CheckBox" value="textcolor="#FF454545" disabledtextcolor="#FF888888" width="10" height="14" textpadding="16,1,0,0" align="left" normalimage="file='UI\setting\check_normal.png' dest='0,0,14,14'" hotimage="file='UI\setting\check_hover.png' dest='0,0,14,14'" pushedimage="file='UI\setting\check_down.png' dest='0,0,14,14'" disabledimage="file='UI\setting\check_disable.png' dest='0,0,14,14'" selectedimage="file='UI\setting\checked_normal.png' dest='0,0,14,14'" selectedhotimage="file='UI\setting\checked_hover.png' dest='0,0,14,14'" selectedpushedimage="file='UI\setting\checked_down.png' dest='0,0,14,14'" autocalcwidth="true""/>

       我这里使用了autocalcwidth属性,这是我另外添加的属性,是群里朋友修改的代码。用来让Label控件根据问题内容而自动计算宽度,这样可以省去很多时间让我专心把时间投入到布局上面。

       如同我在前面的博客提到的,能不使用绝对布局就不用,所以在这整个布局代码中,只有两三处必须用绝对布局的地方我才使用了绝对布局,其余代码都是使用相对布局。所以这些布局代码可以帮助duilib新手朋友学习相对布局的用法。

      开发仿酷狗时我使用的是duilib的扩展版本uilib库,而且我又对uilib库进行过很多次的bug和性能修复(具体的修复代码可以从前面的博客看到),所以今天发出来的布局代码大家不能直接拷贝后使用,而要根据自己的情况进行必要的修改。没有什么其他要点了,直接发出效果图。一共九张 ,分别对应酷狗选项设置窗体的九个页面。

       下面把完全的布局代码贴出来,博客最后会把布局的下载链接也发出来:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<Window size="632,484" sizebox="4,4,4,4" caption="0,0,0,30" mininfo="632,484" roundcorner="3,3" bktrans="false" >
    <Font name="宋体" size="12" default="true"/>
    <Font name="宋体" size="12" bold="true" />
    <Default name="Label" value="autocalcwidth="true" textcolor="#FF454545" " />
    <Default name="Button" value="autocalcwidth="true" textcolor="#FF454545" disabledtextcolor="#FF454545" " />
    <Default name="CheckBox" value="textcolor="#FF454545" disabledtextcolor="#FF888888" width="10" height="14" textpadding="16,1,0,0" align="left" normalimage="file='UI\setting\check_normal.png' dest='0,0,14,14'" hotimage="file='UI\setting\check_hover.png' dest='0,0,14,14'" pushedimage="file='UI\setting\check_down.png' dest='0,0,14,14'" disabledimage="file='UI\setting\check_disable.png' dest='0,0,14,14'" selectedimage="file='UI\setting\checked_normal.png' dest='0,0,14,14'" selectedhotimage="file='UI\setting\checked_hover.png' dest='0,0,14,14'" selectedpushedimage="file='UI\setting\checked_down.png' dest='0,0,14,14'" autocalcwidth="true""/>

    <VerticalLayout  bkcolor="#FFFFFFFF" bordercolor="#FF47484B" bordersize="1" inset="1,1,1,1">
        <HorizontalLayout name="background" height="30" bkimage="file='UI\BKImage\4.jpg' source='0,0,1000,30'" ><!-- 标题栏 -->
            <Label text="选项设置——Redrain播放器" textcolor="#FFFFFFFF" textpadding="5,0,0,0" font="1" autocalcwidth="false" width="300"/>
			<Control />
			<Button name="closebtn" width="23" height="18" padding="0,6,0,0" normalimage="UI\title\close_normal.png" hotimage="UI\title\close_hover.png" pushedimage="UI\title\close_down.png" />
        </HorizontalLayout>

        <HorizontalLayout >
            <VerticalLayout width="135" inset="7,0,0,0" bkcolor="#FFE0F2FE" rightbordersize="1" bordercolor="#FFCEDEEA"><!-- 左侧选项卡 -->
            	<Label bkimage="UI\setting\lblTop.png" padding="0,24,0,0" width="128" height="28" />
            	<Option name="setting_OptConv" width="128" height="26" normalimage="UI\setting\conv_normal.png" hotimage="UI\setting\conv_hover.png" pushedimage="UI\setting\conv_down.png"  group="Setting_Tab" selectedimage="UI\setting\conv_down.png"  selected="true" bindtablayoutname="setting_Tab" bindtabindex="0"/>
   				<Option name="setting_OptDownload" width="128" height="26" normalimage="UI\setting\download_normal.png" hotimage="UI\setting\download_hover.png" pushedimage="UI\setting\download_down.png"  group="Setting_Tab" selectedimage="UI\setting\download_down.png" bindtablayoutname="setting_Tab" bindtabindex="1"/>
   				<Option name="setting_OptAcce" width="128" height="26" normalimage="UI\setting\acce_normal.png" hotimage="UI\setting\acce_hover.png" pushedimage="UI\setting\acce_down.png"  group="Setting_Tab" selectedimage="UI\setting\acce_down.png" bindtablayoutname="setting_Tab" bindtabindex="2"/>
   				<Option name="setting_OptUpdate" width="128" height="26" normalimage="UI\setting\update_normal.png" hotimage="UI\setting\update_hover.png" pushedimage="UI\setting\update_down.png"  group="Setting_Tab" selectedimage="UI\setting\update_down.png" bindtablayoutname="setting_Tab" bindtabindex="3"/>

   				<Label bkimage="UI\setting\lblMid.png" padding="0,30,0,0" width="128" height="28" />
   				<Option name="setting_OptLrcDest" width="128" height="26" normalimage="UI\setting\lrc_dest_normal.png" hotimage="UI\setting\lrc_dest_hover.png" pushedimage="UI\setting\lrc_dest_down.png"  group="Setting_Tab" selectedimage="UI\setting\lrc_dest_down.png" bindtablayoutname="setting_Tab" bindtabindex="4"/>
   				<Option name="setting_OptLrcWnd" width="128" height="26" normalimage="UI\setting\lrc_wnd_normal.png" hotimage="UI\setting\lrc_wnd_hover.png" pushedimage="UI\setting\lrc_wnd_down.png"  group="Setting_Tab" selectedimage="UI\setting\lrc_wnd_down.png" bindtablayoutname="setting_Tab" bindtabindex="5"/>

   				<Label bkimage="UI\setting\lblBot.png" padding="0,30,0,0" width="128" height="28" />
   				<Option name="setting_OptAudio" width="128" height="26" normalimage="UI\setting\Audio_normal.png" hotimage="UI\setting\Audio_hover.png" pushedimage="UI\setting\Audio_down.png"  group="Setting_Tab" selectedimage="UI\setting\Audio_down.png" bindtablayoutname="setting_Tab" bindtabindex="6"/>
   				<Option name="setting_OptNet" width="128" height="26" normalimage="UI\setting\net_normal.png" hotimage="UI\setting\net_hover.png" pushedimage="UI\setting\net_down.png"  group="Setting_Tab" selectedimage="UI\setting\net_down.png" bindtablayoutname="setting_Tab" bindtabindex="7"/>
   				<Option name="setting_OptOther" width="128" height="26" normalimage="UI\setting\other_normal.png" hotimage="UI\setting\other_hover.png" pushedimage="UI\setting\other_down.png"  group="Setting_Tab" selectedimage="UI\setting\other_down.png" bindtablayoutname="setting_Tab" bindtabindex="8"/>

            </VerticalLayout >

            <VerticalLayout>
            	<TabLayout name="setting_Tab" selectedid="0" inset="50,26,0,0"><!-- 主体界面 -->
	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第一个设置页面 -->
	               		<Button text="启动时" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<HorizontalLayout height="14" padding="0,2,0,0">
	               			<CheckBox text="自动播放歌曲"/>
	               			<CheckBox text="恢复上次播放的状态" padding="106,0,0,0" />
	               		</HorizontalLayout>
	               		<CheckBox text="播放Redrain问候语" selected="true" />

	               		<Button text="关闭主面板时"  padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<Option text="最小化到系统托盘,不退出程序"  padding="0,2,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingConv" selected="true" />
	               		<Option text="退出程序"  padding="0,2,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingConv"/>

	               		<Button text="其他设置"  padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<CheckBox text="关闭网络功能,作为本地播放器使用。(试听和下载会重新打开网络功能)"/>
	               		<CheckBox text="允许弹出推广信息" selected="true"/>
	               		<CheckBox text="开机时自动启动Redrain播放器"/>
	               		<CheckBox text="开机时启动桌面写真"/>
	               		<CheckBox text="USB连接时显示设备接入提示" selected="true"/>

	               		<Button text="文件关联"  padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<CheckBox text="将Redrain播放器作为默认音乐播放器"/>
	               	</VerticalLayout>

	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第二个设置页面 -->
	               		<Button text="目录设置" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<VerticalLayout height="85">
		               		<HorizontalLayout height="27" >
		               			<Label text="下载目录  " width="65"/>
		               			<Edit name="" text="D:\Redrain\" width="252" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               			<Button name="" text="更改目录" width="70" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" >
		               			<Label text="歌词目录  " width="65"/>
		               			<Edit name="" text="D:\Redrain\Lyric\" width="252" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               			<Button name="" text="更改目录" width="70" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" >
		               			<Label text="缓存目录  " width="65"/>
		               			<Edit name="" text="D:\Redrain\Temp\" width="252" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               			<Button name="" text="更改目录" width="70" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
		               		</HorizontalLayout>
	               		</VerticalLayout>
	               		<HorizontalLayout height="24">
	               			<Label text="缓存大小设置" textpadding="0,3,0,0" width="75"/>
	               			<Option text="自动"  padding="30,3,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingDownload" selected="true" />
	               			<Option text="手动"  padding="30,3,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingDownload" selected="true" />
	               			<HorizontalLayout width="60" height="22" padding="28,0,0,0" >
	               				<Edit name="" text="4704" width="60" height="22" bordercolor="#FFC5C5C5" textpadding="5,5,20,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
	               				<Button float="true" pos="40,1,0,0" height="10" width="19" normalimage="UI\setting\arrowup_normal.png" hotimage="UI\setting\arrowup_hover.png" pushedimage="UI\setting\arrowup_down.png"/>
	               				<Button float="true" pos="40,11,0,0" height="10" width="19" normalimage="UI\setting\arrowdown_normal.png" hotimage="UI\setting\arrowdown_hover.png" pushedimage="UI\setting\arrowdown_down.png"/>
	               			</HorizontalLayout>
	               			<Label text=" 512M-5210M" width="75" enabled="false" />

	               		</HorizontalLayout>

	               		<Button text="速度控制"  padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<Option text="全速下载"  padding="0,8,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingConv" selected="true" />
	               		<HorizontalLayout height="24">
	               			<Option text="自定义" padding="0,5,0,0" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingConv"/>
	               			<Label text="下载带宽" textpadding="20,5,0,0" />
	               			<Button name="" text="最快速度"  align="left" textpadding="6,6,0,0" width="73" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="KB/s" textpadding="3,5,0,0" />
	               			<Label text="上载带宽" textpadding="20,5,0,0" />
	               			<Button name="" text="无限制" align="left" textpadding="6,6,0,0" width="73" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="KB/s" textpadding="3,5,0,0" />
	               		</HorizontalLayout>
	               		<CheckBox text="开启VIP下载加速" enabled="false" />

	               		<Button text="其他" padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<CheckBox text="每次下载弹出音质选择框" selected="true" padding="0,8,0,0"/>
	               		<HorizontalLayout height="27" >
		               			<Label text="同时下载文件数: " />
		               			<Edit name="" text="3" width="80" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               			<Label text="下载端口: " width="65" padding="30,0,0,0" />
		               			<Edit name="" text="8000" width="80" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               		</HorizontalLayout>
	               	</VerticalLayout>

	               	<VerticalLayout ><!-- 第三个设置页面 -->
	               		<Button text="播放设置" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<Button  width="1" height="1" />
	               		<HorizontalLayout height="27" padding="0,8,0,0" >
		               		<Label text="播放/暂停" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Alt + F5" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF" />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="上一首" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Alt + Left" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="下一首" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Alt + Right" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="快进" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + Shift + Right" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="快退" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + Shift + Left" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="增大音量" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + G" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="减小音量" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Alt + Down" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="静音" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + Alt + S" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<Button text="歌词控制" padding="0,12,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<HorizontalLayout height="27" padding="0,8,0,0">
		               		<Label text="显示/隐藏桌面歌词" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + Alt + D" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
		               	<HorizontalLayout height="27" >
		               		<Label text="锁定/解锁桌面歌词" autocalcwidth="false" width="190"/>
		               		<Edit name="" text="Ctrl + Alt + E" align="center" width="166" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               	</HorizontalLayout>
	               		<HorizontalLayout height="25" padding="0,8,0,0">
	               			<CheckBox text="启用全局快捷键" padding="0,5,0,0" selected="true" />
	               			<CheckBox text="弹出快捷键提示窗口" padding="30,5,0,0" />
	               			<Button text="恢复默认" width="90" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               		</HorizontalLayout>
	               	</VerticalLayout>

	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第四个设置页面 -->
	               		<Button text="软件更新" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
		               	<Label text="当前版本:Redrain播放器 V1000" />
		               	<Label text="更新事件:2014.8.25" />
		               	<Button text="手动检查更新" width="100" height="25" padding="0,7,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               	</VerticalLayout>

	                <VerticalLayout childpadding="8,0,0,0"><!-- 第五个设置页面 -->
	               		<Button text="目录设置" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<CheckBox text="单行显示歌词" padding="0,8,0,0"/>
	               		<HorizontalLayout height="24">
	               			<Label text="字体" textpadding="0,5,0,0" />
	               			<Button name="" text="黑体"  align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="字号" textpadding="20,5,0,0" />
	               			<Button name="" text="29" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="字形" textpadding="20,5,0,0" />
	               			<Button name="" text="粗体" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               		</HorizontalLayout>
	               		<HorizontalLayout height="25">
	               			<Label text="颜色" textpadding="0,5,0,0" />
	               			<Button text="未播放" align="left" foreimage="file='UI\setting\dest_lrc1.png' dest='3,3,30,22'" textpadding="36,6,0,0" width="82" height="25" padding="10,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               			<Button text="已播放" align="left" foreimage="file='UI\setting\dest_lrc2.png' dest='3,3,30,22'" textpadding="36,6,0,0" width="82" height="25" padding="10,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               			<Label text="预设方案" textpadding="37,5,0,0" />
	               			<Button name="" text="海洋蓝" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               		</HorizontalLayout>
	               		<HorizontalLayout height="25">
	               			<Label text="透明度" textpadding="0,5,0,0" />
	               			<Slider name="setting_dest_slider" height="21" width="239" min="0" max="100" value="0" step="1" padding="21,4,0,0" bkimage="file='UI\setting\SliderBK.png' dest='0,10,239,11'" foreimage="file='UI\setting\SliderFore.png'" isstretchfore="false" thumbimage="file='UI\skin\thumb_normal.png'" thumbhotimage="file='UI\skin\thumb_hover.png'"  thumbpushedimage="file='UI\skin\thumb_hover.png'" thumbsize="21,21" sendmove="true" />
	               			<Label text="0%" textpadding="10,5,0,0" />
	               		</HorizontalLayout>
	               		<Button text="预览" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<Control name="setting_dest_view" width="418" height="115" bkimage="UI\setting\view.png" />
	               		<Button text="恢复默认方案" width="100" height="25" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               	</VerticalLayout>

	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第六个设置页面 -->
	               		<Button text="样式设置" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<HorizontalLayout height="24">
	               			<Label text="字体" textpadding="0,5,0,0" />
	               			<Button name="" text="微软雅黑"  align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="字号" textpadding="20,5,0,0" />
	               			<Button name="" text="18" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Label text="字形" textpadding="20,5,0,0" />
	               			<Button name="" text="常规" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               		</HorizontalLayout>
	               		<HorizontalLayout height="25">
	               			<Label text="颜色" textpadding="0,5,0,0" />
	               			<Button text="未播放" align="left" foreimage="file='UI\setting\dest_wnd1.png' dest='3,3,30,22'" textpadding="36,6,0,0" width="82" height="25" padding="10,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               			<Button text="已播放" align="left" foreimage="file='UI\setting\dest_wnd2.png' dest='3,3,30,22'" textpadding="36,6,0,0" width="82" height="25" padding="10,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               			<Label text="预设方案" textpadding="37,5,0,0" />
	               			<Button name="" text="活力黄" align="left" textpadding="6,6,0,0" width="80" height="24" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               		</HorizontalLayout>
	               		<Button text="预览" font="1" padding="0,8,0,0" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<Control name="setting_dest_view" width="415" height="110" bkimage="UI\setting\view2.png" />
	               		<Button text="恢复默认方案" padding="0,5,0,0" width="100" height="25" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
	               	</VerticalLayout>

	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第七个设置页面 -->
	               		<Button text="输出设置" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<VerticalLayout height="55">
		               		<HorizontalLayout height="27" >
		               			<Label text="音频输出  " width="65"/>
		               			<Button name="" text="Default DirectSound Device"  align="left" textpadding="6,6,0,0" width="327" height="22" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" >
		               			<Label text="视频渲染  " width="65"/>
		               			<Button name="" text="VMR9 窗口化"  align="left" textpadding="6,6,0,0" width="327" height="22" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
		               		</HorizontalLayout>
	               		</VerticalLayout>
						<Label text="提示:新设置的参数会在重新播放的时候生效。输出设备推荐选择DirectSound" height="18" enabled="false" />
						<Label text="输出类型" textpadding="0,3,0,0" height="18" enabled="false" />

	               		<Button text="音频设置"  padding="0,20,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<CheckBox text="激活声音淡入淡出效果" padding="0,8,0,0"/>
               			<HorizontalLayout height="24">
	               			<Label text="淡入" textpadding="0,3,0,0" />
	               			<HorizontalLayout width="60" height="22" padding="8,0,0,0" >
	               				<Edit name="" text="600" width="60" height="22" bordercolor="#FFC5C5C5" textpadding="5,5,20,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
	               				<Button float="true" pos="40,1,0,0" height="10" width="19" normalimage="UI\setting\arrowup_normal.png" hotimage="UI\setting\arrowup_hover.png" pushedimage="UI\setting\arrowup_down.png"/>
	               				<Button float="true" pos="40,11,0,0" height="10" width="19" normalimage="UI\setting\arrowdown_normal.png" hotimage="UI\setting\arrowdown_hover.png" pushedimage="UI\setting\arrowdown_down.png"/>
	               			</HorizontalLayout>
	               			<Label text=" 毫秒(1-10000)" width="75" />
	               			<Label text="淡出" textpadding="20,3,0,0" />
	               			<HorizontalLayout width="60" height="22" padding="8,0,0,0" >
	               				<Edit name="" text="600" width="60" height="22" bordercolor="#FFC5C5C5" textpadding="5,5,20,5" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
	               				<Button float="true" pos="40,1,0,0" height="10" width="19" normalimage="UI\setting\arrowup_normal.png" hotimage="UI\setting\arrowup_hover.png" pushedimage="UI\setting\arrowup_down.png"/>
	               				<Button float="true" pos="40,11,0,0" height="10" width="19" normalimage="UI\setting\arrowdown_normal.png" hotimage="UI\setting\arrowdown_hover.png" pushedimage="UI\setting\arrowdown_down.png"/>
	               			</HorizontalLayout>
	               			<Label text=" 毫秒(1-10000)" width="75" />
	               		</HorizontalLayout>
	               		<Label text="提示:仅支持DirectSound输出类型" height="18" enabled="false" />
	               		<HorizontalLayout height="26">
	               			<Button name="" text="设置均衡器" width="92" height="25" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
		               		<Button name="" text="设置音效插件" width="92" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
	               		</HorizontalLayout>
	               	</VerticalLayout>

	               	<VerticalLayout childpadding="8,0,0,0"><!-- 第八个设置页面 -->
	               		<Button text="代理" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<VerticalLayout height="130">
		               		<HorizontalLayout height="27" >
		               			<Label text="代理类型: " width="65"/>
		               			<Button name="" text="HTTP代理"  align="left" textpadding="6,6,0,0" width="130" height="22" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
		               			<Button name="" text="测试" width="60" height="25" padding="15,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" padding="0,8,0,0">
		               			<Label text="代理地址: " width="65"/>
		               			<Edit name=""  width="130" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" padding="10,0,0,0" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
								<Label text="端口: "  padding="15,0,0,0" width="65"/>
		               			<Edit name=""  width="130" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" padding="10,0,0,0" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" padding="0,8,0,0">
		               			<Label text="用户名:   " width="65"/>
		               			<Edit name=""  width="130" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" padding="10,0,0,0" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
								<Label text="密码: "  padding="15,0,0,0" width="65"/>
		               			<Edit name=""  width="130" height="22" bordercolor="#FFC5C5C5" focusbordercolor="#FF5AAFF7" textpadding="9,5,5,5" padding="10,0,0,0" textcolor="#FF454545" bkcolor="#00000000" nativebkcolor="#FFFFFFFF"  />
		               		</HorizontalLayout>
		               		<HorizontalLayout height="27" padding="0,8,0,0">
		               			<Label text="域(可不填) " width="65"/>
		               			<Button name="" text="HTTP代理"  align="left" textpadding="6,6,0,0" width="130" height="22" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
		               			<CheckBox text="使用服务器中转" padding="15,5,0,0"/>
		               		</HorizontalLayout>
	               		</VerticalLayout>

	               		<Button text="网络连接"  padding="0,20,0,0" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
               			<HorizontalLayout height="27" >
	               			<Label text="您当前的网络连接运营商是:  " width="65"/>
	               			<Button name="" text="未知"  align="left" textpadding="6,6,0,0" width="100" height="22" padding="10,0,0,0" normalimage="file='UI\setting\combo_normal.png' corner='20,0,20,0'" hotimage="file='UI\setting\combo_down.png' corner='20,0,20,0'" pushedimage="file='UI\setting\combo_down.png' corner='20,0,20,0'"  />
	               			<Button name="" text="自动选择最优" width="80" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
	               		</HorizontalLayout>
	               		<HorizontalLayout height="27" >
	               			<Label text="您当前的网络连接方式是:UDP  " width="65"/>
	               			<Button name="" text="网络测试" width="80" height="25" padding="115,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
	               		</HorizontalLayout>
	               	</VerticalLayout>

					<VerticalLayout childpadding="8,0,0,0"><!-- 第九个设置页面 -->
	               		<Button text="主播模式" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<HorizontalLayout height="16" padding="0,8,0,0">
	               			<Option text="启动" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingOther1" />
	               			<Option text="关闭" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingOther1" selected="true" />
	               		</HorizontalLayout>
	               		<Label text="繁星主播专用。开播更流畅,并能识别当前播的歌" enabled="false" />

	               		<Button text="主播上线提醒" font="1" enabled="false" align="left" bkimage="UI\setting\sepline.png" width="420" height="13" />
	               		<HorizontalLayout height="16" padding="0,8,0,0">
	               			<Option text="启动" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingOther2" selected="true" />
	               			<Option text="关闭" textcolor="#FF454545" disabledtextcolor="#FF454545" width="10" height="16" textpadding="18,1,0,0" align="left" normalimage="file='UI\setting\option_normal.png' dest='0,0,16,16'" hotimage="file='UI\setting\option_hover.png' dest='0,0,16,16'" pushedimage="file='UI\setting\option_down.png' dest='0,0,16,16'" disabledimage="file='UI\setting\option_disable.png' dest='0,0,16,16'" selectedimage="file='UI\setting\optioned_normal.png' dest='0,0,16,16'" selectedhotimage="file='UI\setting\optioned_hover.png' dest='0,0,16,16'" selectedpushedimage="file='UI\setting\optioned_down.png' dest='0,0,16,16'" autocalcwidth="true" group="SettingOther2" />
	               		</HorizontalLayout>
	               		<Label text="关闭的主播上线后提醒。让您不错过每一个主播的每一个瞬间" enabled="false" />
	               	</VerticalLayout>
	            </TabLayout>

	            <HorizontalLayout height="50" inset="6,5,0,0" ><!-- 状态栏 -->
		        	<Button name="okbtn" text="确定" width="90" height="25" padding="165,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
		            <Button name="closebtn" text="取消" width="90" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'"  />
		            <Button name="applybtn" text="应用" width="90" height="25" padding="12,0,0,0" normalimage="file='UI\skin\button_normal.png' corner='5,5,5,5'" hotimage="file='UI\skin\button_hover.png' corner='5,5,5,5'" pushedimage="file='UI\skin\button_down.png' corner='5,5,5,5'" />
       			</HorizontalLayout>
            </VerticalLayout>
        </HorizontalLayout>
    </VerticalLayout>
</Window>

        xml布局文件下载地址:点击打开链接

   Redrian   2014.8.26

时间: 2024-10-30 15:31:50

仿酷狗音乐播放器开发日志二十四 选项设置窗体的实现(附328行xml布局源码)的相关文章

仿酷狗音乐播放器开发日志二十——换肤功能背景图片控件的制作(附源码)

转载请说明原出处,谢谢~~           <仿酷狗音乐播放器开发日志二十>里做了换肤功能的一部分,今天完成其他的部分.酷狗的换肤窗口里的背景图可以让用户选择来换图,原酷狗的背景图的小图标,有normal.hover.down等多种状态,鼠标移动上去便会发生变化.如图        当鼠标经过时会有个黑色图片覆盖,边框变为浅蓝色.并且在他上面显示出作者的一些信息.要实现这个效果应该另外开发一个控件来支持动态的信息展示效果.我把这个小控件的开发过程和源码发一下,给学习做duilib控件的新手

仿酷狗音乐播放器开发日志二十二 动态调色板控件第二版(性能大幅提升附源码)

转载请说明原出处,谢谢~~         在上次写的博客<仿酷狗音乐播放器开发日志二十一 开发动态调色板控件(附源码)>发布后,我在群里和网友讨论这个控件的性能和优 缺点,发现了他很多不足,还有很多提升空间,之后我简单的修改了代码提升了控件的响应速度.        昨天网友"风之羽翼"联系到我,他在我原来写的控件基础上,对绘图的算法进行重写,大幅提升了控件的绘制速度,算法也精准了很多,最终的控 件效果要比原酷狗更加流畅,于是今天把新的控件代码上传,供感兴趣的朋友使用.在

仿酷狗音乐播放器开发日志二十七 用ole为窗体增加文件拖动功能(附源码)

转载请说明原出处,谢谢~~        中秋到了,出去玩了几天.今天把仿酷狗程序做了收尾,已经开发完成了,下一篇博客把完结的情况说一下.在这篇博客里说一下使用OLE为窗体增加文件拖拽的功能.使用播放器,我更喜欢直接拖动音乐文件添加到软件里,所以做这个功能很重要.做OLE拖拽之前学习了两篇文章: http://www.codeproject.com/Articles/840/How-to-Implement-Drag-and-Drop-Between-Your-Progra%E3%80%91 h

仿酷狗音乐播放器开发日志二十六 duilib在标题栏弹出菜单的方法

转载请说明原出处,谢谢~~        上篇日志说明了怎么让自定义控件响应右键消息.之后我给主窗体的标题栏增加右键响应,观察原酷狗后可以发现,在整个标题栏都是可以响应右键并弹出菜单的.应该的效果如下:        本以为像上一片博客那样,处理标题栏的布局的右键消息就可以了.后来发现在duilib的标题栏中无法像在客户区那样自如响应UIEVENT_CONTEXTMENU消息的.所以还得用另外的方法.       在非客户区处理右击消息对应的是WM_NCRBUTTONUP,WM_NCRBUTTO

仿酷狗音乐播放器开发日志二十五 duilib右键事件的不足的bug修复

转载请说明原出处,谢谢~~        虽然仿酷狗的各个菜单早就写好了,但是一直没有附加到程序里.今天把菜单和播放列表控件关联时发现了问题.        和播放列表相关的菜单有三个,分别是每个音乐项目控件相关的菜单.分组的菜单.音乐电台的菜单.应该的效果如下:        原本我想着只要给对应的控件设置menu属性,然后在代码里响应消息弹出菜单就可以了.但是实际测试发现,控件根本无法响应到menu消息,原因在于:音乐项目.电台项目这些控件都是靠许多子控件组合而成的,换句话就是他们上面覆盖了

仿酷狗音乐播放器开发日志二十一 开发动态调色板控件(附源码)

转载请说明原出处,谢谢~~           上一篇仿酷狗日志结束后,整个换肤功能就只剩下调色板功能没有做了,我本以为会很简单,但是研究了酷狗的调色板功能后发现不是那么简单的事情.首先看一下酷狗的调色板的样子:         我原本以为酷狗的主界面只是一张图片,然后通过鼠标坐标来选择颜色,简单粗暴.等我开始做这部分时发现情况不一样.         可以看到,酷狗的调色板分为两部分,上半部分是调色板的主界面,下半部分是调整亮度的工具栏,我这里分别给他们起名为Pallet和Bar方便说明.这个

仿酷狗音乐播放器开发日志二十三 修复Option控件显示状态不全的bug(附源码)

转载请说明原出处,谢谢~~          整个仿酷狗工程的开发将近尾声,现在还差选项设置窗体的部分,显然在设置窗体里用的最多的就是OptionUI控件,我在写好大致的布局后去测试效果,发现Option控件的显示效果很不理想.在源码中可以知道(属性列表中列的不全面)Option提供了8种显示状态,分别为 <Attribute name="normalimage" default="" type="STRING" comment="

仿酷狗音乐播放器开发日志二——搜索栏的编写

转载请说明出处   今天早上把整个软件的标题栏部分做得差不多了.     软件上各个按钮和控件的位置和大小都是按照原软件的大小和比例制作的,所有控件都可以动态响应.首先的任务把软件的整体界面效果制作出来,然后把剩下的小细节的动作一一实现,再者是把软件里面的各种动态效果渲染上去,'最后便是把软件的实际功能编写完成.    目前遇到的最麻烦的问题就在于软件素材的获取,用工具提取出来的素材有1500多个,所有素材都在同一个文件夹里,没有规范的命名,所以为了找到对应的素材需要大费周折,实在不得已的情况还

仿酷狗音乐播放器开发日志十九——CTreeNodeUI的bug修复二(附源码)

转载请说明原出处,谢谢        今天本来打算把仿酷狗播放列表的子控件拖动插入功能做一下,但是仔细使用播放列表控件时发现了几个逻辑错误,由于我的播放 列表控件是基于CTreeViewUI和CTreeNodeUI做得,所以产生这几个bug的原因还在于他们两个,在<仿酷狗音乐播放器开发日志十一 --CTreeNodeUI的bug修复>中已经修复过一个动态添加控件的相关bug,这属于第二次修复了.关于第一次bug的修复,后来 Duilib扩展群的 joe 又进行过比我更全面的修复,我现在使用的C