我正在使用一个包含三个段的自定义段栏,我设置alert_light_frame
为背景,android:background="@android:drawable/alert_light_frame"
但在 2.2 中它不适合段栏的高度,但在 2.3.6 中它的完美。背景的高度超过分段栏。任何人都可以帮我解决这个问题吗?
这是我的段栏的 xml 布局
<com.com.app.SegmentedRadioGroup
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/segment_text"
android:background="@android:drawable/alert_light_frame"
android:checkedButton="@+id/button_one">
<RadioButton android:id="@id/button_one"
android:minHeight="35dip" android:text="one"
android:textAppearance="?android:attr/textAppearanceSmall"
android:button="@null" android:gravity="center" android:textColor="@color/radio_colors" />
<RadioButton android:id="@+id/button_two"
android:minHeight="35dip" android:text="two"
android:button="@null" android:gravity="center"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/radio_colors" />
<RadioButton android:id="@+id/button_three"
android:minHeight="35dip" android:text="three"
android:button="@null" android:gravity="center"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/radio_colors" />
</com.com.app.SegmentedRadioGroup>