SkinUI5.0官方文档

SkinUI5.0官方文档


左右切换

<h4>效果图</h4> <p><img src="http://www.skinui.cn/doc/img/5.0/5/LeftRightSwitch.gif" alt="左右切换" /></p> <h4>布局文件</h4> <pre><code class="language-xml">&lt;FlexLayout&gt; &lt;TextView Width="MatchParent" Height="60" HorzAlign="Center" Text="IDS_ANIMATION8_2" Font="ID_FONT_H4"/&gt; &lt;Line Width="MatchParent" Height="1" Margin="0,0,0,0"/&gt; &lt;RadioGroup Id="110" Width="MatchParent" Height="40"&gt; &lt;RadioButton Id="111" Width="50%" Height="MatchParent" BindView="1000" Layout="TabButton.xml" Background="TabButton.xml" ChildText11="Tab1" Checked="true"/&gt; &lt;RadioButton Id="112" Height="MatchParent" Grow="1" BindView="2000" Layout="TabButton.xml" Background="TabButton.xml" ChildText11="Tab2"/&gt; &lt;/RadioGroup&gt; &lt;SwitchLayout Width="MatchParent" Grow="1" Animation="LeftRightSwitch"&gt; &lt;RelativeLayout Id="1000" Width="MatchParent" Height="MatchParent"&gt; &lt;TextView AlignParentLeft="10" AlignParentTop="10" AlignParentRight="10" AlignParentBottom="10" MultiLine="true" Text="IDS_TEST_TEXT_1" /&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout Id="2000" Width="MatchParent" Height="MatchParent" Visible="false"&gt; &lt;TextView AlignParentLeft="10" AlignParentTop="10" AlignParentRight="10" AlignParentBottom="10" MultiLine="true" Text="IDS_TEST_TEXT_2" /&gt; &lt;/RelativeLayout&gt; &lt;/SwitchLayout&gt; &lt;/FlexLayout&gt;</code></pre>

页面列表

ITEM_HTML