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