RadioButton将button设置为@null时还占着位置的解决方法

                android:id="@+id/rb_table"

                style="@style/radiobutton_style"

                android:button="@null"

                android:checked="true"

                android:drawableTop="@drawable/selector_rb_table"

                android:text="" />


button占位置

增加设置背景颜色如 android:background=" @color/transparent" 即可解决



button不占位置

你可能感兴趣的:(RadioButton将button设置为@null时还占着位置的解决方法)