ceryle / SegmentedButton

Segmented Control with animation for Android API 12+
Apache License 2.0
364 stars 97 forks source link

How do you make the buttons smaller? #1

Closed liveaffiliates closed 7 years ago

liveaffiliates commented 7 years ago

Hi,

Great library looks fantastic. I tried to use the library but I couldn't get it to work for anything other than having the width set to 0 and the weight for each set to 1. how do you change the size of the buttons without is cutting of the radius edges?

Thanks

ceryle commented 7 years ago

Hello, Thank you for the kind words. Currently what you want to achieve is not possible. SegmentedButtonGroup is actually a LinearLayout with its child's width 0dp and weight 1. It takes the buttons in it and resizes them equally. In next release I will try to make it happen. Have a nice day.

liveaffiliates commented 7 years ago

Ok thank you for your help

ceryle commented 7 years ago

Making different sized buttons are now possible. I updated the library and also there are examples in sample project. New version is "v1.1.4'".