Closed JasonHezz closed 8 years ago
Hi, I released a new version of the library. You can add these attributes to you code:
<co.ceryle.segmentedbutton.SegmentedButtonGroup
...
app:sbg_borderSize="1dp"
app:sbg_borderColor="@color/black" />
Unfortunatly it still cannot work. Here is my SegmentedButtonGroup code
<co.ceryle.segmentedbutton.SegmentedButtonGroup
android:id="@+id/segmentedButtonGroup"
android:layout_width="185dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_margin="10dp"
android:visibility="gone"
app:sbg_animateSelector="accelerate"
app:sbg_animateSelectorDuration="200"
app:sbg_backgroundColor="@color/white"
app:sbg_borderColor="@color/yancy_teal600"
app:sbg_borderSize="1dp"
app:sbg_dividerSize="0dp"
app:sbg_position="0"
app:sbg_radius="5dp"
app:sbg_ripple="true"
app:sbg_rippleColor="@color/yancy_teal600"
app:sbg_selectorColor="@color/yancy_teal600"
app:sbg_selectorTextColor="@color/white"
app:sbg_shadow="false"
>
....
</SegmentedButtonGroup>
I released v1.1.1 and I believe it works now.
Ok!Thank you for replying so quickly
You're welcome. I’m happy to help.
I tried to add background to SegmentedButtonGroup, however it wasn't work. Background code:
Want to behave like this library android-segmented-control.