material-range-bar icon indicating copy to clipboard operation
material-range-bar copied to clipboard

can bar be rendered without padding?

Open ShahnazK opened this issue 7 years ago • 4 comments

i am using range bar in a dialog box, but there is some alignment issue with other components as i am using linear layout. Every other component starts from base line except range bar. It seems there is some internal padding. Is there any way i can remove or reset that padding? please see the attached screen shot rangebar

right now i am setting android:layout_marginStart="-10dp" to align with other components.

ShahnazK avatar Feb 26 '17 16:02 ShahnazK

yes this is possible. you just need to set the custom:rangeBarPaddingBottom property for rangebar. But keep in mind that custom:selectorSize should never be more than custom:rangeBarPaddingBottom otherwise the selectors will be truncated from bottom.

krazykira avatar Apr 25 '17 13:04 krazykira

I have a question related to this. what if I want to remove the top padding? I already set the pin radius to 0 to disable the pin, but it seems the space of it is still accounted in the layout. Anyway we can take that out? Thanks.

aaron861030 avatar Feb 02 '18 08:02 aaron861030

just set view height to 50dp or something that fits you

2math avatar Feb 13 '18 15:02 2math

thanks

aaron861030 avatar Feb 22 '18 10:02 aaron861030