[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Clover

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 13
Thread images: 1

File: 1481873516642.png (93KB, 764x402px) Image search: [Google]
1481873516642.png
93KB, 764x402px
I have a question about clover: how does the scroll bar on the right work?

Its length seems to depends on the amount of posts of a thread, and that's quite obvious. However if you scroll quickly down the catalog, where the number of posts is fixed, you can notice its length varying in a non random way. Moreover, its length varies a lot when viewing a thread with not many replies, for instance a number of replies between 10 and 30: I noticed that in this case the length can jump from being tiny to be very big and then going back to be tiny with no apparent reason.

I'm simply curious: is there an algorithm that cause it to have such a random behaviour? I've always been interested in scroll bars since they pose some nice mathematical problems. But I can't seem to find an explanation for clover.
>>
I think it loads posts while you scroll.
>>
It doesn't know the total length when displaying only 3 replies. So it just takes the average length of those and bases the scroll bar length on that. Calculating the actual length would take too much time on the CPU.
>>
>>58942020
no
>>58942038
yes
>>
>>58942038
Thanks.
>>
The scrollbar on the recyclerview has been even more fucky than the one on a normal listview. But like the other anon said, it doesn't take the time to calculate the length of the whole thread, that would take too much time, so it takes the average of the posts displayed or something.
Also, the old listview used to interpolate the scrollbar length, but recyclerview doesn't do that anymore.
>>
>>58942067
I understand. When does the scroll bar refresh? That is, when exactly does it change its length? Thanks.
>>
>>58942104
Whenever new posts are rendered, i.e. just before they scroll into view. This is how most scrollbars in Android work, since almost everyone does the rendering on an as-needed basis. The functionality is built into android itself.
>>
>>58942150
Cool. Thanks.
>>
>>58942067
Can you add a dump feature like 4chanx?
>>
>>58942067
Is the scroll bar supposed to work when viewing posts? I have to manually scroll down through long threads rather than use the scroll bar to scroll down quickly.
>>
>>58944074
There's a difference between the visible scroll thing and really having something you can scroll the posts with. Clover doesn't have that yet.
>>
>>58944178
>yet
If you ever put a thing you can scroll with, please make it optional
My right thumb always accidentally hits those and I fucking hate them
Thread posts: 13
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.