L4Digital / FastScroll

A ListView-like FastScroller for Android’s RecyclerView.
Apache License 2.0
901 stars 75 forks source link

Size! #2

Closed crysan closed 6 years ago

crysan commented 7 years ago

Hi Pls add size bubble setting. Ty!

randr0id commented 7 years ago

We might add attribute support for this in the future, however, you can override any of the dimension values from FastScroll library's dimens.xml.

For the bubble size, add <dimen name="fastscroll_bubble_radius">XXdp</dimen> to your project's dimens.xml.

crysan commented 7 years ago

The future is now. Add this function to the library.

randr0id commented 7 years ago

After further review, the best method for adjusting the bubble dimensions is by overriding these values:

<dimen name="fastscroll_bubble_radius">44dp</dimen>
<dimen name="fastscroll_bubble_size">88dp</dimen>
<dimen name="fastscroll_bubble_textsize">48sp</dimen>
NainalChauhan commented 6 years ago

I want to have two different bubble textsize in two layouts. By overriding fastscroll_bubble_textsize it will change the textsize for whole project. Is there any way to change it programmatically?

randr0id commented 6 years ago

There isn't currently, but I'm working to add this and the other bubble dimensions to the upcoming 2.0 release.

randr0id commented 6 years ago

I added attributes and methods to change the bubble text size. I also added an attribute to change the bubble size to either "normal" or "small". These changes are released in 2.0.0-beta2.