2011-08-30 2 views
1

내게 알려주십시오, 플렉스 4.5 RadioButtons를 다음 라벨을 정렬하는 방법 :"Label :"다음에 RadioButtonGroup을 정렬하는 방법은 무엇입니까?

enter image description here

RadioTest.mxml :

<?xml version="1.0" encoding="utf-8"?> 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
       xmlns:s="library://ns.adobe.com/flex/spark" 
       xmlns:mx="library://ns.adobe.com/flex/mx" 
       minWidth="955" minHeight="600"> 

    <fx:Declarations> 
     <s:RadioButtonGroup id="_group" itemClick=""/> 
    </fx:Declarations> 

    <s:HGroup> 
     <s:Label text="Playing tables:" verticalAlign="bottom" /> 
     <s:RadioButton groupName="_group" label="All" /> 
     <s:RadioButton groupName="_group" label="Vacant" /> 
     <s:RadioButton groupName="_group" label="Full" /> 
    </s:HGroup> 
</s:Application> 

...

이 몇 가지 표준 접근이 있어야합니다

답변

5

HGroupverticalAlign="baseline"을 추가하면됩니다.

<?xml version="1.0" encoding="utf-8"?> 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark" 
    xmlns:mx="library://ns.adobe.com/flex/mx" 
    minWidth="955" minHeight="600"> 

    <fx:Declarations> 
     <s:RadioButtonGroup id="_group" itemClick=""/> 
    </fx:Declarations> 

    <s:HGroup verticalAlign="baseline"> 
     <s:Label text="Playing tables:" verticalAlign="bottom" /> 
     <s:RadioButton groupName="_group" label="All" /> 
     <s:RadioButton groupName="_group" label="Vacant" /> 
     <s:RadioButton groupName="_group" label="Full" /> 
    </s:HGroup> 
</s:Application> 
+0

고맙습니다. itemRenderer 문서에서 본 "labelDisplay"id를 사용합니까? –

+0

실례합니다. 귀하의 질문을 이해할 수 없습니다. 자세한 내용을 입력하십시오 :) – Constantiner

+0

Nevermind, 너무 많은 Flex 문서를 흡수하여 혼란 스럽습니다 :-) –

관련 문제