SegmentedButton
SegmentedButton copied to clipboard
Selector Background not proper when divider is set .
<co.ceryle.segmentedbutton.SegmentedButtonGroup
android:id="@+id/segment_Group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
app:sbg_backgroundColor="@android:color/white"
app:sbg_borderColor="@android:color/black"
app:sbg_borderSize="0.5dp"
app:sbg_position="0"
app:sbg_dividerSize="0.5dp"
app:sbg_dividerColor="@android:color/black"
app:sbg_radius="2dp"
android:gravity="center"
android:layout_gravity="center"
app:sbg_animateSelectorDuration="1"
app:sbg_selectorColor="@android:color/holo_red_dark">
<co.ceryle.segmentedbutton.SegmentedButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="A"/>
<co.ceryle.segmentedbutton.SegmentedButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="B"/>
<co.ceryle.segmentedbutton.SegmentedButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="C"/>
<co.ceryle.segmentedbutton.SegmentedButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="D"/>
<co.ceryle.segmentedbutton.SegmentedButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="E"/>
</co.ceryle.segmentedbutton.SegmentedButtonGroup>
Please Fix .. if i increase divider size then it is leaving more space on every selected button background.