MCMrARM / revolution-irc

A modern Android IRC client. #revolutionirc on Libera.chat
GNU General Public License v3.0
548 stars 63 forks source link

Add menu point to scroll chat to bottom #324

Open rebootl opened 2 years ago

rebootl commented 2 years ago

Since i sometimes get a lot of messages from my IRC bouncer, the loading takes some time and then i need an easy way to scroll down.

Probably only useful in my special use case. Leaving it here since it may be useful for someone.

Also not sure about the code cause i have no experience on Android.

MCMrARM commented 1 year ago

Hello and sorry for the delayed reploy,

If you make this a setting (off by default), I'll merge this.

The way I did this in message view v2 was to add a small down arrow in bottom right corner that shows if you scroll up (similar to many other apps). You can find the code for this here: https://github.com/MCMrARM/revolution-irc/blob/newui/app/src/main/res/layout/chat_messages_fragment.xml#L56-L62 https://github.com/MCMrARM/revolution-irc/blob/newui/app/src/main/java/io/mrarm/irc/view/JumpToRecentButton.java If you like this idea, you can convert your code to do this instead, otherwise an option will suffice.