Slide icon indicating copy to clipboard operation
Slide copied to clipboard

Scrollbars constantly resize

Open Gawdl3y opened this issue 10 years ago • 24 comments

Slide version: 5.3.3-alpha Android version: N Preview 2

The scrollbar in the comments page wildly fluctuates in size based on the size of the comments currently on the screen. This can be fixed on RecyclerView layout managers by calling setSmoothScrollbarEnabled(false). This issue appears throughout the app (submission list, profile comments, inbox, etc), not just the comments. Any time you have entries in a ListView/RecyclerView that aren't constant size, the smooth scrollbar should be disabled.

Gawdl3y avatar Apr 26 '16 02:04 Gawdl3y

Just a heads-up: disabling the smooth scrollbar does come with the downside of making the scrollbar.. well, not smooth. The scrollbar will simply jump to the next position with no animation. This is definitely preferable to a scrollbar that doesn't reliably indicate your position at all due to constant resizing, however.

Gawdl3y avatar Apr 26 '16 02:04 Gawdl3y

Let me see how it looks first. I'm testing the changes on the Comments page first. Give me a few.

Nxt3 avatar Apr 26 '16 02:04 Nxt3

I know--I'm actually just having difficulty disabling it. I'm setting mLayoutManager.setSmoothScrollbarEnabled(false); then calling recyclerView.setLayoutManager(mLayoutManager);. The change isn't present though. Working on it.

Nxt3 avatar Apr 26 '16 02:04 Nxt3

I think it's set in the layout XML @Nxt3 , might have to disable it there and enable it programatically

ccrama avatar Apr 26 '16 02:04 ccrama

only thing that relates to the scrollbars in the XML is android:scrollbars="vertical". I'll try removing that--but I don't think it matters.

Nxt3 avatar Apr 26 '16 02:04 Nxt3

Yes, that's it

ccrama avatar Apr 26 '16 02:04 ccrama

Then nothing changed :|

Nxt3 avatar Apr 26 '16 02:04 Nxt3

Instead, do rv.getLayoutManager().setSmooth...., that might work (after it's set, of course)

ccrama avatar Apr 26 '16 02:04 ccrama

It won't let me lol

Nxt3 avatar Apr 26 '16 02:04 Nxt3

It might have to be cast to a LinearLayoutManager

ccrama avatar Apr 26 '16 02:04 ccrama

Off-topic, but you guys should consider using Gitter or Slack for real-time chat. Would probably be much easier for you (fully real-time, push notifications, and all that good stuff), and won't send loads of emails. :P

Gawdl3y avatar Apr 26 '16 02:04 Gawdl3y

I'm just not on the IRC chat right now ;)

Nxt3 avatar Apr 26 '16 02:04 Nxt3

@Gawdl3y We chat in #slide on Snoonet if you wished to drop by ever

Alexendoo avatar Apr 26 '16 10:04 Alexendoo

I give up with this. I tried everything I could think of. I almost think we should just remove the scrollbars all together--seeing as how often the height changes.

Nxt3 avatar Apr 27 '16 05:04 Nxt3

I don't mind it that much honestly, a lot of other apps experience this issue as well (like IRCCloud). It's certainly better than nothing.

Controless avatar Apr 27 '16 05:04 Controless

I'm actually working to integrate this MaterialScrollbar library with Slide. It doesn't quite fix this issue, but it at least makes the scrollbar more useful--while adding some better looks to the app and keeping functionality the same.

Nxt3 avatar Apr 27 '16 18:04 Nxt3

@Nxt3 How's that going?

Gawdl3y avatar May 01 '16 19:05 Gawdl3y

Not too well. See this issue. Maybe you could help me?

Nxt3 avatar May 01 '16 21:05 Nxt3

I don't know, can he?

ghost avatar May 01 '16 22:05 ghost