想用RadioGroup实现像微信菜单栏一样的效果,在Eclipse内通过Graphic Layout看布局文件是这样的:但是在真机上运行后,是这样的:和RadioButton的默认按钮没设成null时,位置是一样的!仅仅是看不到了,但仍然占着位置!
这是为什么???
求大神指点!!!
以下是我的布局文件中RadioGroup部分:<!-- 底部菜单页面 -->    <RadioGroup
        android:id="@+id/radioGroup"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" 
        android:layout_weight="0.05"
        >        <RadioButton
            android:id="@+id/radioButton1"
            style="@style/RadioButton"
            android:layout_weight="1"
            android:checked="true"
            android:drawableTop="@drawable/label_1"
            android:gravity="center"
            android:text="运动" 
            android:button="@null"
            />        <RadioButton
            android:id="@+id/radioButton2"
            style="@style/RadioButton"
            android:layout_weight="1"
            android:drawableTop="@drawable/label_2"
            android:gravity="center"
            android:text="体征" 
            android:button="@null"
            />        <RadioButton
            android:id="@+id/radioButton3"
            style="@style/RadioButton"
            android:layout_weight="1"
            android:drawableTop="@drawable/label_3"
            android:gravity="center"
            android:text="我" 
            android:button="@null"
            />
    </RadioGroup>