<s:Group id="ellipse2">
<s:Rect>
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000" alpha="0.5625"/>
<s:GradientEntry color="0x000000" alpha="0.75"/>
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<s:Label id="label" text="Hello World" width="100%" height="100%" textAlign="center" verticalAlign="middle" />
</s:Group>
Do I have to put this group into another group?, or there is a method to set the center point in the group?
You can put the group in another group by putting it in another group, like this.
<s:Group id="MyEllipseParentGroup">
<s:Group id="ellipse2">
<s:Rect>
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000" alpha="0.5625"/>
<s:GradientEntry color="0x000000" alpha="0.75"/>
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<s:Label id="label" text="Hello World" width="100%" height="100%" textAlign="center" verticalAlign="middle" />
</s:Group>
</s:Group>
It can be positioned with the X and y properties, or by using a custom layout.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.